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

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2.  
  3.  
  4. /* File created by MIDL compiler version 2.00.0104 */
  5. /* at Tue Jul 09 17:56:05 1996
  6.  */
  7. //@@MIDL_FILE_HEADING(  )
  8. #include "rpc.h"
  9. #include "rpcndr.h"
  10.  
  11. #ifndef __rpcpri_h__
  12. #define __rpcpri_h__
  13.  
  14. #ifdef __cplusplus
  15. extern "C"{
  16. #endif 
  17.  
  18. /* Forward Declarations */ 
  19.  
  20. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  21. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  22.  
  23. #ifndef __TriggerPrivateRPC_INTERFACE_DEFINED__
  24. #define __TriggerPrivateRPC_INTERFACE_DEFINED__
  25.  
  26. /****************************************
  27.  * Generated header for interface: TriggerPrivateRPC
  28.  * at Tue Jul 09 17:56:05 1996
  29.  * using MIDL 2.00.0104
  30.  ****************************************/
  31. /* [auto_handle][unique][version][uuid] */ 
  32.  
  33.  
  34. #ifndef RPC_COMMON_IDL
  35. #define RPC_COMMON_IDL
  36. #define        szTriggerRPCProtocol        TEXT("ncacn_np")
  37. #define        szTriggerRPCSecurity        TEXT("Security=impersonation dynamic true")
  38.             /* size is 4 */
  39. typedef long RPC_BOOL;
  40.  
  41.             /* size is 1 */
  42. typedef small RPC_BYTE;
  43.  
  44.             /* size is 4 */
  45. typedef long RPC_INT;
  46.  
  47.             /* size is 4 */
  48. typedef long RPC_SC;
  49.  
  50.             /* size is 4 */
  51. typedef long RPC_EC;
  52.  
  53.             /* size is 4 */
  54. typedef long RPC_DWORD;
  55.  
  56.             /* size is 2 */
  57. typedef wchar_t RPC_CHAR;
  58.  
  59.             /* size is 4 */
  60. typedef /* [string] */ RPC_CHAR __RPC_FAR *RPC_SZ;
  61.  
  62.             /* size is 16 */
  63. typedef struct  __MIDL_TriggerPrivateRPC_0001
  64.     {
  65.     short rgwSystemTime[ 8 ];
  66.     }    RPC_SYSTEMTIME;
  67.  
  68.             /* size is 172 */
  69. typedef struct  __MIDL_TriggerPrivateRPC_0002
  70.     {
  71.     RPC_BYTE rgbTzi[ 172 ];
  72.     }    RPC_TIME_ZONE_INFORMATION;
  73.  
  74.             /* size is 28 */
  75. typedef struct  __MIDL_TriggerPrivateRPC_0003
  76.     {
  77.     long rgdwServiceStatus[ 7 ];
  78.     }    RPC_SERVICE_STATUS;
  79.  
  80. #define        ecOK                        0        // no error
  81. #define        ecGeneralFailure            50001    // a failure occurred that caused proxy generation to stop
  82. #define        ecSomeProxiesFailed            50002    // some proxies failed to get generated
  83. #define        ecTargetNotValid            50003    // supplied target address not valid
  84. #define        ecTargetNotUnique            50004    // supplied target address not unique
  85. #define        ecProxyDLLNotImplemented    50005    // not implemented yet
  86. #define        ecProxyDLLOOM                50006    // memory allocation error
  87. #define        ecProxyDLLError                50007    // general error
  88. #define        ecProxyDLLProtocol            50008    // protocol error
  89. #define        ecProxyDLLSyntax            50009    // syntax error
  90. #define        ecProxyDLLEOF                50010   // end of file
  91. #define        ecProxyDLLSoftware            50011    // error in software
  92. #define        ecProxyDLLConfig            50012    // configuration error
  93. #define        ecProxyDLLContention        50013    // contention error
  94. #define        ecProxyDLLNotFound            50014    // not found
  95. #define        ecProxyDLLDiskSpace            50015    // out of disk space
  96. #define        ecProxyDLLException            50016    // exception thrown
  97. #define        ecProxyDLLDefault            50017    // unknown error
  98. #define        ecProxyNotValid                50018    // supplied proxy not valid
  99. #define        ecProxyNotUnique            50019    // supplied proxy not unique or unable to generate a unique proxy
  100. #define        ecProxyDuplicate            50020    // a primary proxy of the same type was also supplied
  101.             /* size is 16 */
  102. typedef struct  _PROXYNODE
  103.     {
  104.     struct _PROXYNODE __RPC_FAR *pnodeNext;
  105.     RPC_SZ wszProxy;
  106.     RPC_EC ec;
  107.     RPC_SZ wszDN;
  108.     }    PROXYNODE;
  109.  
  110.             /* size is 4 */
  111. typedef struct _PROXYNODE __RPC_FAR *PPROXYNODE;
  112.  
  113.             /* size is 48 */
  114. typedef struct  _PROXYINFO
  115.     {
  116.     RPC_BOOL fContinueOnError;
  117.     RPC_BOOL fIgnoreOldSecondaries;
  118.     RPC_SZ wszDN;
  119.     RPC_SZ wszNickName;
  120.     RPC_SZ wszCommonName;
  121.     RPC_SZ wszDisplayName;
  122.     RPC_SZ wszSurName;
  123.     RPC_SZ wszGivenName;
  124.     RPC_SZ wszInitials;
  125.     RPC_SZ wszTargetAddress;
  126.     PROXYNODE __RPC_FAR *pPNVerifyProxy;
  127.     PROXYNODE __RPC_FAR *pPNExcludeProxy;
  128.     }    PROXYINFO;
  129.  
  130.             /* size is 4 */
  131. typedef struct _PROXYINFO __RPC_FAR *PPROXYINFO;
  132.  
  133.             /* size is 8 */
  134. typedef struct  _PROXYLIST
  135.     {
  136.     PROXYNODE __RPC_FAR *__RPC_FAR *ppPNProxy;
  137.     PROXYNODE __RPC_FAR *__RPC_FAR *ppPNFailedProxyType;
  138.     }    PROXYLIST;
  139.  
  140.             /* size is 4 */
  141. typedef struct _PROXYLIST __RPC_FAR *PPROXYLIST;
  142.  
  143.             /* size is 192 */
  144. typedef struct  __MIDL_TriggerPrivateRPC_0004
  145.     {
  146.     RPC_SYSTEMTIME st;
  147.     RPC_TIME_ZONE_INFORMATION tzi;
  148.     RPC_DWORD dwReturn;
  149.     }    RemoteSystemTimeInfo;
  150.  
  151.             /* size is 48 */
  152. typedef struct  _RemoteServiceStatus
  153.     {
  154.     RPC_SC sc;
  155.     RPC_SZ szShortName;
  156.     RPC_SZ szDisplayName;
  157.     RPC_SZ szVersion;
  158.     RPC_SERVICE_STATUS ss;
  159.     struct _RemoteServiceStatus __RPC_FAR *prssNext;
  160.     }    RemoteServiceStatus;
  161.  
  162. #define        rmsSuspendRepair    0x0001
  163. #define        rmsSuspendNotif        0x0002
  164.             /* size is 24 */
  165. typedef struct  _RemoteMaintenanceStatus
  166.     {
  167.     RPC_DWORD dwStatus;
  168.     RPC_SYSTEMTIME st;
  169.     RPC_SZ szUser;
  170.     }    RemoteMaintenanceStatus;
  171.  
  172.             /* size is 12 */
  173. typedef struct  _BackupListNode
  174.     {
  175.     struct _BackupListNode __RPC_FAR *pnodeNext;
  176.     struct _BackupListNode __RPC_FAR *pnodeChildren;
  177.     RPC_SZ szName;
  178.     }    BackupListNode;
  179.  
  180.             /* size is 44 */
  181. typedef struct  _DistributedLockOwner
  182.     {
  183.     RPC_CHAR rgchComputer[ 17 ];
  184.     RPC_DWORD dwPID;
  185.     RPC_DWORD dwTID;
  186.     }    DistributedLockOwner;
  187.  
  188. #define    DLR_NO_WAIT        0x00000001
  189. #define    cchMaxLockName    17
  190.             /* size is 84 */
  191. typedef struct  _DistributedLockRequest
  192.     {
  193.     RPC_CHAR rgchLockName[ 17 ];
  194.     RPC_DWORD dwFlags;
  195.     DistributedLockOwner dlo;
  196.     }    DistributedLockRequest;
  197.  
  198.             /* size is 48 */
  199. typedef struct  _DistributedLockReply
  200.     {
  201.     RPC_BOOL fGranted;
  202.     DistributedLockOwner dlo;
  203.     }    DistributedLockReply;
  204.  
  205. #endif  // #ifndef RPC_COMMON_IDL
  206.             /* size is 4 */
  207. RPC_SC __cdecl ScGetMaintenanceMode( 
  208.     /* [in] */ handle_t h,
  209.     /* [out] */ RPC_DWORD __RPC_FAR *pdw,
  210.     /* [out] */ RPC_SYSTEMTIME __RPC_FAR *pst,
  211.     /* [out] */ RPC_SZ __RPC_FAR *pszUser);
  212.  
  213.             /* size is 4 */
  214. RPC_SC __cdecl ScSetMaintenanceMode( 
  215.     /* [in] */ handle_t h,
  216.     /* [in] */ RPC_DWORD dw,
  217.     /* [in] */ RPC_SZ szUser);
  218.  
  219.             /* size is 4 */
  220. RPC_SC __cdecl ScGetRemoteSystemTime( 
  221.     /* [in] */ handle_t h,
  222.     /* [out] */ RPC_SYSTEMTIME __RPC_FAR *pst);
  223.  
  224.             /* size is 4 */
  225. RPC_SC __cdecl ScSetRemoteSystemTime( 
  226.     /* [in] */ handle_t h,
  227.     /* [in] */ RPC_SYSTEMTIME __RPC_FAR *pst);
  228.  
  229. #define        dwServerFlagMapiRunning            0x00000001
  230. #define        dwServerFlagNoPrivateStore        0x00000002
  231.             /* size is 4 */
  232. RPC_SC __cdecl ScGetRemoteServerStatus( 
  233.     /* [in] */ handle_t h,
  234.     /* [out] */ RPC_DWORD __RPC_FAR *pdwServerFlags,
  235.     /* [out] */ RemoteSystemTimeInfo __RPC_FAR *prsti,
  236.     /* [out][in] */ RemoteServiceStatus __RPC_FAR *prss,
  237.     /* [out] */ RemoteMaintenanceStatus __RPC_FAR *prms);
  238.  
  239.             /* size is 4 */
  240. RPC_SC __cdecl ScRunOffLineABTask( 
  241.     /* [in] */ handle_t h);
  242.  
  243.             /* size is 4 */
  244. RPC_SC __cdecl ScGetDistributedLock( 
  245.     /* [in] */ handle_t h,
  246.     /* [in] */ DistributedLockRequest __RPC_FAR *pdlRequest,
  247.     /* [out] */ DistributedLockReply __RPC_FAR *pdlReply);
  248.  
  249.             /* size is 4 */
  250. RPC_SC __cdecl ScReleaseDistributedLock( 
  251.     /* [in] */ handle_t h,
  252.     /* [in] */ DistributedLockRequest __RPC_FAR *pdlRequest);
  253.  
  254.             /* size is 4 */
  255. RPC_SC __cdecl ScKillDistributedLock( 
  256.     /* [in] */ handle_t h,
  257.     /* [in] */ DistributedLockRequest __RPC_FAR *pdlRequest,
  258.     /* [out] */ DistributedLockReply __RPC_FAR *pdlReply);
  259.  
  260.             /* size is 4 */
  261. RPC_SC __cdecl ScRasEnumEntries( 
  262.     /* [in] */ handle_t h,
  263.     /* [in] */ RPC_INT cb,
  264.     /* [size_is][out] */ RPC_BYTE __RPC_FAR rgbRasEnumEntries[  ],
  265.     /* [out] */ RPC_INT __RPC_FAR *pcEntries);
  266.  
  267.             /* size is 4 */
  268. RPC_SC __cdecl ScGetExtensionPath( 
  269.     /* [in] */ handle_t h,
  270.     /* [in] */ RPC_SZ szExtensionName,
  271.     /* [in] */ RPC_SZ szExtensionCPU,
  272.     /* [out] */ RPC_SZ __RPC_FAR *pszExtensionPath);
  273.  
  274.  
  275.  
  276. extern RPC_IF_HANDLE TriggerPrivateRPC_ClientIfHandle;
  277. extern RPC_IF_HANDLE TriggerPrivateRPC_ServerIfHandle;
  278. #endif /* __TriggerPrivateRPC_INTERFACE_DEFINED__ */
  279.  
  280. /* Additional Prototypes for ALL interfaces */
  281.  
  282. /* end of Additional Prototypes */
  283.  
  284. #ifdef __cplusplus
  285. }
  286. #endif
  287.  
  288. #endif
  289.