Implemented localeconv() with libc function.
[wine.git] / dlls / rpcrt4 / rpc_binding.h
blobc39feaf0910b6d44121a0d3c170e2549d9bc8fd0
1 /*
2 * RPC binding API
4 * Copyright 2001 Ove Kåven, TransGaming Technologies
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_RPC_BINDING_H
22 #define __WINE_RPC_BINDING_H
24 #include "wine/rpcss_shared.h"
26 typedef struct _RpcConnection
28 struct _RpcConnection* Next;
29 struct _RpcBinding* Used;
30 BOOL server;
31 LPSTR Protseq;
32 LPSTR NetworkAddr;
33 LPSTR Endpoint;
34 HANDLE conn, thread;
35 OVERLAPPED ovl;
36 } RpcConnection;
38 /* don't know what MS's structure looks like */
39 typedef struct _RpcBinding
41 DWORD refs;
42 struct _RpcBinding* Next;
43 BOOL server;
44 UUID ObjectUuid;
45 UUID ActiveUuid;
46 LPSTR Protseq;
47 LPSTR NetworkAddr;
48 LPSTR Endpoint;
49 RPC_BLOCKING_FN BlockingFn;
50 ULONG ServerTid;
51 RpcConnection* FromConn;
52 } RpcBinding;
54 LPSTR RPCRT4_strndupA(LPSTR src, INT len);
55 LPWSTR RPCRT4_strndupW(LPWSTR src, INT len);
56 LPSTR RPCRT4_strdupWtoA(LPWSTR src);
57 LPWSTR RPCRT4_strdupAtoW(LPSTR src);
58 void RPCRT4_strfree(LPSTR src);
60 #define RPCRT4_strdupA(x) RPCRT4_strndupA((x),-1)
61 #define RPCRT4_strdupW(x) RPCRT4_strndupW((x),-1)
63 RPC_STATUS RPCRT4_CreateConnection(RpcConnection** Connection, BOOL server, LPSTR Protseq, LPSTR NetworkAddr, LPSTR Endpoint, LPSTR NetworkOptions, RpcBinding* Binding);
64 RPC_STATUS RPCRT4_DestroyConnection(RpcConnection* Connection);
65 RPC_STATUS RPCRT4_OpenConnection(RpcConnection* Connection);
66 RPC_STATUS RPCRT4_CloseConnection(RpcConnection* Connection);
67 RPC_STATUS RPCRT4_SpawnConnection(RpcConnection** Connection, RpcConnection* OldConnection);
69 RPC_STATUS RPCRT4_CreateBindingA(RpcBinding** Binding, BOOL server, LPSTR Protseq);
70 RPC_STATUS RPCRT4_CreateBindingW(RpcBinding** Binding, BOOL server, LPWSTR Protseq);
71 RPC_STATUS RPCRT4_CompleteBindingA(RpcBinding* Binding, LPSTR NetworkAddr, LPSTR Endpoint, LPSTR NetworkOptions);
72 RPC_STATUS RPCRT4_CompleteBindingW(RpcBinding* Binding, LPWSTR NetworkAddr, LPWSTR Endpoint, LPWSTR NetworkOptions);
73 RPC_STATUS RPCRT4_ResolveBinding(RpcBinding* Binding, LPSTR Endpoint);
74 RPC_STATUS RPCRT4_SetBindingObject(RpcBinding* Binding, UUID* ObjectUuid);
75 RPC_STATUS RPCRT4_MakeBinding(RpcBinding** Binding, RpcConnection* Connection);
76 RPC_STATUS RPCRT4_ExportBinding(RpcBinding** Binding, RpcBinding* OldBinding);
77 RPC_STATUS RPCRT4_DestroyBinding(RpcBinding* Binding);
78 RPC_STATUS RPCRT4_OpenBinding(RpcBinding* Binding, RpcConnection** Connection);
79 RPC_STATUS RPCRT4_CloseBinding(RpcBinding* Binding, RpcConnection* Connection);
80 BOOL RPCRT4_RPCSSOnDemandCall(PRPCSS_NP_MESSAGE msg, char *vardata_payload, PRPCSS_NP_REPLY reply);
81 HANDLE RPCRT4_GetMasterMutex(void);
82 HANDLE RPCRT4_RpcssNPConnect(void);
84 #endif