MSN微软公布的调用接口在DELPHI中如何使用[事成之后650想送,UP有分](50分)

  • 主题发起人 主题发起人 odbc1230
  • 开始时间 开始时间
O

odbc1230

Unregistered / Unconfirmed
GUEST, unregistred user!
说明文件下在地址http://msdn.microsoft.com/library/default.asp?url=/downloads/list/messengerapi.asp
 
我以前看过,好象接口说明和实际接口有点不符合
 
它是标准COM组件
用xP := CreateOleObject('webdb.xProducer');
就可用了
先导出TLB也可
Messenger; // Messenger Type Library

Enum MSTATE;
MSTATE_UNKNOWN = 0;
MSTATE_OFFLINE = 1;
MSTATE_ONLINE = 2;
MSTATE_INVISIBLE = 6;
MSTATE_BUSY = 10;
MSTATE_BE_RIGHT_BACK = 14;
MSTATE_IDLE = 18;
MSTATE_AWAY = 34;
MSTATE_ON_THE_PHONE = 50;
MSTATE_OUT_TO_LUNCH = 66;
MSTATE_LOCAL_FINDING_SERVER = $100;
MSTATE_LOCAL_CONNECTING_TO_SERVER = $200;
MSTATE_LOCAL_SYNCHRONIZING_WITH_SERVER = $300;
MSTATE_LOCAL_DISCONNECTING_FROM_SERVER = $400;

Enum MPROMPT;
MPROMPT_YES_IF_NOT_ALLOWED_OR_BLOCKED = 0;
MPROMPT_NO_ADD_TO_ALLOW = 1;

Enum MMSGPRIVACY;
MMSGPRIVACY_BLOCK_LIST_EXCLUDED = 0;
MMSGPRIVACY_ALLOW_LIST_ONLY = 1;

Enum MURLTYPE;
MURLTYPE_CHANGE_PASSWORD = 0;
MURLTYPE_CHANGE_INFO = 1;
MURLTYPE_COMPOSE_EMAIL = 2;
MURLTYPE_GO_TO_EMAIL_INBOX = 3;
MURLTYPE_GO_TO_EMAIL_FOLDERS = 4;
MURLTYPE_MOBILE_SIGNUP = 5;
MURLTYPE_CHANGE_MOBILE_INFO = 6;
MURLTYPE_CHANGE_PROFILE = 7;
MURLTYPE_CHAT = 8;
MURLTYPE_POST_URL_REQUEST = 9;
MURLTYPE_MAX_NUM_URL = 10;

Enum MLIST;
MLIST_CONTACT = 0;
MLIST_ALLOW = 1;
MLIST_BLOCK = 2;
MLIST_REVERSE = 3;

Enum MMSGTYPE;
MMSGTYPE_NO_RESULT = 0;
MMSGTYPE_ERRORS_ONLY = 1;
MMSGTYPE_ALL_RESULTS = 2;

Enum MUPDATE_FLAGS;
MUPDATE_OPTIONAL = 1;
MUPDATE_MANDATORY = 2;
MUPDATE_BRANDED = 4;
MUPDATE_BGDLCOMPLETE = 8;

Enum MINVITE_FLAGS;
MIF_NONE = 0;
MIF_REQUEST_LAUNCH = 1;
MIF_REQUEST_IP = 4;
MIF_PROVIDE_IP = 8;

Enum MPFLFIELD;
MPFLFIELD_COUNTRY = 0;
MPFLFIELD_POSTALCODE = 1;
MPFLFIELD_LANG_PREFERENCE = 2;
MPFLFIELD_GENDER = 3;
MPFLFIELD_PREFERRED_EMAIL = 4;
MPFLFIELD_NICKNAME = 5;
MPFLFIELD_ACCESSIBILITY = 6;
MPFLFIELD_WALLET = 7;
MPFLFIELD_DIRECTORY = 8;
MPFLFIELD_INETACCESS = 9;

Enum MSGRConstants;
MSGR_E_CONNECT = $81000301;
MSGR_E_INVALID_SERVER_NAME = $81000302;
MSGR_E_INVALID_PASSWORD = $81000303;
MSGR_E_ALREADY_LOGGED_ON = $81000304;
MSGR_E_SERVER_VERSION = $81000305;
MSGR_E_LOGON_TIMEOUT = $81000306;
MSGR_E_LIST_FULL = $81000307;
MSGR_E_AI_REJECT = $81000308;
MSGR_E_AI_REJECT_NOT_INST = $81000309;
MSGR_E_USER_NOT_FOUND = $8100030A;
MSGR_E_ALREADY_IN_LIST = $8100030B;
MSGR_E_DISCONNECTED = $8100030C;
MSGR_E_UNEXPECTED = $8100030D;
MSGR_E_SERVER_TOO_BUSY = $8100030E;
MSGR_E_INVALID_AUTH_PACKAGES = $8100030F;
MSGR_E_NEWER_CLIENT_AVAILABLE = $81000310;
MSGR_E_AI_TIMEOUT = $81000311;
MSGR_E_CANCEL = $81000312;
MSGR_E_TOO_MANY_MATCHES = $81000313;
MSGR_E_SERVER_UNAVAILABLE = $81000314;
MSGR_E_LOGON_UI_ACTIVE = $81000315;
MSGR_E_OPTION_UI_ACTIVE = $81000316;
MSGR_E_CONTACT_UI_ACTIVE = $81000317;
MSGR_E_PRIMARY_SERVICE_NOT_LOGGED_ON = $81000318;
MSGR_E_LOGGED_ON = $81000319;
MSGR_E_CONNECT_PROXY = $8100031A;
MSGR_E_PROXY_AUTH = $8100031B;
MSGR_E_PROXY_AUTH_TYPE = $8100031C;
MSGR_E_INVALID_PROXY_NAME = $8100031D;
MSGR_E_NOT_LOGGED_ON = $8100031E;
MSGR_E_NOT_PRIMARY_SERVICE = $81000320;
MSGR_E_TOO_MANY_SESSIONS = $81000321;
MSGR_E_TOO_MANY_MESSAGES = $81000322;
MSGR_E_REMOTE_LOGIN = $81000323;
MSGR_E_INVALID_FRIENDLY_NAME = $81000324;
MSGR_E_SESSION_FULL = $81000325;
MSGR_E_NOT_ALLOWING_NEW_USERS = $81000326;
MSGR_E_INVALID_DOMAIN = $81000327;
MSGR_E_TCP_ERROR = $81000328;
MSGR_E_SESSION_TIMEOUT = $81000329;
MSGR_E_MULTIPOINT_SESSION_BEGIN_TIMEOUT = $8100032A;
MSGR_E_MULTIPOINT_SESSION_END_TIMEOUT = $8100032B;
MSGR_E_REVERSE_LIST_FULL = $8100032C;
MSGR_E_SERVER_ERROR = $8100032D;
MSGR_E_SYSTEM_CONFIG = $8100032E;
MSGR_E_NO_DIRECTORY = $8100032F;
MSGR_E_RETRY_SET = $81000330;
MSGR_E_CHILD_WITHOUT_CONSENT = $81000331;
MSGR_E_USER_CANCELLED = $81000332;
MSGR_E_CANCEL_BEFORE_CONNECT = $81000333;
MSGR_E_VOICE_IM_TIMEOUT = $81000334;
MSGR_E_NOT_ACCEPTING_PAGES = $81000335;
MSGR_E_EMAIL_PASSPORT_NOT_VALIDATED = $81000336;
MSGR_E_AUDIO_UI_ACTIVE = $81000337;
MSGR_E_NO_HARDWARE = $81000338;
MSGR_E_PAGING_UNAVAILABLE = $81000339;
MSGR_E_PHONE_INVALID_NUMBER = $8100033A;
MSGR_E_PHONE_NO_FUNDS = $8100033B;
MSGR_E_VOICE_NO_ANSWER = $8100033C;
MSGR_E_VOICE_WAVEIN_DEVICE = $8100033D;
MSGR_E_FT_TIMEOUT = $8100033E;
MSGR_E_MESSAGE_TOO_LONG = $8100033F;
MSGR_E_VOICE_FIREWALL = $81000340;
MSGR_E_VOICE_NETCONN = $81000341;
MSGR_E_PHONE_CIRCUITS_BUSY = $81000342;
MSGR_E_SERVER_PROTOCOL = $81000343;
MSGR_E_UNAVAILABLE_VIA_HTTP = $81000344;
MSGR_E_PHONE_INVALID_PIN = $81000345;
MSGR_E_PHONE_PINPROCEED_TIMEOUT = $81000346;
MSGR_E_SERVER_SHUTDOWN = $81000347;
MSGR_E_CLIENT_DISALLOWED = $81000348;
MSGR_E_PHONE_CALL_NOT_COMPLETE = $81000349;
MSGR_E_GROUPS_NOT_ENABLED = $8100034A;
MSGR_E_GROUP_ALREADY_EXISTS = $8100034B;
MSGR_E_TOO_MANY_GROUPS = $8100034C;
MSGR_E_GROUP_DOES_NOT_EXIST = $8100034D;
MSGR_E_USER_NOT_GROUP_MEMBER = $8100034E;
MSGR_E_GROUP_NAME_TOO_LONG = $8100034F;
MSGR_E_GROUP_NOT_EMPTY = $81000350;
MSGR_E_BAD_GROUP_NAME = $81000351;
MSGR_E_PHONESERVICE_UNAVAILABLE = $81000352;
MSGR_E_CANNOT_RENAME = $81000353;
MSGR_E_CANNOT_DELETE = $81000354;
MSGR_E_INVALID_SERVICE = $81000355;
MSGR_E_POLICY_RESTRICTED = $81000356;
MSGR_E_BUSY = $81000357;
MSGR_S_ALREADY_IN_THE_MODE = $1000301;
MSGR_S_TRANSFER_SEND_BEGUN = $1000302;
MSGR_S_TRANSFER_SEND_FINISHED = $1000303;
MSGR_S_TRANSFER_RECEIVE_BEGUN = $1000304;
MSGR_S_TRANSFER_RECEIVE_FINISHED = $1000305;
MSGR_S_GROUP_ALREADY_EXISTS = $1000306;
MSGR_E_FAIL = $80004005;
MSGR_S_OK = 0;

Enum SSTATE;
SSTATE_DISCONNECTED = 0;
SSTATE_CONNECTING = 1;
SSTATE_CONNECTED = 2;
SSTATE_DISCONNECTING = 3;
SSTATE_ERROR = 4;

Enum MFOLDER;
MFOLDER_INBOX = 0;
MFOLDER_ALL_OTHER_FOLDERS = 1;

Enum MLOCALOPTION;
MLOPT_PROXY_STATE = 0;
MLOPT_PROXY_TYPE = 1;
MLOPT_SOCKS4_SERVER = 2;
MLOPT_SOCKS5_SERVER = 3;
MLOPT_HTTPS_SERVER = 4;
MLOPT_SOCKS4_PORT = 5;
MLOPT_SOCKS5_PORT = 6;
MLOPT_HTTPS_PORT = 7;
MLOPT_SOCKS5_USERNAME = 8;
MLOPT_SOCKS5_PASSWORD = 9;
MLOPT_SERVER_NAME = 10;
MLOPT_ENABLE_IDLE_DETECT = 11;
MLOPT_IDLE_THRESHOLD = 12;
MLOPT_IDLE_DETECTABLE = 13;
MLOPT_SS_DETECTABLE = 14;
MLOPT_HTTP_SERVER = 15;
MLOPT_HTTP_PORT = 16;

Enum MUSERPROPERTY;
MUSERPROP_INVALID_PROPERTY = -1;
MUSERPROP_HOME_PHONE_NUMBER = 0;
MUSERPROP_WORK_PHONE_NUMBER = 1;
MUSERPROP_MOBILE_PHONE_NUMBER = 2;
MUSERPROP_PAGES_ALLOWED = 3;
MUSERPROP_NUMBER_OF_PUBLIC_PROPERTIES = 4;
MUSERPROP_PAGES_ENABLED = 4;
MUSERPROP_NUMBER_OF_PROPERTIES = 5;

Enum MLOCALOPTION_LIMITS;
MLOPT_MAX_SERVICE_STRING = 255;
MLOPT_MAX_PROXY_STRING = 255;
MLOPT_MAX_PORT_NUMBER = $FFFF;
MLOPT_MAX_IDLE_THRESHOLD = $3E7;

Enum MPROXYTYPE;
MPROXYTYPE_NO_PROXY = 0;
MPROXYTYPE_SOCKS4 = 1;
MPROXYTYPE_SOCKS5 = 2;
MPROXYTYPE_HTTPS = 3;
MPROXYTYPE_HTTP = 4;

Enum MCONNECTIONTYPE;
MCONNECTIONTYPE_DISCONNECTED = 0;
MCONNECTIONTYPE_DIRECT = 1;
MCONNECTIONTYPE_BROWSER_PROXY = 2;
MCONNECTIONTYPE_HTTP_PROXY = 3;
MCONNECTIONTYPE_SOCKS_PROXY = 4;

Enum MOPTDLGPAGE;
MOPTDLG_GENERAL_PAGE = 0;
MOPTDLG_PRIVACY_PAGE = 1;
MOPTDLG_EXCHANGE_PAGE = 2;
MOPTDLG_ACCOUNTS_PAGE = 3;
MOPTDLG_CONNECTION_PAGE = 4;
MOPTDLG_PREFERENCES_PAGE = 5;
MOPTDLG_SERVICES_PAGE = 6;
MOPTDLG_PHONE_PAGE = 7;

Enum MSERVICE_FLAGS;
MSF_PRIMARY = 1;
MSF_APP_INVITE = 2;
MSF_MULTI_IM = 4;
MSF_BLOCKING = 8;
MSF_UNAME_IN_EMAIL_FMT = 16;
MSF_LOCAL_LISTS = 32;
MSF_FIND_USER = 64;
MSF_INVITE_MAIL = 128;
MSF_INTERNET = $100;
MSF_NO_ALLOW_LIST = $200;
MSF_PAGING = $400;

Enum MFIRSTTIME_FLAGS;
MFT_SAVE_PASSWORD = 0;
MFT_DONT_SAVE_PASSWORD = 1;
MFT_OVERWRITE_EXISTING = 2;

Enum MSVCSTATUS;
MSS_LOGGED_ON = 0;
MSS_NOT_LOGGED_ON = 1;
MSS_LOGGING_ON = 2;
MSS_LOGGING_OFF = 3;

Enum MFILETRANSFER_FLAGS;
MFTF_SENDING = 4;
MFTF_RECEIVING = 8;
MFTF_CONNECTING = 16;
MFTF_CONNECTED = 32;
MFTF_DISCONNECTED = 64;

Dispatch IMsgrObject;
GUID={218CB451-20B6-11D2-8E17-0000F803A446};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function CreateUser(bstrLogonName:BSTR; pService:^IMsgrService): ^IMsgrUser;
function Logon(bstrUser:BSTR; bstrPassword:BSTR; pService:^IMsgrService);
function Logoff;
property-get List(MLIST:MLIST): ^IMsgrUsers;
property-get LocalLogonName: BSTR;
property-get LocalFriendlyName: BSTR;
property-put LocalState(MSTATE);
property-get LocalState: MSTATE;
property-put MessagePrivacy(MMSGPRIVACY);
property-get MessagePrivacy: MMSGPRIVACY;
property-put Prompt(MPROMPT);
property-get Prompt: MPROMPT;
function SendAppInvite(pUser:^IMsgrUser; lCookie:I4; bstrAppGUID:BSTR; bstrAppName:BSTR; bstrAppURL:BSTR; lInviteType:I4; mmtType:MMSGTYPE): I4;
function SendAppInviteAccept(pUser:^IMsgrUser; lCookie:I4; lInviteType:I4; mmtType:MMSGTYPE): I4;
function SendAppInviteCancel(pUser:^IMsgrUser; lCookie:I4; hrReason:I4; mmtType:MMSGTYPE): I4;
property-put LocalOption(option:MLOCALOPTION; variant);
property-get LocalOption(option:MLOCALOPTION): variant;
function FindUser(bstrFirstName:BSTR; bstrLastName:BSTR; bstrCity:BSTR; bstrState:BSTR; bstrCountry:BSTR): I4;
function SendInviteMail(bstrEmailAddress:BSTR; lFindCookie:I4; lFindIndex:I4; lLCID:I4): I4;
function RequestURLPost(muType:MURLTYPE; bstrAdditionalInfo:BSTR): I4;
property-get IMSessions: ^IMsgrIMSessions;
function CreateIMSession(vUser:variant): ^IMsgrIMSession;
function SessionRequestAccept(pIMsgrIMSession:^IMsgrIMSession; hrReason:I4);
function SessionRequestCancel(pIMsgrIMSession:^IMsgrIMSession; hrReason:I4);
property-get Services: ^IMsgrServices;
property-get UnreadEmail(MFOLDER:MFOLDER): I4;

Dispatch IMsgrObject2;
GUID={218CB455-20B6-11D2-8E17-0000F803A446};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function CreateUser(bstrLogonName:BSTR; pService:^IMsgrService): ^IMsgrUser;
function Logon(bstrUser:BSTR; bstrPassword:BSTR; pService:^IMsgrService);
function Logoff;
property-get List(MLIST:MLIST): ^IMsgrUsers;
property-get LocalLogonName: BSTR;
property-get LocalFriendlyName: BSTR;
property-put LocalState(MSTATE);
property-get LocalState: MSTATE;
property-put MessagePrivacy(MMSGPRIVACY);
property-get MessagePrivacy: MMSGPRIVACY;
property-put Prompt(MPROMPT);
property-get Prompt: MPROMPT;
function SendAppInvite(pUser:^IMsgrUser; lCookie:I4; bstrAppGUID:BSTR; bstrAppName:BSTR; bstrAppURL:BSTR; lInviteType:I4; mmtType:MMSGTYPE): I4;
function SendAppInviteAccept(pUser:^IMsgrUser; lCookie:I4; lInviteType:I4; mmtType:MMSGTYPE): I4;
function SendAppInviteCancel(pUser:^IMsgrUser; lCookie:I4; hrReason:I4; mmtType:MMSGTYPE): I4;
property-put LocalOption(option:MLOCALOPTION; variant);
property-get LocalOption(option:MLOCALOPTION): variant;
function FindUser(bstrFirstName:BSTR; bstrLastName:BSTR; bstrCity:BSTR; bstrState:BSTR; bstrCountry:BSTR): I4;
function SendInviteMail(bstrEmailAddress:BSTR; lFindCookie:I4; lFindIndex:I4; lLCID:I4): I4;
function RequestURLPost(muType:MURLTYPE; bstrAdditionalInfo:BSTR): I4;
property-get IMSessions: ^IMsgrIMSessions;
function CreateIMSession(vUser:variant): ^IMsgrIMSession;
function SessionRequestAccept(pIMsgrIMSession:^IMsgrIMSession; hrReason:I4);
function SessionRequestCancel(pIMsgrIMSession:^IMsgrIMSession; hrReason:I4);
property-get Services: ^IMsgrServices;
property-get UnreadEmail(MFOLDER:MFOLDER): I4;
function SendFileTransferInvite(pUser:^IMsgrUser; lCookie:I4; bstrFilePath:BSTR; mmtType:MMSGTYPE): I4;
function SendFileTransferInviteAccept(pUser:^IMsgrUser; lCookie:I4; bstrFilePath:BSTR; mmtType:MMSGTYPE): I4;
function SendFileTransferInviteCancel(pUser:^IMsgrUser; lCookie:I4; hrReason:I4; mmtType:MMSGTYPE): I4;
function CancelFileTransfer(pUser:^IMsgrUser; lCookie:I4; hrReason:I4; mmtType:MMSGTYPE): I4;
function FileTransferStatus(lCookie:I4; pUser:^IMsgrUser; out plStatus:^I4; out pbstrFilePath:^BSTR; out plTotalBytes:^I4; out plBytesTransferred:^I4);
property-put LocalProperty(ePropType:MUSERPROPERTY; variant);
property-get LocalProperty(ePropType:MUSERPROPERTY): variant;
function SendPage(pUser:^IMsgrUser; bstrMessage:BSTR; ePhoneType:MUSERPROPERTY): I4;
function SendCustomInviteMail(bstrEmailAddress:BSTR; lFindCookie:I4; lFindIndex:I4; lLCID:I4; bstrCustomText:BSTR): I4;

Dispatch DMsgrObjectEvents;
GUID={218CB452-20B6-11D2-8E17-0000F803A446};
function OnLogonResult(hr:I4; pService:^IMsgrService);
function OnLogoff;
function OnServiceLogoff(hr:I4; pService:^IMsgrService);
function OnListAddResult(hr:I4; MLIST:MLIST; pUser:^IMsgrUser);
function OnListRemoveResult(hr:I4; MLIST:MLIST; pUser:^IMsgrUser);
function OnMessagePrivacyChangeResult(hr:I4; mmpSetting:MMSGPRIVACY; pService:^IMsgrService);
function OnPromptChangeResult(hr:I4; mpSetting:MPROMPT; pService:^IMsgrService);
function OnUserFriendlyNameChangeResult(hr:I4; pUser:^IMsgrUser; bstrPrevFriendlyName:BSTR);
function OnUserStateChanged(pUser:^IMsgrUser; mPrevState:MSTATE; out pfEnableDefault:^bool);
function OnTextReceived(pIMSession:^IMsgrIMSession; pSourceUser:^IMsgrUser; bstrMsgHeader:BSTR; bstrMsgText:BSTR; out pfEnableDefault:^bool);
function OnSPMessageReceived(bstrMsgHeader:BSTR; bstrMsgText:BSTR; pService:^IMsgrService);
function OnLocalFriendlyNameChangeResult(hr:I4; pService:^IMsgrService; bstrPrevFriendlyName:BSTR);
function OnLocalStateChangeResult(hr:I4; mLocalState:MSTATE; pService:^IMsgrService);
function OnAppInviteReceived(pUser:^IMsgrUser; lCookie:I4; bstrAppGUID:BSTR; bstrAppName:BSTR; bstrAppURL:BSTR; lInviteType:I4; out pfEnableDefault:^bool);
function OnAppInviteAccepted(pUser:^IMsgrUser; lCookie:I4; bstrIPAddress:BSTR; lInviteType:I4; out pfEnableDefault:^bool);
function OnAppInviteCancelled(pUser:^IMsgrUser; lCookie:I4; hrReason:I4; out pfEnableDefault:^bool);
function OnSendResult(hr:I4; lCookie:I4);
function OnNewerClientAvailable(bstrDownloadUrl:BSTR; bstrFallbackUrl:BSTR; lUpdateFlags:I4);
function OnFindResult(hr:I4; lCookie:I4; lFindIndex:I4; lTotalResults:I4; bstrEmailAddress:BSTR; bstrFirstName:BSTR; bstrLastName:BSTR; bstrCity:BSTR; bstrState:BSTR; bstrCountry:BSTR);
function OnInviteMailResult(hr:I4; lCookie:I4);
function OnRequestURLResult(hr:I4; lCookie:I4; muType:MURLTYPE; bstrURL:BSTR);
function OnSessionStateChange(pIMSession:^IMsgrIMSession; sPrevState:SSTATE);
function OnUserJoin(pIMsgrUser:^IMsgrUser; pIMSession:^IMsgrIMSession);
function OnUserLeave(pIMsgrUser:^IMsgrUser; pIMSession:^IMsgrIMSession);
function OnUserDropped(hr:I4; pIMsgrUser:^IMsgrUser; pIMSession:^IMsgrIMSession);
function OnNewSessionRequest(pRequestUser:^IMsgrUser; pIMSession:^IMsgrIMSession; out pfEnableDefault:^bool);
function OnInviteUser(pIMsgrUser:^IMsgrUser; pIMSession:^IMsgrIMSession; hr:I4);
function OnPrimaryServiceChanged(pService:^IMsgrService);
function OnAppShutdown;
function OnUnreadEmailChanged(MFOLDER:MFOLDER; cUnreadEmail:I4; out pfEnableDefault:^bool);
function OnRequestURLPostResult(hr:I4; lCookie:I4; muType:MURLTYPE; bstrURLPost:BSTR);
function OnTrustChanged;
function OnFileTransferInviteReceived(pUser:^IMsgrUser; lCookie:I4; bstrFileName:BSTR; lFileSize:I4; out pfEnableDefault:^bool);
function OnFileTransferInviteAccepted(pUser:^IMsgrUser; lCookie:I4; out pfEnableDefault:^bool);
function OnFileTransferInviteCancelled(pUser:^IMsgrUser; lCookie:I4; hrReason:I4; out pfEnableDefault:^bool);
function OnFileTransferCancelled(pUser:^IMsgrUser; lCookie:I4; hrReason:I4; out pfEnableDefault:^bool);
function OnFileTransferStatusChange(pUser:^IMsgrUser; lCookie:I4; lStatus:I4; hr:I4; out pfEnableDefault:^bool);
function OnLocalPropertyChangeResult(hr:I4; ePropType:MUSERPROPERTY; vPropVal:variant; pService:^IMsgrService);
function OnBuddyPropertyChangeResult(hr:I4; pUser:^IMsgrUser; ePropType:MUSERPROPERTY; vPropVal:variant; pService:^IMsgrService);
function OnNotificationReceived(bstrNotification:BSTR; pService:^IMsgrService);

Dispatch IMsgrUser;
GUID={218CB453-20B6-11D2-8E17-0000F803A446};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
property-put FriendlyName(BSTR);
property-get FriendlyName: BSTR;
property-get EmailAddress: BSTR;
property-get State: MSTATE;
property-get LogonName: BSTR;
function SendText(bstrMsgHeader:BSTR; bstrMsgText:BSTR; mmtType:MMSGTYPE): I4;
property-get Service: ^IMsgrService;

Dispatch IMsgrUser2;
GUID={218CB456-20B6-11D2-8E17-0000F803A446};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
property-put FriendlyName(BSTR);
property-get FriendlyName: BSTR;
property-get EmailAddress: BSTR;
property-get State: MSTATE;
property-get LogonName: BSTR;
function SendText(bstrMsgHeader:BSTR; bstrMsgText:BSTR; mmtType:MMSGTYPE): I4;
property-get Service: ^IMsgrService;
property-put Property(ePropType:MUSERPROPERTY; variant);
property-get Property(ePropType:MUSERPROPERTY): variant;

Dispatch IMsgrUsers;
GUID={218CB454-20B6-11D2-8E17-0000F803A446};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
property-get Count: I4;
function Item(Index:I4): ^IMsgrUser;
function Add(pUser:^IMsgrUser);
function Remove(pUser:^IMsgrUser);
property-get _NewEnum: IUnknown;

Dispatch IMsgrIMSession;
GUID={82E11592-20F5-11D2-91AD-0000F81FEFC9};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
property-get Members: ^IMsgrUsers;
property-get State: SSTATE;
property-get Service: ^IMsgrService;
property-get Invitees: ^IMsgrUsers;
function LeaveSession;
function InviteUser(vUser:variant);
function SendText(bstrMsgHeader:BSTR; bstrMsgText:BSTR; mmtType:MMSGTYPE): I4;

Dispatch IMsgrIMSessions;
GUID={6FD143E6-20A5-11D2-91AD-0000F81FEFC9};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
property-get Count: I4;
function Item(Index:I4): ^IMsgrIMSession;
property-get _NewEnum: IUnknown;

Dispatch IMsgrServices;
GUID={659ECAD8-A5C0-11D2-A440-00C04F795683};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
property-put PrimaryService(^IMsgrService);
property-get PrimaryService: ^IMsgrService;
property-get Count: I4;
function Item(Index:I4): ^IMsgrService;
property-get _NewEnum: IUnknown;

Dispatch IMsgrService;
GUID={659ECAD9-A5C0-11D2-A440-00C04F795683};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
property-get ServiceName: BSTR;
property-get LogonName: BSTR;
property-put FriendlyName(BSTR);
property-get FriendlyName: BSTR;
property-get Capabilities: I4;
property-get Status: MSVCSTATUS;
function Logoff;
function FindUser(bstrFirstName:BSTR; bstrLastName:BSTR; bstrCity:BSTR; bstrState:BSTR; bstrCountry:BSTR): I4;
function SendInviteMail(bstrEmailAddress:BSTR; lFindCookie:I4; lFindIndex:I4; lLCID:I4): I4;
function RequestURLPost(muType:MURLTYPE; bstrAdditionalInfo:BSTR): I4;
property-put ProfileField(MPFLFIELD:MPFLFIELD; variant);
property-get ProfileField(MPFLFIELD:MPFLFIELD): variant;

Dispatch IMessengerApp;
GUID={F3A614DD-ABE0-11D2-A441-00C04F795683};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
property-get Application: IDispatch;
property-get Parent: IDispatch;
function Quit;
property-get Name: BSTR;
property-get FullName: BSTR;
property-get Path: BSTR;
function LaunchLogonUI;
function LaunchOptionsUI(MOPTDLGPAGE:MOPTDLGPAGE);
function LaunchAddContactUI(bstrEMail:BSTR);
function LaunchFindContactUI(bstrFirstName:BSTR; bstrLastName:BSTR; [vbstrCity:variant; vbstrState:variant; vbstrCountry:variant]);
function LaunchIMUI(vUser:variant): ^IMessengerIMWindow;
property-get IMWindows: ^IMessengerIMWindows;
property-get ToolBar: bool;
property-put ToolBar(bool);
property-get StatusBar: bool;
property-put StatusBar(bool);
property-get StatusText: BSTR;
property-put StatusText(BSTR);
property-get HWND: I4;
property-get Left: I4;
property-put Left(I4);
property-get Top: I4;
property-put Top(I4);
property-get Width: I4;
property-put Width(I4);
property-get Height: I4;
property-put Height(I4);
property-get Visible: bool;
property-put Visible(bool);
function AutoLogon;
property-put FirstTimeCredentials(bstrUser:BSTR; bstrPassword:BSTR; pService:^IMsgrService; I4);
property-put CachedPassword(bstrUser:BSTR; bstrPassword:BSTR; pService:^IMsgrService; bool);
function RequestURLPost(muType:MURLTYPE; [vbstrAdditionalInfo:variant]);
property-put TaskbarIcon(bool);
property-get TaskbarIcon: bool;

Dispatch IMessengerApp2;
GUID={FF55D627-CF5B-40DE-850F-62D20BC241C8};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
property-get Application: IDispatch;
property-get Parent: IDispatch;
function Quit;
property-get Name: BSTR;
property-get FullName: BSTR;
property-get Path: BSTR;
function LaunchLogonUI;
function LaunchOptionsUI(MOPTDLGPAGE:MOPTDLGPAGE);
function LaunchAddContactUI(bstrEMail:BSTR);
function LaunchFindContactUI(bstrFirstName:BSTR; bstrLastName:BSTR; [vbstrCity:variant; vbstrState:variant; vbstrCountry:variant]);
function LaunchIMUI(vUser:variant): ^IMessengerIMWindow;
property-get IMWindows: ^IMessengerIMWindows;
property-get ToolBar: bool;
property-put ToolBar(bool);
property-get StatusBar: bool;
property-put StatusBar(bool);
property-get StatusText: BSTR;
property-put StatusText(BSTR);
property-get HWND: I4;
property-get Left: I4;
property-put Left(I4);
property-get Top: I4;
property-put Top(I4);
property-get Width: I4;
property-put Width(I4);
property-get Height: I4;
property-put Height(I4);
property-get Visible: bool;
property-put Visible(bool);
function AutoLogon;
property-put FirstTimeCredentials(bstrUser:BSTR; bstrPassword:BSTR; pService:^IMsgrService; I4);
property-put CachedPassword(bstrUser:BSTR; bstrPassword:BSTR; pService:^IMsgrService; bool);
function RequestURLPost(muType:MURLTYPE; [vbstrAdditionalInfo:variant]);
property-put TaskbarIcon(bool);
property-get TaskbarIcon: bool;
function LaunchPhoneUI(vUser:variant; ePhoneNumber:MUSERPROPERTY);
function LaunchAudioTuningWizard(hwndParent:I4);

Dispatch IMessengerApp3;
GUID={28E28123-7DC5-45D3-860E-8EE1C3681BD5};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
property-get Application: IDispatch;
property-get Parent: IDispatch;
function Quit;
property-get Name: BSTR;
property-get FullName: BSTR;
property-get Path: BSTR;
function LaunchLogonUI;
function LaunchOptionsUI(MOPTDLGPAGE:MOPTDLGPAGE);
function LaunchAddContactUI(bstrEMail:BSTR);
function LaunchFindContactUI(bstrFirstName:BSTR; bstrLastName:BSTR; [vbstrCity:variant; vbstrState:variant; vbstrCountry:variant]);
function LaunchIMUI(vUser:variant): ^IMessengerIMWindow;
property-get IMWindows: ^IMessengerIMWindows;
property-get ToolBar: bool;
property-put ToolBar(bool);
property-get StatusBar: bool;
property-put StatusBar(bool);
property-get StatusText: BSTR;
property-put StatusText(BSTR);
property-get HWND: I4;
property-get Left: I4;
property-put Left(I4);
property-get Top: I4;
property-put Top(I4);
property-get Width: I4;
property-put Width(I4);
property-get Height: I4;
property-put Height(I4);
property-get Visible: bool;
property-put Visible(bool);
function AutoLogon;
property-put FirstTimeCredentials(bstrUser:BSTR; bstrPassword:BSTR; pService:^IMsgrService; I4);
property-put CachedPassword(bstrUser:BSTR; bstrPassword:BSTR; pService:^IMsgrService; bool);
function RequestURLPost(muType:MURLTYPE; [vbstrAdditionalInfo:variant]);
property-put TaskbarIcon(bool);
property-get TaskbarIcon: bool;
function LaunchPhoneUI(vUser:variant; ePhoneNumber:MUSERPROPERTY);
function LaunchAudioTuningWizard(hwndParent:I4);
function LaunchPagerUI(vUser:variant): ^IMessengerIMWindow;

Dispatch IMessengerIMWindow;
GUID={35EDD1CD-1A8C-11D2-B49D-00C04FB90376};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
property-get Application: IDispatch;
property-get Parent: IDispatch;
property-get IMSession: ^IMsgrIMSession;
property-get History: BSTR;
function SendText(bstrSendText:BSTR);
function Close;
property-get ToolBar: bool;
property-put ToolBar(bool);
property-get StatusBar: bool;
property-put StatusBar(bool);
property-get StatusText: BSTR;
property-put StatusText(BSTR);
property-get HWND: I4;
property-get Left: I4;
property-put Left(I4);
property-get Top: I4;
property-put Top(I4);
property-get Width: I4;
property-put Width(I4);
property-get Height: I4;
property-put Height(I4);
property-get Visible: bool;
property-put Visible(bool);
property-get Members: ^IMsgrUsers;

Dispatch IMessengerIMWindows;
GUID={35EDD1CC-1A8C-11D2-B49D-00C04FB90376};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
property-get Count: I4;
function Item(Index:I4): ^IMessengerIMWindow;
property-get _NewEnum: IUnknown;

Interface IMsgrSP;
GUID={E5B42158-AF2C-11D2-8D9D-0000F875C541};
function Logon(bstrUser:BSTR; bstrPassword:BSTR): HResult;
function CreateUser(bstrLogonName:BSTR; out ppUser:^^IMsgrUser): HResult;
property-get List(MLIST:MLIST; out ppUsers:^^IMsgrUsers): HResult;
property-put MessagePrivacy(pmmpSetting:MMSGPRIVACY): HResult;
property-get MessagePrivacy(out pmmpSetting:^MMSGPRIVACY): HResult;
property-put Prompt(pmpSetting:MPROMPT): HResult;
property-get Prompt(out pmpSetting:^MPROMPT): HResult;
property-put LocalState(pmState:MSTATE): HResult;
property-get LocalState(out pmState:^MSTATE): HResult;
function AddBuddy(pBuddy:^IMsgrUser; MLIST:MLIST): HResult;
function RemoveBuddy(pBuddy:^IMsgrUser; MLIST:MLIST): HResult;
function CreateIMSession(pUser:^IMsgrUser; out ppIMSession:^^IMsgrIMSession): HResult;
property-get IMSessions(out ppIMSessions:^^IMsgrIMSessions): HResult;

Interface IMsgrSP2;
GUID={E5B42159-AF2C-11D2-8D9D-0000F875C541};
property-get LocalIPAddress(out plAddr:^I4): HResult;
property-put LocalProperty(ePropType:MUSERPROPERTY; pvPropVal:variant): HResult;
property-get LocalProperty(ePropType:MUSERPROPERTY; out pvPropVal:^variant): HResult;
function SendPage(pUser:^IMsgrUser; bstrMessage:BSTR; ePhoneType:MUSERPROPERTY; out plCookie:^I4): HResult;
function SendCustomInviteMail(bstrEmailAddress:BSTR; lFindCookie:I4; lFindIndex:I4; lLCID:I4; bstrCustomText:BSTR; out plCookie:^I4): HResult;

Dispatch IMsgrWebScriptManager; // Messenger Web Automation manager
GUID={CB643558-61CD-42B2-A9A5-496A7884AD61};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
property-get PassportClient: IDispatch;
property-get MsgrHost: IDispatch;

Dispatch IMsgrPassportClient; // Passport Client Interface
GUID={97C3808A-ECA1-4CA6-8D09-122A3CC54B3B};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function SwitchUser(lState:I4; bstrSwitchURL:BSTR; bstrStayURL:BSTR);

Dispatch IMsgrHost; // Passport Client Interface
GUID={06F6EA9D-88B0-45A9-9F26-CE0898D9EA1C};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function OpenWithAuth(bstrURL:BSTR; lSiteID:I4);

Class MsgrObject;
GUID={F3A614DC-ABE0-11D2-A441-00C04F795683};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function CreateUser(bstrLogonName:BSTR; pService:^IMsgrService): ^IMsgrUser;
function Logon(bstrUser:BSTR; bstrPassword:BSTR; pService:^IMsgrService);
function Logoff;
property-get List(MLIST:MLIST): ^IMsgrUsers;
property-get LocalLogonName: BSTR;
property-get LocalFriendlyName: BSTR;
property-put LocalState(MSTATE);
property-get LocalState: MSTATE;
property-put MessagePrivacy(MMSGPRIVACY);
property-get MessagePrivacy: MMSGPRIVACY;
property-put Prompt(MPROMPT);
property-get Prompt: MPROMPT;
function SendAppInvite(pUser:^IMsgrUser; lCookie:I4; bstrAppGUID:BSTR; bstrAppName:BSTR; bstrAppURL:BSTR; lInviteType:I4; mmtType:MMSGTYPE): I4;
function SendAppInviteAccept(pUser:^IMsgrUser; lCookie:I4; lInviteType:I4; mmtType:MMSGTYPE): I4;
function SendAppInviteCancel(pUser:^IMsgrUser; lCookie:I4; hrReason:I4; mmtType:MMSGTYPE): I4;
property-put LocalOption(option:MLOCALOPTION; variant);
property-get LocalOption(option:MLOCALOPTION): variant;
function FindUser(bstrFirstName:BSTR; bstrLastName:BSTR; bstrCity:BSTR; bstrState:BSTR; bstrCountry:BSTR): I4;
function SendInviteMail(bstrEmailAddress:BSTR; lFindCookie:I4; lFindIndex:I4; lLCID:I4): I4;
function RequestURLPost(muType:MURLTYPE; bstrAdditionalInfo:BSTR): I4;
property-get IMSessions: ^IMsgrIMSessions;
function CreateIMSession(vUser:variant): ^IMsgrIMSession;
function SessionRequestAccept(pIMsgrIMSession:^IMsgrIMSession; hrReason:I4);
function SessionRequestCancel(pIMsgrIMSession:^IMsgrIMSession; hrReason:I4);
property-get Services: ^IMsgrServices;
property-get UnreadEmail(MFOLDER:MFOLDER): I4;
function SendFileTransferInvite(pUser:^IMsgrUser; lCookie:I4; bstrFilePath:BSTR; mmtType:MMSGTYPE): I4;
function SendFileTransferInviteAccept(pUser:^IMsgrUser; lCookie:I4; bstrFilePath:BSTR; mmtType:MMSGTYPE): I4;
function SendFileTransferInviteCancel(pUser:^IMsgrUser; lCookie:I4; hrReason:I4; mmtType:MMSGTYPE): I4;
function CancelFileTransfer(pUser:^IMsgrUser; lCookie:I4; hrReason:I4; mmtType:MMSGTYPE): I4;
function FileTransferStatus(lCookie:I4; pUser:^IMsgrUser; out plStatus:^I4; out pbstrFilePath:^BSTR; out plTotalBytes:^I4; out plBytesTransferred:^I4);
property-put LocalProperty(ePropType:MUSERPROPERTY; variant);
property-get LocalProperty(ePropType:MUSERPROPERTY): variant;
function SendPage(pUser:^IMsgrUser; bstrMessage:BSTR; ePhoneType:MUSERPROPERTY): I4;
function SendCustomInviteMail(bstrEmailAddress:BSTR; lFindCookie:I4; lFindIndex:I4; lLCID:I4; bstrCustomText:BSTR): I4;
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function CreateUser(bstrLogonName:BSTR; pService:^IMsgrService): ^IMsgrUser;
function Logon(bstrUser:BSTR; bstrPassword:BSTR; pService:^IMsgrService);
function Logoff;
property-get List(MLIST:MLIST): ^IMsgrUsers;
property-get LocalLogonName: BSTR;
property-get LocalFriendlyName: BSTR;
property-put LocalState(MSTATE);
property-get LocalState: MSTATE;
property-put MessagePrivacy(MMSGPRIVACY);
property-get MessagePrivacy: MMSGPRIVACY;
property-put Prompt(MPROMPT);
property-get Prompt: MPROMPT;
function SendAppInvite(pUser:^IMsgrUser; lCookie:I4; bstrAppGUID:BSTR; bstrAppName:BSTR; bstrAppURL:BSTR; lInviteType:I4; mmtType:MMSGTYPE): I4;
function SendAppInviteAccept(pUser:^IMsgrUser; lCookie:I4; lInviteType:I4; mmtType:MMSGTYPE): I4;
function SendAppInviteCancel(pUser:^IMsgrUser; lCookie:I4; hrReason:I4; mmtType:MMSGTYPE): I4;
property-put LocalOption(option:MLOCALOPTION; variant);
property-get LocalOption(option:MLOCALOPTION): variant;
function FindUser(bstrFirstName:BSTR; bstrLastName:BSTR; bstrCity:BSTR; bstrState:BSTR; bstrCountry:BSTR): I4;
function SendInviteMail(bstrEmailAddress:BSTR; lFindCookie:I4; lFindIndex:I4; lLCID:I4): I4;
function RequestURLPost(muType:MURLTYPE; bstrAdditionalInfo:BSTR): I4;
property-get IMSessions: ^IMsgrIMSessions;
function CreateIMSession(vUser:variant): ^IMsgrIMSession;
function SessionRequestAccept(pIMsgrIMSession:^IMsgrIMSession; hrReason:I4);
function SessionRequestCancel(pIMsgrIMSession:^IMsgrIMSession; hrReason:I4);
property-get Services: ^IMsgrServices;
property-get UnreadEmail(MFOLDER:MFOLDER): I4;
function OnLogonResult(hr:I4; pService:^IMsgrService);
function OnLogoff;
function OnServiceLogoff(hr:I4; pService:^IMsgrService);
function OnListAddResult(hr:I4; MLIST:MLIST; pUser:^IMsgrUser);
function OnListRemoveResult(hr:I4; MLIST:MLIST; pUser:^IMsgrUser);
function OnMessagePrivacyChangeResult(hr:I4; mmpSetting:MMSGPRIVACY; pService:^IMsgrService);
function OnPromptChangeResult(hr:I4; mpSetting:MPROMPT; pService:^IMsgrService);
function OnUserFriendlyNameChangeResult(hr:I4; pUser:^IMsgrUser; bstrPrevFriendlyName:BSTR);
function OnUserStateChanged(pUser:^IMsgrUser; mPrevState:MSTATE; out pfEnableDefault:^bool);
function OnTextReceived(pIMSession:^IMsgrIMSession; pSourceUser:^IMsgrUser; bstrMsgHeader:BSTR; bstrMsgText:BSTR; out pfEnableDefault:^bool);
function OnSPMessageReceived(bstrMsgHeader:BSTR; bstrMsgText:BSTR; pService:^IMsgrService);
function OnLocalFriendlyNameChangeResult(hr:I4; pService:^IMsgrService; bstrPrevFriendlyName:BSTR);
function OnLocalStateChangeResult(hr:I4; mLocalState:MSTATE; pService:^IMsgrService);
function OnAppInviteReceived(pUser:^IMsgrUser; lCookie:I4; bstrAppGUID:BSTR; bstrAppName:BSTR; bstrAppURL:BSTR; lInviteType:I4; out pfEnableDefault:^bool);
function OnAppInviteAccepted(pUser:^IMsgrUser; lCookie:I4; bstrIPAddress:BSTR; lInviteType:I4; out pfEnableDefault:^bool);
function OnAppInviteCancelled(pUser:^IMsgrUser; lCookie:I4; hrReason:I4; out pfEnableDefault:^bool);
function OnSendResult(hr:I4; lCookie:I4);
function OnNewerClientAvailable(bstrDownloadUrl:BSTR; bstrFallbackUrl:BSTR; lUpdateFlags:I4);
function OnFindResult(hr:I4; lCookie:I4; lFindIndex:I4; lTotalResults:I4; bstrEmailAddress:BSTR; bstrFirstName:BSTR; bstrLastName:BSTR; bstrCity:BSTR; bstrState:BSTR; bstrCountry:BSTR);
function OnInviteMailResult(hr:I4; lCookie:I4);
function OnRequestURLResult(hr:I4; lCookie:I4; muType:MURLTYPE; bstrURL:BSTR);
function OnSessionStateChange(pIMSession:^IMsgrIMSession; sPrevState:SSTATE);
function OnUserJoin(pIMsgrUser:^IMsgrUser; pIMSession:^IMsgrIMSession);
function OnUserLeave(pIMsgrUser:^IMsgrUser; pIMSession:^IMsgrIMSession);
function OnUserDropped(hr:I4; pIMsgrUser:^IMsgrUser; pIMSession:^IMsgrIMSession);
function OnNewSessionRequest(pRequestUser:^IMsgrUser; pIMSession:^IMsgrIMSession; out pfEnableDefault:^bool);
function OnInviteUser(pIMsgrUser:^IMsgrUser; pIMSession:^IMsgrIMSession; hr:I4);
function OnPrimaryServiceChanged(pService:^IMsgrService);
function OnAppShutdown;
function OnUnreadEmailChanged(MFOLDER:MFOLDER; cUnreadEmail:I4; out pfEnableDefault:^bool);
function OnRequestURLPostResult(hr:I4; lCookie:I4; muType:MURLTYPE; bstrURLPost:BSTR);
function OnTrustChanged;
function OnFileTransferInviteReceived(pUser:^IMsgrUser; lCookie:I4; bstrFileName:BSTR; lFileSize:I4; out pfEnableDefault:^bool);
function OnFileTransferInviteAccepted(pUser:^IMsgrUser; lCookie:I4; out pfEnableDefault:^bool);
function OnFileTransferInviteCancelled(pUser:^IMsgrUser; lCookie:I4; hrReason:I4; out pfEnableDefault:^bool);
function OnFileTransferCancelled(pUser:^IMsgrUser; lCookie:I4; hrReason:I4; out pfEnableDefault:^bool);
function OnFileTransferStatusChange(pUser:^IMsgrUser; lCookie:I4; lStatus:I4; hr:I4; out pfEnableDefault:^bool);
function OnLocalPropertyChangeResult(hr:I4; ePropType:MUSERPROPERTY; vPropVal:variant; pService:^IMsgrService);
function OnBuddyPropertyChangeResult(hr:I4; pUser:^IMsgrUser; ePropType:MUSERPROPERTY; vPropVal:variant; pService:^IMsgrService);
function OnNotificationReceived(bstrNotification:BSTR; pService:^IMsgrService);

Class MessengerApp;
GUID={FB7199AB-79BF-11D2-8D94-0000F875C541};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
property-get Application: IDispatch;
property-get Parent: IDispatch;
function Quit;
property-get Name: BSTR;
property-get FullName: BSTR;
property-get Path: BSTR;
function LaunchLogonUI;
function LaunchOptionsUI(MOPTDLGPAGE:MOPTDLGPAGE);
function LaunchAddContactUI(bstrEMail:BSTR);
function LaunchFindContactUI(bstrFirstName:BSTR; bstrLastName:BSTR; [vbstrCity:variant; vbstrState:variant; vbstrCountry:variant]);
function LaunchIMUI(vUser:variant): ^IMessengerIMWindow;
property-get IMWindows: ^IMessengerIMWindows;
property-get ToolBar: bool;
property-put ToolBar(bool);
property-get StatusBar: bool;
property-put StatusBar(bool);
property-get StatusText: BSTR;
property-put StatusText(BSTR);
property-get HWND: I4;
property-get Left: I4;
property-put Left(I4);
property-get Top: I4;
property-put Top(I4);
property-get Width: I4;
property-put Width(I4);
property-get Height: I4;
property-put Height(I4);
property-get Visible: bool;
property-put Visible(bool);
function AutoLogon;
property-put FirstTimeCredentials(bstrUser:BSTR; bstrPassword:BSTR; pService:^IMsgrService; I4);
property-put CachedPassword(bstrUser:BSTR; bstrPassword:BSTR; pService:^IMsgrService; bool);
function RequestURLPost(muType:MURLTYPE; [vbstrAdditionalInfo:variant]);
property-put TaskbarIcon(bool);
property-get TaskbarIcon: bool;
function LaunchPhoneUI(vUser:variant; ePhoneNumber:MUSERPROPERTY);
function LaunchAudioTuningWizard(hwndParent:I4);
function LaunchPagerUI(vUser:variant): ^IMessengerIMWindow;
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
property-get Application: IDispatch;
property-get Parent: IDispatch;
function Quit;
property-get Name: BSTR;
property-get FullName: BSTR;
property-get Path: BSTR;
function LaunchLogonUI;
function LaunchOptionsUI(MOPTDLGPAGE:MOPTDLGPAGE);
function LaunchAddContactUI(bstrEMail:BSTR);
function LaunchFindContactUI(bstrFirstName:BSTR; bstrLastName:BSTR; [vbstrCity:variant; vbstrState:variant; vbstrCountry:variant]);
function LaunchIMUI(vUser:variant): ^IMessengerIMWindow;
property-get IMWindows: ^IMessengerIMWindows;
property-get ToolBar: bool;
property-put ToolBar(bool);
property-get StatusBar: bool;
property-put StatusBar(bool);
property-get StatusText: BSTR;
property-put StatusText(BSTR);
property-get HWND: I4;
property-get Left: I4;
property-put Left(I4);
property-get Top: I4;
property-put Top(I4);
property-get Width: I4;
property-put Width(I4);
property-get Height: I4;
property-put Height(I4);
property-get Visible: bool;
property-put Visible(bool);
function AutoLogon;
property-put FirstTimeCredentials(bstrUser:BSTR; bstrPassword:BSTR; pService:^IMsgrService; I4);
property-put CachedPassword(bstrUser:BSTR; bstrPassword:BSTR; pService:^IMsgrService; bool);
function RequestURLPost(muType:MURLTYPE; [vbstrAdditionalInfo:variant]);
property-put TaskbarIcon(bool);
property-get TaskbarIcon: bool;

 
帮你提一下.
 
我应该从那儿个文件如何得到这个TLB呢?我可以开新贴给分.
 

Similar threads

D
回复
0
查看
1K
DelphiTeacher的专栏
D
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
D
回复
0
查看
1K
DelphiTeacher的专栏
D
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
D
回复
0
查看
1K
DelphiTeacher的专栏
D
后退
顶部