Keep track of per-column information inside the listview.
[wine] / dlls / rpcrt4 / rpc_binding.h
1 /*
2  * RPC binding API
3  *
4  * Copyright 2001 Ove Kåven, TransGaming Technologies
5  *
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.
10  *
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.
15  *
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
19  */
20
21 #ifndef __WINE_RPC_BINDING_H
22 #define __WINE_RPC_BINDING_H
23
24 /* don't know what MS's structure looks like */
25 typedef struct _RpcBinding
26 {
27   DWORD refs;
28   struct _RpcBinding* Next; /* for rpc server */
29   BOOL server;
30   UUID ObjectUuid;
31   LPSTR Protseq;
32   LPSTR NetworkAddr;
33   LPSTR Endpoint;
34   RPC_BLOCKING_FN BlockingFn;
35   ULONG ServerTid;
36   HANDLE conn, thread;
37   OVERLAPPED ovl;
38 } RpcBinding;
39
40 LPSTR RPCRT4_strndupA(LPSTR src, INT len);
41 LPWSTR RPCRT4_strndupW(LPWSTR src, INT len);
42 LPSTR RPCRT4_strdupWtoA(LPWSTR src);
43 LPWSTR RPCRT4_strdupAtoW(LPSTR src);
44 void RPCRT4_strfree(LPSTR src);
45
46 #define RPCRT4_strdupA(x) RPCRT4_strndupA((x),-1)
47 #define RPCRT4_strdupW(x) RPCRT4_strndupW((x),-1)
48
49 RPC_STATUS RPCRT4_CreateBindingA(RpcBinding** Binding, BOOL server, LPSTR Protseq);
50 RPC_STATUS RPCRT4_CreateBindingW(RpcBinding** Binding, BOOL server, LPWSTR Protseq);
51 RPC_STATUS RPCRT4_CompleteBindingA(RpcBinding* Binding, LPSTR NetworkAddr,  LPSTR Endpoint,  LPSTR NetworkOptions);
52 RPC_STATUS RPCRT4_CompleteBindingW(RpcBinding* Binding, LPWSTR NetworkAddr, LPWSTR Endpoint, LPWSTR NetworkOptions);
53 RPC_STATUS RPCRT4_ResolveBinding(RpcBinding* Binding, LPSTR Endpoint);
54 RPC_STATUS RPCRT4_SetBindingObject(RpcBinding* Binding, UUID* ObjectUuid);
55 RPC_STATUS RPCRT4_SpawnBinding(RpcBinding** Binding, RpcBinding* OldBinding);
56 RPC_STATUS RPCRT4_ExportBinding(RpcBinding** Binding, RpcBinding* OldBinding);
57 RPC_STATUS RPCRT4_DestroyBinding(RpcBinding* Binding);
58 RPC_STATUS RPCRT4_OpenBinding(RpcBinding* Binding);
59 RPC_STATUS RPCRT4_CloseBinding(RpcBinding* Binding);
60
61 #endif