home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / mapi / remote.xp / winds.idl < prev    next >
Encoding:
Text File  |  1996-04-11  |  12.4 KB  |  178 lines

  1. [
  2.     uuid(DDFFFE60-36D0-11CE-9F2D-00AA00510E3B),
  3.     version(1.6),
  4.     pointer_default(unique)
  5. ]
  6.  
  7. #define MAX_ALIAS_SIZE      16+1
  8. #define MAX_STRING_SIZE     32+1
  9. #define MAX_PHONE_SIZE      12+1
  10. #define MAX_COMMENT_SIZE    79+1
  11. #define MAX_PASSWORD_SIZE   MAX_ALIAS_SIZE
  12.  
  13. interface WINDSREM
  14. {
  15.     long RemoteIsServerRunning
  16.             ();
  17.     long RemoteGetAllAccounts
  18.             ([out] long *                                               pPipeNumber);
  19.     long RemoteFinishUpload                                             
  20.             ([in, string] unsigned char *                               szCookie);
  21.     long RemoteGetContainerProps                                        
  22.             ([in] unsigned long                                         dwContainerID,
  23.              [out] unsigned long *                                      pdwContentCount);
  24.     long RemoteGetContainerRecipients                                   
  25.             ([in] unsigned long                                         dwFlags,
  26.              [in] unsigned long                                         dwContainerID, 
  27.              [out] long *                                               pPipeNumber);
  28.     long RemoteGetPublicFoldersList                                     
  29.             ([in] short                                                 nFlags,
  30.              [out] long *                                               pPipeNumber);
  31.     long RemoteGetPublicFolderMessages                                  
  32.             ([in] short                                                 nFlags,
  33.              [in] unsigned long                                         dwFolderID,
  34.              [out] long *                                               pPipeNumber);
  35.                                                                         
  36.     // ANSI Remote server calls
  37.     long RemoteChangePasswordA                                          
  38.             ([in] unsigned char *                                       szMailbox,
  39.              [in, string] unsigned char *                               szOldPassword,
  40.              [in, string] unsigned char *                               szNewPassword);
  41.     long RemoteLogonMailBoxA                                            
  42.             ([in, string] unsigned char *                               szMailbox,
  43.              [in, string] unsigned char *                               szPassword,
  44.              [out, string, size_is(MAX_STRING_SIZE)] unsigned char *    szFullName,
  45.              [out] unsigned long *                                      pdwMailboxID);
  46.     long RemoteLogonMailBoxAndSetNotifA
  47.             ([in, string] unsigned char *                               szMailbox,
  48.              [in, string] unsigned char *                               szPassword,
  49.              [out, string, size_is(MAX_STRING_SIZE)] unsigned char *    szFullName,
  50.              [out] unsigned long *                                      pdwMailboxID,
  51.              [in, string] unsigned char *                               szComputerName,
  52.              [in] unsigned long                                         ulNotifMask,
  53.              [out] unsigned long *                                      pulConnectionID);
  54.     long RemoteTerminateNotifA
  55.             ([in, string] unsigned char *                               szComputerName,
  56.              [in] unsigned long                                         ulConnectionID);
  57.     long RemoteValidateNotifA
  58.             ([in, string] unsigned char *                               szComputerName,
  59.              [in, string] unsigned char *                               szMailboxName,
  60.              [in] unsigned long                                         ulNotifMask,
  61.              [out] unsigned long *                                      pulConnectionID);
  62.     long RemoteOpenMsgUploadPipeA
  63.             ([in, string] unsigned char *                               szSenderMailbox,
  64.              [out] long *                                               pPipeNumber,
  65.              [out, string, size_is(MAX_STRING_SIZE)] unsigned char *    szCookie);
  66.     long RemoteSendMsgToAccountA
  67.             ([in, string] unsigned char *                               szRecipAccount,
  68.              [in, string] unsigned char *                               szHeaderInfo,
  69.              [in, string] unsigned char *                               szCookie);
  70.     long RemoteOpenMsgDownloadPipeA                                     
  71.             ([in, string] unsigned char *                               szMailbox,
  72.              [out] unsigned long *                                      pPipeNumber);
  73.     long RemoteOpenHeaderDownloadPipeA                                  
  74.             ([in, string] unsigned char *                               szMailbox,
  75.              [out] long *                                               pPipeNumber);
  76.     long RemoteCheckNewMailA                                            
  77.             ([in, string] unsigned char *                               szMailbox,
  78.              [out] unsigned long *                                      pulPending);
  79.     long RemoteOpenOneMsgDownloadPipeA                                  
  80.             ([in, string] unsigned char *                               szMailbox,
  81.              [out] long *                                               pPipeNumber);
  82.     long RemoteGetRecipientPropsA 
  83.             ([in] unsigned long                                         dwObjID,
  84.              [out] unsigned long *                                      pdwUserType,
  85.              [out, string, size_is(MAX_ALIAS_SIZE)] unsigned char *     szMailboxName,
  86.              [out, string, size_is(MAX_STRING_SIZE)] unsigned char *    szFullName,
  87.              [out, string, size_is(MAX_STRING_SIZE)] unsigned char *    szJobTitle,
  88.              [out, string, size_is(MAX_STRING_SIZE)] unsigned char *    szOffice,
  89.              [out, string, size_is(MAX_PHONE_SIZE)] unsigned char *     szPhone,
  90.              [out, string, size_is(MAX_PHONE_SIZE)] unsigned char *     szAltPhone,
  91.              [out, string, size_is(MAX_PHONE_SIZE)] unsigned char *     szFax,
  92.              [out, string, size_is(MAX_COMMENT_SIZE)] unsigned char *   szComments,
  93.              [out, string, size_is(MAX_STRING_SIZE)] unsigned char *    szCompany,
  94.              [out, string, size_is(MAX_STRING_SIZE)] unsigned char *    szDepartment,
  95.              [out, string, size_is(MAX_STRING_SIZE)] unsigned char *    szManagerName,
  96.              [out, string, size_is(MAX_ALIAS_SIZE)] unsigned char *     szManagerAlias,
  97.              [out] unsigned long *                                      pdwManagerID);
  98.     long RemoteGetDistListPropsA
  99.             ([in] unsigned long                                         dwObjID,
  100.              [out, string, size_is(MAX_ALIAS_SIZE)] unsigned char *     szDLAlias,
  101.              [out, string, size_is(MAX_STRING_SIZE)] unsigned char *    szDLFullName,
  102.              [out] unsigned long *                                      pdwContentCount,
  103.              [out, string, size_is(MAX_ALIAS_SIZE)] unsigned char *     szOwnerAlias,
  104.              [out, string, size_is(MAX_STRING_SIZE)] unsigned char *    szOwnerName,
  105.              [out, string, size_is(MAX_COMMENT_SIZE)] unsigned char *   szComments);
  106.  
  107.     // UNICODE Remote server calls
  108.     long RemoteChangePasswordW
  109.             ([in] wchar_t *                                             szMailbox,
  110.              [in, string] wchar_t *                                     szOldPassword,
  111.              [in, string] wchar_t *                                     szNewPassword);
  112.     long RemoteLogonMailBoxW
  113.             ([in, string] wchar_t *                                     szMailbox,
  114.              [in, string] wchar_t *                                     szPassword,
  115.              [out, string, size_is(MAX_STRING_SIZE)] wchar_t *          szFullName,
  116.              [out] unsigned long *                                      pdwMailboxID);
  117.     long RemoteLogonMailBoxAndSetNotifW
  118.             ([in, string] wchar_t *                                     szMailbox,
  119.              [in, string] wchar_t *                                     szPassword,
  120.              [out, string, size_is(MAX_STRING_SIZE)] wchar_t *          szFullName,
  121.              [out] unsigned long *                                      pdwMailboxID,
  122.              [in, string] wchar_t *                                     szComputerName,
  123.              [in] unsigned long                                         ulNotifMask,
  124.              [out] unsigned long *                                      pulConnectionID);
  125.     long RemoteTerminateNotifW
  126.             ([in, string] wchar_t *                                     szComputerName,
  127.              [in] unsigned long                                         ulConnectionID);
  128.     long RemoteValidateNotifW
  129.             ([in, string] wchar_t *                                     szComputerName,
  130.              [in, string] wchar_t *                                     szMailboxName,
  131.              [in] unsigned long                                         ulNotifMask,
  132.              [out] unsigned long *                                      pulConnectionID);
  133.     long RemoteOpenMsgUploadPipeW
  134.             ([in, string] wchar_t *                                     szSenderMailbox,
  135.              [out] long *                                               pPipeNumber,
  136.              [out, string, size_is(MAX_STRING_SIZE)] unsigned char *    szCookie);
  137.     long RemoteSendMsgToAccountW
  138.             ([in, string] wchar_t *                                     szRecipAccount,
  139.              [in, string] wchar_t *                                     szHeaderInfo,
  140.              [in, string] wchar_t *                                     szCookie);
  141.     long RemoteOpenMsgDownloadPipeW
  142.             ([in, string] wchar_t *                                     szMailbox,
  143.              [out] unsigned long *                                      pPipeNumber);
  144.     long RemoteOpenHeaderDownloadPipeW
  145.             ([in, string] wchar_t *                                     szMailbox,
  146.              [out] long *                                               pPipeNumber);
  147.     long RemoteCheckNewMailW
  148.             ([in, string] wchar_t *                                     szMailbox,
  149.              [out] unsigned long *                                      pulPending);
  150.     long RemoteOpenOneMsgDownloadPipeW
  151.             ([in, string] wchar_t *                                     szMailbox,
  152.              [out] long *                                               pPipeNumber);
  153.     long RemoteGetRecipientPropsW
  154.             ([in] unsigned long                                         dwObjID,
  155.              [out] unsigned long *                                      pdwUserType,
  156.              [out, string, size_is(MAX_ALIAS_SIZE)] wchar_t *           szMailboxName,
  157.              [out, string, size_is(MAX_STRING_SIZE)] wchar_t *          szFullName,
  158.              [out, string, size_is(MAX_STRING_SIZE)] wchar_t *          szJobTitle,
  159.              [out, string, size_is(MAX_STRING_SIZE)] wchar_t *          szOffice,
  160.              [out, string, size_is(MAX_PHONE_SIZE)] wchar_t *           szPhone,
  161.              [out, string, size_is(MAX_PHONE_SIZE)] wchar_t *           szAltPhone,
  162.              [out, string, size_is(MAX_PHONE_SIZE)] wchar_t *           szFax,
  163.              [out, string, size_is(MAX_COMMENT_SIZE)] wchar_t *         szComments,
  164.              [out, string, size_is(MAX_STRING_SIZE)] wchar_t *          szCompany,
  165.              [out, string, size_is(MAX_STRING_SIZE)] wchar_t *          szDepartment,
  166.              [out, string, size_is(MAX_STRING_SIZE)] wchar_t *          szManagerName,
  167.              [out, string, size_is(MAX_ALIAS_SIZE)] wchar_t *           szManagerAlias,
  168.              [out] unsigned long *                                      pdwManagerID);
  169.     long RemoteGetDistListPropsW
  170.             ([in] unsigned long                                         dwObjID,
  171.              [out, string, size_is(MAX_ALIAS_SIZE)] wchar_t *           szDLAlias,
  172.              [out, string, size_is(MAX_STRING_SIZE)] wchar_t *          szDLFullName,
  173.              [out] unsigned long *                                      pdwContentCount,
  174.              [out, string, size_is(MAX_ALIAS_SIZE)] wchar_t *           szOwnerAlias,
  175.              [out, string, size_is(MAX_STRING_SIZE)] wchar_t *          szOwnerName,
  176.              [out, string, size_is(MAX_COMMENT_SIZE)] wchar_t *         szComments);
  177. }
  178.