home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / exchinst.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  27KB  |  479 lines

  1. // --exchinst.h-----------------------------------------------------------------
  2. //
  3. // Functions for installing Exchange objects.
  4. //
  5. // Copyright 1986 - 1998 Microsoft Corporation.  All Rights Reserved.
  6. // -----------------------------------------------------------------------------
  7.  
  8. #ifndef _EXCHINST_H
  9. #define _EXCHINST_H
  10.  
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif // __cplusplus
  14.  
  15. #define OBJECT_GUID_MAIL_GATEWAY   "61DF5950-E40A-11ce-A2C9-00AA0040E865"
  16. #define OBJECT_GUID_MAILBOX_AGENT  "75BB4220-E40A-11ce-A2C9-00AA0040E865"
  17.  
  18. //$--HrEnumOrganizations--------------------------------------------------------
  19. //  Enumerates the organization name(s).
  20. // -----------------------------------------------------------------------------
  21. HRESULT HrEnumOrganizations(          // RETURNS: return code
  22.     IN  LPSTR lpszRootDN,                // distinguished name of DIT root
  23.     IN  LPSTR lpszServer,                // server name
  24.     OUT LPSTR *lppszOrganizations);      // organizations
  25.  
  26. //$--HrEnumSites----------------------------------------------------------------
  27. //  Enumerates the site name(s).
  28. // -----------------------------------------------------------------------------
  29. HRESULT HrEnumSites(                  // RETURNS: return code
  30.     IN  LPSTR lpszServer,                // server name
  31.     IN  LPSTR lpszOrganizationDN,        // distinguished name of organization
  32.     OUT LPSTR *lppszSites);              // sites
  33.  
  34. //$--HrEnumContainers-----------------------------------------------------------
  35. //  Enumerates the container name(s).
  36. // -----------------------------------------------------------------------------
  37. HRESULT HrEnumContainers(             // RETURNS: return code
  38.     IN  LPSTR lpszServer,                // server name
  39.     IN  LPSTR lpszSiteDN,                // distinguished name of site
  40.     IN  BOOL  fSubtree,                  // sub-tree?
  41.     OUT LPSTR *lppszContainers);         // containers
  42.  
  43. //$--HrEnumSiteAdmins-----------------------------------------------------------
  44. //  Enumerates the administrators for a given site.
  45. // -----------------------------------------------------------------------------
  46. HRESULT HrEnumSiteAdmins(             // RETURNS: return code
  47.     IN  LPSTR lpszServer,                // server name
  48.     IN  LPSTR lpszSiteDN,                // distinguished name of site
  49.     OUT LPSTR *lppszAdmins);             // administrator accounts
  50.  
  51. //$--HrEnumProductServices------------------------------------------------------
  52. //  Enumerates the services for a product.
  53. // -----------------------------------------------------------------------------
  54. HRESULT HrEnumProductServices(        // RETURNS: return code
  55.     IN  LPSTR lpszProductGuid,           // product GUID
  56.     OUT LPSTR *lppszServices,            // service names
  57.     OUT LPSTR *lppszDisplayNames);       // service display names
  58.  
  59. //$--HrInstallService-----------------------------------------------------------
  60. //  Installs a service associated with an Exchange object.
  61. // -----------------------------------------------------------------------------
  62. HRESULT HrInstallService(            // RETURNS: return code
  63.     IN LPSTR  lpszServer,               // server name
  64.     IN LPSTR  lpszSiteDN,               // distinguished name of site
  65.     IN LPSTR  lpszServiceDisplayName,   // service display name
  66.     IN LPSTR  lpszServiceName,          // service name
  67.     IN LPSTR  lpszCommonName,           // object relative distinguished name
  68.     IN LPSTR  lpszObjectGuid,           // object GUID
  69.     IN LPSTR  lpszProductGuid,          // product GUID
  70.     IN LPSTR  lpszExeName,              // executable name
  71.     IN LPCSTR lpszDependencies,         // dependencies
  72.     IN LPSTR  lpszAccount,              // account
  73.     IN LPSTR  lpszPassword);            // password
  74.  
  75. //$--HrGetServiceServerName-----------------------------------------------------
  76. //  Get the Exchange server name associated with the service.
  77. // -----------------------------------------------------------------------------
  78. HRESULT HrGetServiceServerName(      // RETURNS: return code
  79.     IN  LPSTR  lpszServiceName,         // service name
  80.     OUT LPSTR  *lppszServerName);       // server name
  81.  
  82. //$--HrGetServiceSiteDN---------------------------------------------------------
  83. //  Get the site DN of the Exchange object associated with the service.
  84. // -----------------------------------------------------------------------------
  85. HRESULT HrGetServiceSiteDN(          // RETURNS: return code
  86.     IN  LPSTR  lpszServiceName,         // service name
  87.     OUT LPSTR  *lppszSiteDN);           // site distinguished name
  88.  
  89. //$--HrGetServiceCommonName-----------------------------------------------------
  90. //  Get the common name of the Exchange object associated with the service.
  91. // -----------------------------------------------------------------------------
  92. HRESULT HrGetServiceCommonName(      // RETURNS: return code
  93.     IN  LPSTR  lpszServiceName,         // service name
  94.     OUT LPSTR  *lppszCommonName);       // object relative distinguished name
  95.  
  96. //$--HrGetServiceObjectGUID-----------------------------------------------------
  97. //  Get the object GUID associated with the service.
  98. // -----------------------------------------------------------------------------
  99. HRESULT HrGetServiceObjectGUID(      // RETURNS: return code
  100.     IN  LPSTR  lpszServiceName,         // service name
  101.     OUT LPSTR  *lppszObjectGUID);      // object GUID
  102.  
  103. //$--HrGetServiceProductGUID----------------------------------------------------
  104. //  Get the product GUID associated with the service.
  105. // -----------------------------------------------------------------------------
  106. HRESULT HrGetServiceProductGUID(     // RETURNS: return code
  107.     IN  LPSTR  lpszServiceName,        // service name
  108.     OUT LPSTR  *lppszProductGUID);     // product GUID
  109.  
  110. //$--HrGetServiceDisplayName----------------------------------------------------
  111. //  Get the display name associated with the service.
  112. // -----------------------------------------------------------------------------
  113. HRESULT HrGetServiceDisplayName(     // RETURNS: return code
  114.     IN  LPSTR  lpszServiceName,        // service name
  115.     OUT LPSTR  *lppszDisplayName);     // display name
  116.  
  117. //$--HrGetServiceExecutableName-------------------------------------------------
  118. //  Get the executable name associated with the service.
  119. // -----------------------------------------------------------------------------
  120. HRESULT HrGetServiceExecutableName(  // RETURNS: return code
  121.     IN  LPSTR  lpszServiceName,        // service name
  122.     OUT LPSTR  *lppszExecutableName);  // executable name
  123.  
  124. //$--HrGetServiceAccountName----------------------------------------------------
  125. //  Get the account name associated with the service.
  126. // -----------------------------------------------------------------------------
  127. HRESULT HrGetServiceAccountName(     // RETURNS: return code
  128.     IN  LPSTR  lpszServiceName,        // service name
  129.     OUT LPSTR  *lppszAccountName);     // account name
  130.  
  131. //$--HrRemoveRegistry-----------------------------------------------------------
  132. //  Remove the registry for the service.
  133. // -----------------------------------------------------------------------------
  134. HRESULT HrRemoveRegistry(              // RETURNS: nothing
  135.     IN LPCSTR lpszServiceName);        // service name
  136.  
  137. //$--HrRemoveService------------------------------------------------------------
  138. //  Removes a service.
  139. // -----------------------------------------------------------------------------
  140. HRESULT HrRemoveService(             // RETURNS: return code
  141.     IN LPCSTR lpszServiceName);        // service name
  142.  
  143. //$--HrInstallServicePerfMon----------------------------------------------------
  144. //  Installs service performance monitoring.
  145. // -----------------------------------------------------------------------------
  146. HRESULT HrInstallServicePerfMon(         // RETURNS: return code
  147.     IN LPSTR lpszServiceName,              // service name
  148.     IN LPSTR lpszClassName,                // class name
  149.     IN LPSTR lpszLibraryName,              // library name
  150.     IN LPSTR lpszLibraryOpenFunction,      // open function
  151.     IN LPSTR lpszLibraryCollectFunction,   // collect function
  152.     IN LPSTR lpszLibraryCloseFunction) ;   // close function
  153.  
  154. //$--HrRemoveServicePerfMon-----------------------------------------------------
  155. //  Removes service performance monitoring.
  156. // -----------------------------------------------------------------------------
  157. HRESULT HrRemoveServicePerfMon(          // RETURNS: return code
  158.     IN  LPSTR lpszServiceName,             // service name
  159.     IN  LPSTR lpszClassName,               // class name
  160.     OUT BOOL   *lpfUnloadCounters);         // unload counters?
  161.  
  162. //$--HrCreateGatewayProfile-----------------------------------------------------
  163. //  Creates a gateway profile.
  164. // -----------------------------------------------------------------------------
  165. HRESULT HrCreateGatewayProfile(          // RETURNS: return code
  166.     IN LPSTR lpszServiceName,              // service name
  167.     IN LPSTR lpszProfileName);             // profile name
  168.  
  169. //$--HrCreateMailboxAgentProfile------------------------------------------------
  170. //  Creates a mailbox agent profile.
  171. // -----------------------------------------------------------------------------
  172. HRESULT HrCreateMailboxAgentProfile(     // RETURNS: return code
  173.     IN LPSTR lpszServiceName,              // service name
  174.     IN LPSTR lpszProfileName);             // profile name
  175.  
  176. //$--HrRemoveProfile------------------------------------------------------------
  177. //  Removes a profile.
  178. //------------------------------------------------------------------------------
  179. HRESULT HrRemoveProfile(                 // RETURNS: return code
  180.     IN LPSTR lpszProfileName);                // profile name
  181.  
  182. //$--HrMAPIProfileExists--------------------------------------------------------
  183. //  Checks for an existing profile.
  184. // -----------------------------------------------------------------------------
  185. HRESULT HrMAPIProfileExists(            // RETURNS: return code
  186.     IN LPPROFADMIN lpProfAdmin,         // profile admin object
  187.     IN LPSTR       lpszProfileName);    // profile name
  188.  
  189. //$--HrInstallGateway-----------------------------------------------------------
  190. // Installs a gateway into a given site.
  191. // -----------------------------------------------------------------------------
  192. HRESULT HrInstallGateway(           // RETURNS: return code
  193.     IN LPSTR lpszServer,            // server name
  194.     IN LPSTR lpszSiteDN,            // distinguished name of site
  195.     IN LPSTR lpszDisplayName,       // display name
  196.     IN LPSTR lpszCommonName,        // common name
  197.     IN LPSTR lpszExtensionName,     // admin extension name
  198.     IN LPSTR lpszExtensionData,     // extension data file
  199.     IN LPSTR lpszAddressType,       // address type handled by this gateway
  200.     IN LPSTR lpszAccountName,       // account name
  201.     IN BOOL  fCanPreserveDNs);      // can this gateway preserve DNs?
  202.  
  203. //$--HrRemoveGateway------------------------------------------------------------
  204. //  Removes a gateway from a given site.
  205. // -----------------------------------------------------------------------------
  206. HRESULT HrRemoveGateway(            // RETURNS: return code
  207.     IN LPSTR lpszServer,            // server name
  208.     IN LPSTR lpszSiteDN,            // distinguished name of site
  209.     IN LPSTR lpszCommonName);       // common name
  210.  
  211. //$--HrGatewayExists------------------------------------------------------------
  212. //  Checks if a gateway exists on a given site.
  213. // -----------------------------------------------------------------------------
  214. HRESULT HrGatewayExists(            // RETURNS: return code
  215.     IN LPSTR lpszServer,            // server name
  216.     IN LPSTR lpszSiteDN,            // distinguished name of site
  217.     IN LPSTR lpszCommonName);       // common name
  218.  
  219. //$--HrInstallMailboxAgent------------------------------------------------------
  220. //  Installs a mailbox agent into a given site.
  221. // -----------------------------------------------------------------------------
  222. HRESULT HrInstallMailboxAgent(      // RETURNS: return code
  223.     IN LPSTR lpszServer,            // server name
  224.     IN LPSTR lpszSiteDN,            // distinguished name of site
  225.     IN LPSTR lpszDisplayName,       // display name
  226.     IN LPSTR lpszRDN,               // relative distinguished name
  227.     IN LPSTR lpszExtensionName,     // admin extension name
  228.     IN LPSTR lpszExtensionData,     // extension data file
  229.     IN LPSTR lpszAccountName);      // account name
  230.  
  231. //$--HrRemoveMailboxAgent-------------------------------------------------------
  232. // Removes a mailbox agent from a given site.
  233. // -----------------------------------------------------------------------------
  234. HRESULT HrRemoveMailboxAgent(       // RETURNS: return code
  235.     IN LPSTR lpszServer,            // server name
  236.     IN LPSTR lpszSiteDN,            // distinguished name of site
  237.     IN LPSTR lpszRDN);              // relative distinguished name
  238.  
  239. //$--HrMailboxAgentExists-------------------------------------------------------
  240. // Checks if a mailbox agent exists on a given site.
  241. // -----------------------------------------------------------------------------
  242. HRESULT HrMailboxAgentExists(       // RETURNS: return code
  243.     IN LPSTR lpszServer,            // server name
  244.     IN LPSTR lpszSiteDN,            // distinguished name of site
  245.     IN LPSTR lpszRDN);              // relative distinguished name
  246.  
  247. //$--HrInstallAddressType-------------------------------------------------------
  248. //  Installs an address type object into a given site.
  249. // -----------------------------------------------------------------------------
  250. HRESULT HrInstallAddressType(       // RETURNS: return code
  251.     IN LPSTR lpszServer,            // server name
  252.     IN LPSTR lpszSiteDN,            // distinguished name of site
  253.     IN LPSTR lpszDisplayName,       // display name
  254.     IN LPSTR lpszCommonName,        // common name
  255.     IN DWORD  dwFileVersionMS,      // high-order 32 bits of file version number
  256.     IN DWORD  dwFileVersionLS,      // low-order 32 bits of file version number
  257.     IN LPSTR lpszProxyGenDLL,       // proxy generator DLL file name
  258.     IN LPSTR lpszMachineType);      // machine type (e.g. "i386")
  259.  
  260. //$--HrRemoveAddressType--------------------------------------------------------
  261. //  Removes an address type from a given site.
  262. // -----------------------------------------------------------------------------
  263. HRESULT HrRemoveAddressType(        // RETURNS: return code
  264.     IN LPSTR lpszServer,            // server name
  265.     IN LPSTR lpszSiteDN,            // distinguished name of site
  266.     IN LPSTR lpszCommonName,        // common name
  267.     IN LPSTR lpszMachineType);      // machine type (e.g. "i386")
  268.  
  269. //$--HrAddressTypeExists--------------------------------------------------------
  270. //  Checks if an address type exists on a given site.
  271. // -----------------------------------------------------------------------------
  272. HRESULT HrAddressTypeExists(        // RETURNS: return code
  273.     IN LPSTR lpszServer,            // server name
  274.     IN LPSTR lpszSiteDN,            // distinguished name of site
  275.     IN LPSTR lpszCommonName,        // common name
  276.     IN LPSTR lpszMachineType);      // machine type (e.g. "i386")
  277.  
  278. //$--HrGetAddressTypeVersion----------------------------------------------------
  279. //  Get the version of an address type object in a given site.
  280. // -----------------------------------------------------------------------------
  281. HRESULT HrGetAddressTypeVersion(    // RETURNS: return code
  282.     IN LPSTR lpszServer,            // server name
  283.     IN LPSTR lpszSiteDN,            // distinguished name of site
  284.     IN LPSTR lpszCommonName,        // common name
  285.     IN LPSTR lpszMachineType,       // machine type (e.g. "i386")
  286.     OUT DWORD *lpdwFileVersionMS,   // high-order 32 bits of file version
  287.     OUT DWORD *lpdwFileVersionLS);  // low-order 32 bits of file version
  288.  
  289. //$--HrInstallAddressTemplate---------------------------------------------------
  290. //  Installs an address template into a given site.
  291. // -----------------------------------------------------------------------------
  292. HRESULT HrInstallAddressTemplate(   // RETURNS: return code
  293.     IN LPSTR lpszServer,            // server name
  294.     IN LPSTR lpszSiteDN,            // distinguished name of site
  295.     IN LPSTR lpszDisplayName,       // display name
  296.     IN LPSTR lpszCommonName,        // common name
  297.     IN LPSTR lpszAddressSyntax,     // address syntax generator file
  298.     IN LPSTR lpszAddressType,       // address type supported by this template
  299.     IN LPSTR lpszPerMessageDDT,     // per-message dialog file
  300.     IN LPSTR lpszPerRecipientDDT,   // per-recipient dialog file
  301.     IN LPSTR lpszAddressEntryDDT,   // address entry dialog file
  302.     IN LPSTR lpszLanguage,          // language supported by this template
  303.     IN LPSTR lpszHelpData16,        // help data for 16-bit clients
  304.     IN LPSTR lpszHelpData32,        // help data for 32-bit clients
  305.     IN LPSTR lpszHelpFile);         // client help file name
  306.  
  307. //$--HrRemoveAddressTemplate----------------------------------------------------
  308. //  Removes an address template from a given site.
  309. // -----------------------------------------------------------------------------
  310. HRESULT HrRemoveAddressTemplate(    // RETURNS: return code
  311.     IN LPSTR lpszServer,            // server name
  312.     IN LPSTR lpszSiteDN,            // distinguished name of site
  313.     IN LPSTR lpszCommonName,        // common name
  314.     IN LPSTR lpszAddressType,       // address type supported by this template
  315.     IN LPSTR lpszLanguage);         // language supported by this template
  316.  
  317. //$--HrAddressTemplateExists----------------------------------------------------
  318. //  Checks if an address template exists on a given site.
  319. // -----------------------------------------------------------------------------
  320. HRESULT HrAddressTemplateExists(    // RETURNS: return code
  321.     IN LPSTR lpszServer,            // server name
  322.     IN LPSTR lpszSiteDN,            // distinguished name of site
  323.     IN LPSTR lpszCommonName,        // common name
  324.     IN LPSTR lpszAddressType,       // address type supported by this template
  325.     IN LPSTR lpszLanguage);         // language supported by this template
  326.  
  327. //$--HrInstallAdminExtension----------------------------------------------------
  328. //  Installs an admin extension object into a given site.
  329. // -----------------------------------------------------------------------------
  330. HRESULT HrInstallAdminExtension(    // RETURNS: return code
  331.     IN LPSTR lpszServer,            // server name
  332.     IN LPSTR lpszSiteDN,            // distinguished name of site
  333.     IN LPSTR lpszDisplayName,       // display name
  334.     IN LPSTR lpszCommonName,        // common name
  335.     IN DWORD dwFileVersionMS,       // high-order 32 bits of file version number
  336.     IN DWORD dwFileVersionLS,       // low-order 32 bits of file version number
  337.     IN LPSTR lpszExtensionDLL,      // admin extension DLL file name
  338.     IN LPSTR lpszMachineType);      // machine type (e.g. "i386")
  339.  
  340.  
  341. //$--HrRemoveAdminExtension-----------------------------------------------------
  342. //  Removes an admin extension from a given site.
  343. // -----------------------------------------------------------------------------
  344. HRESULT HrRemoveAdminExtension(     // RETURNS: return code
  345.     IN LPSTR lpszServer,            // server name
  346.     IN LPSTR lpszSiteDN,            // distinguished name of site
  347.     IN LPSTR lpszCommonName,        // common name
  348.     IN LPSTR lpszMachineType);      // machine type (e.g. "i386")
  349.  
  350. //$--HrAdminExtensionExists-----------------------------------------------------
  351. //  Checks if an admin extension exists on a given site.
  352. // -----------------------------------------------------------------------------
  353. HRESULT HrAdminExtensionExists(     // RETURNS: return code
  354.     IN LPSTR lpszServer,            // server name
  355.     IN LPSTR lpszSiteDN,            // distinguished name of site
  356.     IN LPSTR lpszCommonName,        // common name
  357.     IN LPSTR lpszMachineType);      // machine type (e.g. "i386")
  358.  
  359. //$--HrGetAdminExtensionVersion-------------------------------------------------
  360. //  Get the version of an admin extension object in a given site.
  361. // -----------------------------------------------------------------------------
  362. HRESULT HrGetAdminExtensionVersion(     // RETURNS: return code
  363.     IN LPSTR lpszServer,                // server name
  364.     IN LPSTR lpszSiteDN,                // distinguished name of site
  365.     IN LPSTR lpszCommonName,            // common name
  366.     IN LPSTR lpszMachineType,           // machine type (e.g. "i386")
  367.     OUT DWORD *lpdwFileVersionMS,       // high-order 32 bits of file version
  368.     OUT DWORD *lpdwFileVersionLS);      // low-order 32 bits of file version
  369.  
  370. //$--HrInstallContainer---------------------------------------------------------
  371. //  Installs a container in the directory.
  372. // -----------------------------------------------------------------------------
  373. HRESULT HrInstallContainer(         // RETURNS: return code
  374.     IN LPSTR lpszServer,            // server name
  375.     IN LPSTR lpszBasePoint,         // base point
  376.     IN LPSTR lpszCommonName,        // common name
  377.     IN LPSTR lpszDisplayName,       // display name
  378.     IN LPSTR lpszContainerInfo);    // container information
  379.  
  380. //$--HrRemoveContainer----------------------------------------------------------
  381. //  Removes a container from the directory.
  382. // -----------------------------------------------------------------------------
  383. HRESULT HrRemoveContainer(          // RETURNS: return code
  384.     IN LPSTR lpszServer,            // server name
  385.     IN LPSTR lpszBasePoint,         // base point
  386.     IN LPSTR lpszCommonName);       // common name
  387.  
  388. //$--HrContainerExists----------------------------------------------------------
  389. //  Checks if a container exists in the directory.
  390. // -----------------------------------------------------------------------------
  391. HRESULT HrContainerExists(          // RETURNS: return code
  392.     IN LPSTR lpszServer,            // server name
  393.     IN LPSTR lpszBasePoint,         // base point
  394.     IN LPSTR lpszCommonName);       // common name
  395.  
  396. //$--HrInstallAddressTemplateContainer------------------------------------------
  397. //  Installs an address template container in the directory.
  398. // -----------------------------------------------------------------------------
  399. HRESULT HrInstallAddressTemplateContainer(  // RETURNS: return code
  400.     IN LPSTR lpszServer,                    // server name
  401.     IN LPSTR lpszSiteDN,                    // site distinguished name
  402.     IN LPSTR lpszLanguage,                  // language supported by container
  403.     IN LPSTR lpszDisplayName);              // display name
  404.  
  405. //$--HrRemoveAddressTemplateContainer-------------------------------------------
  406. //  Removes an address template container from the directory.
  407. // -----------------------------------------------------------------------------
  408. HRESULT HrRemoveAddressTemplateContainer(   // RETURNS: return code
  409.     IN LPSTR lpszServer,                    // server name
  410.     IN LPSTR lpszSiteDN,                    // site distinguished name
  411.     IN LPSTR lpszLanguage);                 // language supported by container
  412.  
  413. //$--HrAddressTemplateContainerExists-------------------------------------------
  414. //  Checks if an address template container exists in the directory.
  415. // -----------------------------------------------------------------------------
  416. HRESULT HrAddressTemplateContainerExists(   // RETURNS: return code
  417.     IN LPSTR lpszServer,                    // server name
  418.     IN LPSTR lpszSiteDN,                    // site distinguished name
  419.     IN LPSTR lpszLanguage);                 // language supported by container
  420.  
  421. //$--HrInstallGatewayProxy------------------------------------------------------
  422. //  Installs a gateway proxy into a given site.
  423. // -----------------------------------------------------------------------------
  424. HRESULT HrInstallGatewayProxy(      // RETURNS: return code
  425.     IN LPSTR lpszServer,            // server name
  426.     IN LPSTR lpszSiteDN,            // distinguished name of site
  427.     IN LPSTR lpszProxy);            // gateway proxy
  428.  
  429. //$--HrRemoveGatewayProxy-------------------------------------------------------
  430. //  Removes a gateway proxy from a given site.
  431. // -----------------------------------------------------------------------------
  432. HRESULT HrRemoveGatewayProxy(       // RETURNS: return code
  433.     IN LPSTR lpszServer,            // server name
  434.     IN LPSTR lpszSiteDN,            // distinguished name of site
  435.     IN LPSTR lpszProxy);            // gateway proxy
  436.  
  437. //$--FHasAdminPrivs-------------------------------------------------------------
  438. //  Returns TRUE if the current user is an administrator.
  439. // -----------------------------------------------------------------------------
  440. BOOL FHasAdminPrivs(                // RETURNS: TRUE/FALSE
  441.     void);                          // no arguments
  442.  
  443.  
  444. //$--HrInstallMessageConverter--------------------------------------------------
  445. // Installs a message conversion DLL.
  446. // -----------------------------------------------------------------------------
  447. HRESULT HrInstallMessageConverter(      // RETURNS: return code
  448.     IN LPSTR lpszConverter,             // converter name
  449.     IN LPSTR lpszDllName,               // name of conversion DLL
  450.     IN LPSTR lpszMessageClasses,        // message classes
  451.     IN LPSTR lpszOptions,               // options string
  452.     IN LPSTR lpszPoint);                // conversion point
  453.  
  454. //$--HrRemoveMessageConverter--------------------------------------------------
  455. //  Delete a message conversion DLL.
  456. // ----------------------------------------------------------------------------
  457. HRESULT HrRemoveMessageConverter(       // RETURNS: return code
  458.     IN LPCSTR lpszConverter);           // converter name
  459.  
  460.  
  461. //$--HrAdminProgramExists------------------------------------------------------
  462. //  Check if the admin program has been installed on the local computer.
  463. // ----------------------------------------------------------------------------
  464. HRESULT HrAdminProgramExists(           // RETURNS: return code
  465.     void);                              // nothing
  466.  
  467. //$--HrSetGatewayBit------------------------------------------------------------
  468. //  This function will set the gateway bit on a given server.
  469. // -----------------------------------------------------------------------------
  470. HRESULT HrSetGatewayBit(                // RETURNS: return code
  471.     IN  LPSTR lpszServer,               // server name
  472.     IN  LPSTR lpszSiteDN,               // site distinguished name
  473.     IN  LPSTR lpszServerName);          // server name
  474.  
  475. #ifdef __cplusplus
  476. }
  477. #endif
  478.  
  479. #endif