Implemented _CheckNotSysLevel.
[wine/multimedia.git] / include / rpcdce.h
blobe4ff6eab79bb44cef3b9b3bbfa940090592eb1fd
1 #ifndef __WINE_RPCDCE_H
2 #define __WINE_RPCDCE_H
4 #include "windef.h"
6 #ifndef GUID_DEFINED
7 #include "guiddef.h"
8 #endif
10 typedef void* RPC_AUTH_IDENTITY_HANDLE;
11 typedef void* RPC_AUTHZ_HANDLE;
12 typedef void* RPC_IF_HANDLE;
13 typedef I_RPC_HANDLE RPC_BINDING_HANDLE;
14 typedef RPC_BINDING_HANDLE handle_t;
15 #define rpc_binding_handle_t RPC_BINDING_HANDLE
16 #define RPC_MGR_EPV void
18 #define RPC_C_BINDING_INFINITE_TIMEOUT 10
19 #define RPC_C_BINDING_MIN_TIMEOUT 0
20 #define RPC_C_BINDING_DEFAULT_TIMEOUT 5
21 #define RPC_C_BINDING_MAX_TIMEOUT 9
23 #define RPC_C_CANCEL_INFINITE_TIMEOUT -1
25 #define RPC_C_LISTEN_MAX_CALLS_DEFAULT 1234
26 #define RPC_C_PROTSEQ_MAX_REQS_DEFAULT 10
28 /* RPC_POLICY EndpointFlags */
29 #define RPC_C_BIND_TO_ALL_NICS 0x1
30 #define RPC_C_USE_INTERNET_PORT 0x1
31 #define RPC_C_USE_INTRANET_PORT 0x2
32 #define RPC_C_DONT_FAIL 0x4
34 /* RPC_POLICY EndpointFlags specific to the Falcon/RPC transport */
35 #define RPC_C_MQ_TEMPORARY 0x0000
36 #define RPC_C_MQ_PERMANENT 0x0001
37 #define RPC_C_MQ_CLEAR_ON_OPEN 0x0002
38 #define RPC_C_MQ_USE_EXISTING_SECURITY 0x0004
39 #define RPC_C_MQ_AUTHN_LEVEL_NONE 0x0000
40 #define RPC_C_MQ_AUTHN_LEVEL_PKT_INTEGRITY 0x0008
41 #define RPC_C_MQ_AUTHN_LEVEL_PKT_PRIVACY 0x0010
44 typedef RPC_STATUS RPC_ENTRY RPC_IF_CALLBACK_FN( RPC_IF_HANDLE InterfaceUuid, LPVOID Context );
45 typedef void (__RPC_USER * RPC_AUTH_KEY_RETRIEVAL_FN)( LPVOID Arg, LPWSTR ServerPrincName,
46 ULONG KeyVer, LPVOID* Key, RPC_STATUS* status );
48 typedef struct _RPC_POLICY
50 UINT Length;
51 ULONG EndpointFlags;
52 ULONG NICFlags;
53 } RPC_POLICY, *PRPC_POLICY;
56 RPCRTAPI RPC_STATUS RPC_ENTRY
57 RpcServerRegisterIf( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv );
59 RPCRTAPI RPC_STATUS RPC_ENTRY
60 RpcServerRegisterIfEx( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv,
61 UINT Flags, UINT MaxCalls, RPC_IF_CALLBACK_FN* IfCallbackFn );
63 RPCRTAPI RPC_STATUS RPC_ENTRY
64 RpcServerRegisterIf2( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv,
65 UINT Flags, UINT MaxCalls, UINT MaxRpcSize, RPC_IF_CALLBACK_FN* IfCallbackFn );
67 RPCRTAPI RPC_STATUS RPC_ENTRY
68 RpcServerUseProtseqEpA( LPSTR Protseq, UINT MaxCalls, LPSTR Endpoint, LPVOID SecurityDescriptor );
69 RPCRTAPI RPC_STATUS RPC_ENTRY
70 RpcServerUseProtseqEpW( LPWSTR Protseq, UINT MaxCalls, LPWSTR Endpoint, LPVOID SecurityDescriptor );
72 RPCRTAPI RPC_STATUS RPC_ENTRY
73 RpcServerUseProtseqEpExA( LPSTR Protseq, UINT MaxCalls, LPSTR Endpoint, LPVOID SecurityDescriptor,
74 PRPC_POLICY Policy );
75 RPCRTAPI RPC_STATUS RPC_ENTRY
76 RpcServerUseProtseqEpExW( LPWSTR Protseq, UINT MaxCalls, LPWSTR Endpoint, LPVOID SecurityDescriptor,
77 PRPC_POLICY Policy );
79 #define RpcServerUseProtseqEp WINELIB_NAME_AW(RpcServerUseProtseqEp)
80 #define RpcServerUseProtseqEpEx WINELIB_NAME_AW(RpcServerUseProtseqEpEx)
82 RPCRTAPI RPC_STATUS RPC_ENTRY
83 RpcServerRegisterAuthInfoA( LPSTR ServerPrincName, ULONG AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,
84 LPVOID Arg );
85 RPCRTAPI RPC_STATUS RPC_ENTRY
86 RpcServerRegisterAuthInfoW( LPWSTR ServerPrincName, ULONG AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,
87 LPVOID Arg );
89 #define RpcServerRegisterAuthInfo WINELIB_NAME_AW(RpcServerRegisterAuthInfo)
91 RPCRTAPI RPC_STATUS RPC_ENTRY
92 RpcServerListen( UINT MinimumCallThreads, UINT MaxCalls, UINT DontWait );
94 RPCRTAPI RPC_STATUS RPC_ENTRY
95 RpcStringBindingComposeA( LPSTR ObjUuid, LPSTR Protseq, LPSTR NetworkAddr, LPSTR Endpoint,
96 LPSTR Options, LPSTR* StringBinding );
97 RPCRTAPI RPC_STATUS RPC_ENTRY
98 RpcStringBindingComposeW( LPWSTR ObjUuid, LPWSTR Protseq, LPWSTR NetworkAddr, LPWSTR Endpoint,
99 LPWSTR Options, LPWSTR* StringBinding );
101 #define RpcStringBindingCompose WINELIB_NAME_AW(RpcStringBindingCompose)
103 RPCRTAPI RPC_STATUS RPC_ENTRY
104 RpcBindingFromStringBindingA( LPSTR StringBinding, RPC_BINDING_HANDLE* Binding );
105 RPCRTAPI RPC_STATUS RPC_ENTRY
106 RpcBindingFromStringBindingW( LPWSTR StringBinding, RPC_BINDING_HANDLE* Binding );
108 #define RpcBindingFromStringBinding WINELIB_NAME_AW(RpcBindingFromStringBinding)
110 #include "rpcdcep.h"
112 #endif /*__WINE_RPCDCE_H */