Added Korean resources.
[wine.git] / include / rpcdce.h
blobf6d6b64fa3f8d03459c6ddf9d2225bd49885fc49
1 /*
2 * Copyright (C) 2000 Francois Gouget
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_RPCDCE_H
20 #define __WINE_RPCDCE_H
22 #include "windef.h"
24 #ifndef GUID_DEFINED
25 #include "guiddef.h"
26 #endif
28 typedef void* RPC_AUTH_IDENTITY_HANDLE;
29 typedef void* RPC_AUTHZ_HANDLE;
30 typedef void* RPC_IF_HANDLE;
31 typedef I_RPC_HANDLE RPC_BINDING_HANDLE;
32 typedef RPC_BINDING_HANDLE handle_t;
33 #define rpc_binding_handle_t RPC_BINDING_HANDLE
34 #define RPC_MGR_EPV void
36 typedef struct _RPC_BINDING_VECTOR
38 unsigned long Count;
39 RPC_BINDING_HANDLE BindingH[1];
40 } RPC_BINDING_VECTOR;
41 #define rpc_binding_vector_t RPC_BINDING_VECTOR
43 typedef struct _UUID_VECTOR
45 unsigned long Count;
46 UUID *Uuid[1];
47 } UUID_VECTOR;
48 #define uuid_vector_t UUID_VECTOR
50 typedef struct _RPC_IF_ID
52 UUID Uuid;
53 unsigned short VersMajor;
54 unsigned short VersMinor;
55 } RPC_IF_ID;
57 #define RPC_C_BINDING_INFINITE_TIMEOUT 10
58 #define RPC_C_BINDING_MIN_TIMEOUT 0
59 #define RPC_C_BINDING_DEFAULT_TIMEOUT 5
60 #define RPC_C_BINDING_MAX_TIMEOUT 9
62 #define RPC_C_CANCEL_INFINITE_TIMEOUT -1
64 #define RPC_C_LISTEN_MAX_CALLS_DEFAULT 1234
65 #define RPC_C_PROTSEQ_MAX_REQS_DEFAULT 10
67 /* RPC_POLICY EndpointFlags */
68 #define RPC_C_BIND_TO_ALL_NICS 0x1
69 #define RPC_C_USE_INTERNET_PORT 0x1
70 #define RPC_C_USE_INTRANET_PORT 0x2
71 #define RPC_C_DONT_FAIL 0x4
73 /* RPC_POLICY EndpointFlags specific to the Falcon/RPC transport */
74 #define RPC_C_MQ_TEMPORARY 0x0000
75 #define RPC_C_MQ_PERMANENT 0x0001
76 #define RPC_C_MQ_CLEAR_ON_OPEN 0x0002
77 #define RPC_C_MQ_USE_EXISTING_SECURITY 0x0004
78 #define RPC_C_MQ_AUTHN_LEVEL_NONE 0x0000
79 #define RPC_C_MQ_AUTHN_LEVEL_PKT_INTEGRITY 0x0008
80 #define RPC_C_MQ_AUTHN_LEVEL_PKT_PRIVACY 0x0010
83 typedef RPC_STATUS RPC_ENTRY RPC_IF_CALLBACK_FN( RPC_IF_HANDLE InterfaceUuid, LPVOID Context );
84 typedef void (__RPC_USER *RPC_AUTH_KEY_RETRIEVAL_FN)();
86 typedef struct _RPC_POLICY
88 UINT Length;
89 ULONG EndpointFlags;
90 ULONG NICFlags;
91 } RPC_POLICY, *PRPC_POLICY;
94 RPCRTAPI RPC_STATUS RPC_ENTRY
95 RpcBindingCopy( RPC_BINDING_HANDLE SourceBinding, RPC_BINDING_HANDLE* DestinationBinding );
97 RPCRTAPI RPC_STATUS RPC_ENTRY
98 RpcBindingFree( RPC_BINDING_HANDLE* Binding );
100 RPCRTAPI RPC_STATUS RPC_ENTRY
101 RpcBindingFromStringBindingA( LPSTR StringBinding, RPC_BINDING_HANDLE* Binding );
102 RPCRTAPI RPC_STATUS RPC_ENTRY
103 RpcBindingFromStringBindingW( LPWSTR StringBinding, RPC_BINDING_HANDLE* Binding );
104 #define RpcBindingFromStringBinding WINELIB_NAME_AW(RpcBindingFromStringBinding)
106 RPCRTAPI RPC_STATUS RPC_ENTRY
107 RpcBindingToStringBindingA( RPC_BINDING_HANDLE Binding, LPSTR* StringBinding );
108 RPCRTAPI RPC_STATUS RPC_ENTRY
109 RpcBindingToStringBindingW( RPC_BINDING_HANDLE Binding, LPWSTR* StringBinding );
110 #define RpcBindingFromStringBinding WINELIB_NAME_AW(RpcBindingFromStringBinding)
112 RPCRTAPI RPC_STATUS RPC_ENTRY
113 RpcBindingVectorFree( RPC_BINDING_VECTOR** BindingVector );
115 RPCRTAPI RPC_STATUS RPC_ENTRY
116 RpcServerInqBindings( RPC_BINDING_VECTOR** BindingVector );
118 RPCRTAPI RPC_STATUS RPC_ENTRY
119 RpcServerListen( UINT MinimumCallThreads, UINT MaxCalls, UINT DontWait );
121 RPCRTAPI RPC_STATUS RPC_ENTRY
122 RpcServerRegisterIf( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv );
124 RPCRTAPI RPC_STATUS RPC_ENTRY
125 RpcServerRegisterIfEx( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv,
126 UINT Flags, UINT MaxCalls, RPC_IF_CALLBACK_FN* IfCallbackFn );
128 RPCRTAPI RPC_STATUS RPC_ENTRY
129 RpcServerRegisterIf2( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv,
130 UINT Flags, UINT MaxCalls, UINT MaxRpcSize, RPC_IF_CALLBACK_FN* IfCallbackFn );
132 RPCRTAPI RPC_STATUS RPC_ENTRY
133 RpcServerUseProtseqEpA( LPSTR Protseq, UINT MaxCalls, LPSTR Endpoint, LPVOID SecurityDescriptor );
134 RPCRTAPI RPC_STATUS RPC_ENTRY
135 RpcServerUseProtseqEpW( LPWSTR Protseq, UINT MaxCalls, LPWSTR Endpoint, LPVOID SecurityDescriptor );
136 #define RpcServerUseProtseqEp WINELIB_NAME_AW(RpcServerUseProtseqEp)
138 RPCRTAPI RPC_STATUS RPC_ENTRY
139 RpcServerUseProtseqEpExA( LPSTR Protseq, UINT MaxCalls, LPSTR Endpoint, LPVOID SecurityDescriptor,
140 PRPC_POLICY Policy );
141 RPCRTAPI RPC_STATUS RPC_ENTRY
142 RpcServerUseProtseqEpExW( LPWSTR Protseq, UINT MaxCalls, LPWSTR Endpoint, LPVOID SecurityDescriptor,
143 PRPC_POLICY Policy );
144 #define RpcServerUseProtseqEpEx WINELIB_NAME_AW(RpcServerUseProtseqEpEx)
146 RPCRTAPI RPC_STATUS RPC_ENTRY
147 RpcServerRegisterAuthInfoA( LPSTR ServerPrincName, ULONG AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,
148 LPVOID Arg );
149 RPCRTAPI RPC_STATUS RPC_ENTRY
150 RpcServerRegisterAuthInfoW( LPWSTR ServerPrincName, ULONG AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,
151 LPVOID Arg );
152 #define RpcServerRegisterAuthInfo WINELIB_NAME_AW(RpcServerRegisterAuthInfo)
154 RPCRTAPI RPC_STATUS RPC_ENTRY
155 RpcServerListen( UINT MinimumCallThreads, UINT MaxCalls, UINT DontWait );
157 RPCRTAPI RPC_STATUS RPC_ENTRY
158 RpcStringBindingComposeA( LPSTR ObjUuid, LPSTR Protseq, LPSTR NetworkAddr, LPSTR Endpoint,
159 LPSTR Options, LPSTR* StringBinding );
160 RPCRTAPI RPC_STATUS RPC_ENTRY
161 RpcStringBindingComposeW( LPWSTR ObjUuid, LPWSTR Protseq, LPWSTR NetworkAddr, LPWSTR Endpoint,
162 LPWSTR Options, LPWSTR* StringBinding );
163 #define RpcStringBindingCompose WINELIB_NAME_AW(RpcStringBindingCompose)
165 RPCRTAPI RPC_STATUS RPC_ENTRY
166 RpcStringFreeA(unsigned char** String);
167 RPCRTAPI RPC_STATUS RPC_ENTRY
168 RpcStringFreeW(unsigned short** String);
169 #define RpcStringFree WINELIB_NAME_AW(RpcStringFree)
171 RPCRTAPI RPC_STATUS RPC_ENTRY
172 UuidCreate( UUID* Uuid );
174 RPCRTAPI RPC_STATUS RPC_ENTRY
175 UuidToStringA( UUID* Uuid, unsigned char** StringUuid );
176 RPCRTAPI RPC_STATUS RPC_ENTRY
177 UuidToStringW( UUID* Uuid, unsigned short** StringUuid );
178 #define UuidToString WINELIB_NAME_AW(UuidToString)
180 RPCRTAPI unsigned short RPC_ENTRY
181 UuidHash(UUID* Uuid, RPC_STATUS* Status_ );
183 #include "rpcdcep.h"
185 #endif /*__WINE_RPCDCE_H */