Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9b26ea16
Commit
9b26ea16
authored
Nov 09, 2023
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Nov 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Remove DECLSPEC_HIDDEN usage.
parent
f58946e3
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
111 additions
and
111 deletions
+111
-111
cpsf.h
dlls/rpcrt4/cpsf.h
+15
-15
ndr_misc.h
dlls/rpcrt4/ndr_misc.h
+7
-7
ndr_stubless.c
dlls/rpcrt4/ndr_stubless.c
+4
-4
ndr_stubless.h
dlls/rpcrt4/ndr_stubless.h
+6
-6
rpc_assoc.h
dlls/rpcrt4/rpc_assoc.h
+12
-12
rpc_binding.h
dlls/rpcrt4/rpc_binding.h
+35
-35
rpc_message.h
dlls/rpcrt4/rpc_message.h
+28
-28
rpc_server.h
dlls/rpcrt4/rpc_server.h
+4
-4
No files found.
dlls/rpcrt4/cpsf.h
View file @
9b26ea16
...
...
@@ -46,30 +46,30 @@ typedef struct
HRESULT
StdProxy_Construct
(
REFIID
riid
,
LPUNKNOWN
pUnkOuter
,
const
ProxyFileInfo
*
ProxyInfo
,
int
Index
,
LPPSFACTORYBUFFER
pPSFactory
,
LPRPCPROXYBUFFER
*
ppProxy
,
LPVOID
*
ppvObj
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
StdProxy_QueryInterface
(
IRpcProxyBuffer
*
iface
,
REFIID
iid
,
void
**
obj
)
DECLSPEC_HIDDEN
;
ULONG
WINAPI
StdProxy_AddRef
(
IRpcProxyBuffer
*
iface
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
StdProxy_Connect
(
IRpcProxyBuffer
*
iface
,
IRpcChannelBuffer
*
channel
)
DECLSPEC_HIDDEN
;
void
WINAPI
StdProxy_Disconnect
(
IRpcProxyBuffer
*
iface
)
DECLSPEC_HIDDEN
;
LPVOID
*
ppvObj
);
HRESULT
WINAPI
StdProxy_QueryInterface
(
IRpcProxyBuffer
*
iface
,
REFIID
iid
,
void
**
obj
);
ULONG
WINAPI
StdProxy_AddRef
(
IRpcProxyBuffer
*
iface
);
HRESULT
WINAPI
StdProxy_Connect
(
IRpcProxyBuffer
*
iface
,
IRpcChannelBuffer
*
channel
);
void
WINAPI
StdProxy_Disconnect
(
IRpcProxyBuffer
*
iface
);
HRESULT
CStdStubBuffer_Construct
(
REFIID
riid
,
LPUNKNOWN
pUnkServer
,
PCInterfaceName
name
,
CInterfaceStubVtbl
*
vtbl
,
LPPSFACTORYBUFFER
pPSFactory
,
LPRPCSTUBBUFFER
*
ppStub
)
DECLSPEC_HIDDEN
;
LPRPCSTUBBUFFER
*
ppStub
);
HRESULT
CStdStubBuffer_Delegating_Construct
(
REFIID
riid
,
LPUNKNOWN
pUnkServer
,
PCInterfaceName
name
,
CInterfaceStubVtbl
*
vtbl
,
REFIID
delegating_iid
,
LPPSFACTORYBUFFER
pPSFactory
,
LPRPCSTUBBUFFER
*
ppStub
)
DECLSPEC_HIDDEN
;
LPPSFACTORYBUFFER
pPSFactory
,
LPRPCSTUBBUFFER
*
ppStub
);
const
MIDL_SERVER_INFO
*
CStdStubBuffer_GetServerInfo
(
IRpcStubBuffer
*
iface
)
DECLSPEC_HIDDEN
;
const
MIDL_SERVER_INFO
*
CStdStubBuffer_GetServerInfo
(
IRpcStubBuffer
*
iface
);
extern
const
IRpcStubBufferVtbl
CStdStubBuffer_Vtbl
DECLSPEC_HIDDEN
;
extern
const
IRpcStubBufferVtbl
CStdStubBuffer_Delegating_Vtbl
DECLSPEC_HIDDEN
;
extern
const
IRpcStubBufferVtbl
CStdStubBuffer_Vtbl
;
extern
const
IRpcStubBufferVtbl
CStdStubBuffer_Delegating_Vtbl
;
BOOL
fill_delegated_proxy_table
(
IUnknownVtbl
*
vtbl
,
DWORD
num
)
DECLSPEC_HIDDEN
;
HRESULT
create_proxy
(
REFIID
iid
,
IUnknown
*
pUnkOuter
,
IRpcProxyBuffer
**
pproxy
,
void
**
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
create_stub
(
REFIID
iid
,
IUnknown
*
pUnk
,
IRpcStubBuffer
**
ppstub
)
DECLSPEC_HIDDEN
;
BOOL
fill_stubless_table
(
IUnknownVtbl
*
vtbl
,
DWORD
num
)
DECLSPEC_HIDDEN
;
const
IUnknownVtbl
*
get_delegating_vtbl
(
DWORD
num_methods
)
DECLSPEC_HIDDEN
;
BOOL
fill_delegated_proxy_table
(
IUnknownVtbl
*
vtbl
,
DWORD
num
);
HRESULT
create_proxy
(
REFIID
iid
,
IUnknown
*
pUnkOuter
,
IRpcProxyBuffer
**
pproxy
,
void
**
ppv
);
HRESULT
create_stub
(
REFIID
iid
,
IUnknown
*
pUnk
,
IRpcStubBuffer
**
ppstub
);
BOOL
fill_stubless_table
(
IUnknownVtbl
*
vtbl
,
DWORD
num
);
const
IUnknownVtbl
*
get_delegating_vtbl
(
DWORD
num_methods
);
#define THUNK_ENTRY_FIRST_BLOCK() \
THUNK_ENTRY(3) \
...
...
dlls/rpcrt4/ndr_misc.h
View file @
9b26ea16
...
...
@@ -32,7 +32,7 @@ struct IPSFactoryBuffer;
PFORMAT_STRING
ComputeConformanceOrVariance
(
MIDL_STUB_MESSAGE
*
pStubMsg
,
unsigned
char
*
pMemory
,
PFORMAT_STRING
pFormat
,
ULONG_PTR
def
,
ULONG_PTR
*
pCount
)
DECLSPEC_HIDDEN
;
PFORMAT_STRING
pFormat
,
ULONG_PTR
def
,
ULONG_PTR
*
pCount
);
static
inline
PFORMAT_STRING
ComputeConformance
(
PMIDL_STUB_MESSAGE
pStubMsg
,
unsigned
char
*
pMemory
,
PFORMAT_STRING
pFormat
,
ULONG
def
)
{
...
...
@@ -56,12 +56,12 @@ typedef void (WINAPI *NDR_BUFFERSIZE)(PMIDL_STUB_MESSAGE, unsigned cha
typedef
ULONG
(
WINAPI
*
NDR_MEMORYSIZE
)(
PMIDL_STUB_MESSAGE
,
PFORMAT_STRING
);
typedef
void
(
WINAPI
*
NDR_FREE
)
(
PMIDL_STUB_MESSAGE
,
unsigned
char
*
,
PFORMAT_STRING
);
extern
const
NDR_MARSHALL
NdrMarshaller
[]
DECLSPEC_HIDDEN
;
extern
const
NDR_UNMARSHALL
NdrUnmarshaller
[]
DECLSPEC_HIDDEN
;
extern
const
NDR_BUFFERSIZE
NdrBufferSizer
[]
DECLSPEC_HIDDEN
;
extern
const
NDR_MEMORYSIZE
NdrMemorySizer
[]
DECLSPEC_HIDDEN
;
extern
const
NDR_FREE
NdrFreer
[]
DECLSPEC_HIDDEN
;
extern
const
NDR_MARSHALL
NdrMarshaller
[];
extern
const
NDR_UNMARSHALL
NdrUnmarshaller
[];
extern
const
NDR_BUFFERSIZE
NdrBufferSizer
[];
extern
const
NDR_MEMORYSIZE
NdrMemorySizer
[];
extern
const
NDR_FREE
NdrFreer
[];
ULONG
ComplexStructSize
(
PMIDL_STUB_MESSAGE
pStubMsg
,
PFORMAT_STRING
pFormat
)
DECLSPEC_HIDDEN
;
ULONG
ComplexStructSize
(
PMIDL_STUB_MESSAGE
pStubMsg
,
PFORMAT_STRING
pFormat
);
#endif
/* __WINE_NDR_MISC_H */
dlls/rpcrt4/ndr_stubless.c
View file @
9b26ea16
...
...
@@ -849,7 +849,7 @@ static LONG_PTR do_ndr_client_call( const MIDL_STUB_DESC *stub_desc, const PFORM
return
retval
;
}
LONG_PTR
CDECL
DECLSPEC_HIDDEN
ndr_client_call
(
PMIDL_STUB_DESC
pStubDesc
,
PFORMAT_STRING
pFormat
,
LONG_PTR
CDECL
ndr_client_call
(
PMIDL_STUB_DESC
pStubDesc
,
PFORMAT_STRING
pFormat
,
void
**
stack_top
,
void
**
fpu_stack
)
{
/* pointer to start of stack where arguments start */
...
...
@@ -1796,7 +1796,7 @@ static void do_ndr_async_client_call( const MIDL_STUB_DESC *pStubDesc, PFORMAT_S
}
}
LONG_PTR
CDECL
DECLSPEC_HIDDEN
ndr_async_client_call
(
PMIDL_STUB_DESC
pStubDesc
,
PFORMAT_STRING
pFormat
,
LONG_PTR
CDECL
ndr_async_client_call
(
PMIDL_STUB_DESC
pStubDesc
,
PFORMAT_STRING
pFormat
,
void
**
stack_top
)
{
LONG_PTR
ret
=
0
;
...
...
@@ -2218,7 +2218,7 @@ RPC_STATUS NdrpCompleteAsyncServerCall(RPC_ASYNC_STATE *pAsync, void *Reply)
static
const
RPC_SYNTAX_IDENTIFIER
ndr_syntax_id
=
{{
0x8a885d04
,
0x1ceb
,
0x11c9
,
{
0x9f
,
0xe8
,
0x08
,
0x00
,
0x2b
,
0x10
,
0x48
,
0x60
}},
{
2
,
0
}};
LONG_PTR
CDECL
DECLSPEC_HIDDEN
ndr64_client_call
(
MIDL_STUBLESS_PROXY_INFO
*
info
,
LONG_PTR
CDECL
ndr64_client_call
(
MIDL_STUBLESS_PROXY_INFO
*
info
,
ULONG
proc
,
void
*
retval
,
void
**
stack_top
,
void
**
fpu_stack
)
{
ULONG_PTR
i
;
...
...
@@ -2280,7 +2280,7 @@ CLIENT_CALL_RETURN WINAPIV NdrClientCall3( MIDL_STUBLESS_PROXY_INFO *info, ULONG
#endif
LONG_PTR
CDECL
DECLSPEC_HIDDEN
ndr64_async_client_call
(
MIDL_STUBLESS_PROXY_INFO
*
info
,
LONG_PTR
CDECL
ndr64_async_client_call
(
MIDL_STUBLESS_PROXY_INFO
*
info
,
ULONG
proc
,
void
*
retval
,
void
**
stack_top
,
void
**
fpu_stack
)
{
ULONG_PTR
i
;
...
...
dlls/rpcrt4/ndr_stubless.h
View file @
9b26ea16
...
...
@@ -254,13 +254,13 @@ enum stubless_phase
};
LONG_PTR
CDECL
ndr_client_call
(
PMIDL_STUB_DESC
pStubDesc
,
PFORMAT_STRING
pFormat
,
void
**
stack_top
,
void
**
fpu_stack
)
DECLSPEC_HIDDEN
;
void
**
stack_top
,
void
**
fpu_stack
);
LONG_PTR
CDECL
ndr_async_client_call
(
PMIDL_STUB_DESC
pStubDesc
,
PFORMAT_STRING
pFormat
,
void
**
stack_top
)
DECLSPEC_HIDDEN
;
void
**
stack_top
);
void
client_do_args
(
PMIDL_STUB_MESSAGE
pStubMsg
,
PFORMAT_STRING
pFormat
,
enum
stubless_phase
phase
,
void
**
fpu_args
,
unsigned
short
number_of_params
,
unsigned
char
*
pRetVal
)
DECLSPEC_HIDDEN
;
void
**
fpu_args
,
unsigned
short
number_of_params
,
unsigned
char
*
pRetVal
);
PFORMAT_STRING
convert_old_args
(
PMIDL_STUB_MESSAGE
pStubMsg
,
PFORMAT_STRING
pFormat
,
unsigned
int
stack_size
,
BOOL
object_proc
,
void
*
buffer
,
unsigned
int
size
,
unsigned
int
*
count
)
DECLSPEC_HIDDEN
;
RPC_STATUS
NdrpCompleteAsyncClientCall
(
RPC_ASYNC_STATE
*
pAsync
,
void
*
Reply
)
DECLSPEC_HIDDEN
;
RPC_STATUS
NdrpCompleteAsyncServerCall
(
RPC_ASYNC_STATE
*
pAsync
,
void
*
Reply
)
DECLSPEC_HIDDEN
;
void
*
buffer
,
unsigned
int
size
,
unsigned
int
*
count
);
RPC_STATUS
NdrpCompleteAsyncClientCall
(
RPC_ASYNC_STATE
*
pAsync
,
void
*
Reply
);
RPC_STATUS
NdrpCompleteAsyncServerCall
(
RPC_ASYNC_STATE
*
pAsync
,
void
*
Reply
);
dlls/rpcrt4/rpc_assoc.h
View file @
9b26ea16
...
...
@@ -47,17 +47,17 @@ typedef struct _RpcAssoc
struct
list
context_handle_list
;
/* protected by cs */
}
RpcAssoc
;
RPC_STATUS
RPCRT4_GetAssociation
(
LPCSTR
Protseq
,
LPCSTR
NetworkAddr
,
LPCSTR
Endpoint
,
LPCWSTR
NetworkOptions
,
RpcAssoc
**
assoc
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_GetAssociation
(
LPCSTR
Protseq
,
LPCSTR
NetworkAddr
,
LPCSTR
Endpoint
,
LPCWSTR
NetworkOptions
,
RpcAssoc
**
assoc
);
RPC_STATUS
RpcAssoc_GetClientConnection
(
RpcAssoc
*
assoc
,
const
RPC_SYNTAX_IDENTIFIER
*
InterfaceId
,
const
RPC_SYNTAX_IDENTIFIER
*
TransferSyntax
,
RpcAuthInfo
*
AuthInfo
,
RpcQualityOfService
*
QOS
,
LPCWSTR
CookieAuth
,
RpcConnection
**
Connection
,
BOOL
*
from_cache
)
DECLSPEC_HIDDEN
;
void
RpcAssoc_ReleaseIdleConnection
(
RpcAssoc
*
assoc
,
RpcConnection
*
Connection
)
DECLSPEC_HIDDEN
;
ULONG
RpcAssoc_Release
(
RpcAssoc
*
assoc
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RpcServerAssoc_GetAssociation
(
LPCSTR
Protseq
,
LPCSTR
NetworkAddr
,
LPCSTR
Endpoint
,
LPCWSTR
NetworkOptions
,
ULONG
assoc_gid
,
RpcAssoc
**
assoc_out
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RpcServerAssoc_AllocateContextHandle
(
RpcAssoc
*
assoc
,
void
*
CtxGuard
,
NDR_SCONTEXT
*
SContext
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RpcServerAssoc_FindContextHandle
(
RpcAssoc
*
assoc
,
const
UUID
*
uuid
,
void
*
CtxGuard
,
ULONG
Flags
,
NDR_SCONTEXT
*
SContext
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RpcServerAssoc_UpdateContextHandle
(
RpcAssoc
*
assoc
,
NDR_SCONTEXT
SContext
,
void
*
CtxGuard
,
NDR_RUNDOWN
rundown_routine
)
DECLSPEC_HIDDEN
;
unsigned
int
RpcServerAssoc_ReleaseContextHandle
(
RpcAssoc
*
assoc
,
NDR_SCONTEXT
SContext
,
BOOL
release_lock
)
DECLSPEC_HIDDEN
;
void
RpcContextHandle_GetUuid
(
NDR_SCONTEXT
SContext
,
UUID
*
uuid
)
DECLSPEC_HIDDEN
;
BOOL
RpcContextHandle_IsGuardCorrect
(
NDR_SCONTEXT
SContext
,
void
*
CtxGuard
)
DECLSPEC_HIDDEN
;
void
RpcAssoc_ConnectionReleased
(
RpcAssoc
*
assoc
)
DECLSPEC_HIDDEN
;
LPCWSTR
CookieAuth
,
RpcConnection
**
Connection
,
BOOL
*
from_cache
);
void
RpcAssoc_ReleaseIdleConnection
(
RpcAssoc
*
assoc
,
RpcConnection
*
Connection
);
ULONG
RpcAssoc_Release
(
RpcAssoc
*
assoc
);
RPC_STATUS
RpcServerAssoc_GetAssociation
(
LPCSTR
Protseq
,
LPCSTR
NetworkAddr
,
LPCSTR
Endpoint
,
LPCWSTR
NetworkOptions
,
ULONG
assoc_gid
,
RpcAssoc
**
assoc_out
);
RPC_STATUS
RpcServerAssoc_AllocateContextHandle
(
RpcAssoc
*
assoc
,
void
*
CtxGuard
,
NDR_SCONTEXT
*
SContext
);
RPC_STATUS
RpcServerAssoc_FindContextHandle
(
RpcAssoc
*
assoc
,
const
UUID
*
uuid
,
void
*
CtxGuard
,
ULONG
Flags
,
NDR_SCONTEXT
*
SContext
);
RPC_STATUS
RpcServerAssoc_UpdateContextHandle
(
RpcAssoc
*
assoc
,
NDR_SCONTEXT
SContext
,
void
*
CtxGuard
,
NDR_RUNDOWN
rundown_routine
);
unsigned
int
RpcServerAssoc_ReleaseContextHandle
(
RpcAssoc
*
assoc
,
NDR_SCONTEXT
SContext
,
BOOL
release_lock
);
void
RpcContextHandle_GetUuid
(
NDR_SCONTEXT
SContext
,
UUID
*
uuid
);
BOOL
RpcContextHandle_IsGuardCorrect
(
NDR_SCONTEXT
SContext
,
void
*
CtxGuard
);
void
RpcAssoc_ConnectionReleased
(
RpcAssoc
*
assoc
);
dlls/rpcrt4/rpc_binding.h
View file @
9b26ea16
...
...
@@ -143,38 +143,38 @@ typedef struct _RpcBinding
LPWSTR
CookieAuth
;
}
RpcBinding
;
LPWSTR
RPCRT4_strndupW
(
LPCWSTR
src
,
INT
len
)
DECLSPEC_HIDDEN
;
LPSTR
RPCRT4_strdupWtoA
(
LPCWSTR
src
)
DECLSPEC_HIDDEN
;
LPWSTR
RPCRT4_strdupAtoW
(
LPCSTR
src
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RpcAuthInfo_Create
(
ULONG
AuthnLevel
,
ULONG
AuthnSvc
,
CredHandle
cred
,
TimeStamp
exp
,
ULONG
cbMaxToken
,
RPC_AUTH_IDENTITY_HANDLE
identity
,
RpcAuthInfo
**
ret
)
DECLSPEC_HIDDEN
;
ULONG
RpcAuthInfo_AddRef
(
RpcAuthInfo
*
AuthInfo
)
DECLSPEC_HIDDEN
;
ULONG
RpcAuthInfo_Release
(
RpcAuthInfo
*
AuthInfo
)
DECLSPEC_HIDDEN
;
BOOL
RpcAuthInfo_IsEqual
(
const
RpcAuthInfo
*
AuthInfo1
,
const
RpcAuthInfo
*
AuthInfo2
)
DECLSPEC_HIDDEN
;
ULONG
RpcQualityOfService_AddRef
(
RpcQualityOfService
*
qos
)
DECLSPEC_HIDDEN
;
ULONG
RpcQualityOfService_Release
(
RpcQualityOfService
*
qos
)
DECLSPEC_HIDDEN
;
BOOL
RpcQualityOfService_IsEqual
(
const
RpcQualityOfService
*
qos1
,
const
RpcQualityOfService
*
qos2
)
DECLSPEC_HIDDEN
;
LPWSTR
RPCRT4_strndupW
(
LPCWSTR
src
,
INT
len
);
LPSTR
RPCRT4_strdupWtoA
(
LPCWSTR
src
);
LPWSTR
RPCRT4_strdupAtoW
(
LPCSTR
src
);
RPC_STATUS
RpcAuthInfo_Create
(
ULONG
AuthnLevel
,
ULONG
AuthnSvc
,
CredHandle
cred
,
TimeStamp
exp
,
ULONG
cbMaxToken
,
RPC_AUTH_IDENTITY_HANDLE
identity
,
RpcAuthInfo
**
ret
);
ULONG
RpcAuthInfo_AddRef
(
RpcAuthInfo
*
AuthInfo
);
ULONG
RpcAuthInfo_Release
(
RpcAuthInfo
*
AuthInfo
);
BOOL
RpcAuthInfo_IsEqual
(
const
RpcAuthInfo
*
AuthInfo1
,
const
RpcAuthInfo
*
AuthInfo2
);
ULONG
RpcQualityOfService_AddRef
(
RpcQualityOfService
*
qos
);
ULONG
RpcQualityOfService_Release
(
RpcQualityOfService
*
qos
);
BOOL
RpcQualityOfService_IsEqual
(
const
RpcQualityOfService
*
qos1
,
const
RpcQualityOfService
*
qos2
);
RPC_STATUS
RPCRT4_CreateConnection
(
RpcConnection
**
Connection
,
BOOL
server
,
LPCSTR
Protseq
,
LPCSTR
NetworkAddr
,
LPCSTR
Endpoint
,
LPCWSTR
NetworkOptions
,
RpcAuthInfo
*
AuthInfo
,
RpcQualityOfService
*
QOS
,
LPCWSTR
CookieAuth
)
DECLSPEC_HIDDEN
;
RpcConnection
*
RPCRT4_GrabConnection
(
RpcConnection
*
conn
)
DECLSPEC_HIDDEN
;
void
RPCRT4_ReleaseConnection
(
RpcConnection
*
Connection
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_OpenClientConnection
(
RpcConnection
*
Connection
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_CloseConnection
(
RpcConnection
*
Connection
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_IsServerListening
(
const
char
*
protseq
,
const
char
*
endpoint
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_ResolveBinding
(
RpcBinding
*
Binding
,
LPCSTR
Endpoint
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_SetBindingObject
(
RpcBinding
*
Binding
,
const
UUID
*
ObjectUuid
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_MakeBinding
(
RpcBinding
**
Binding
,
RpcConnection
*
Connection
)
DECLSPEC_HIDDEN
;
void
RPCRT4_AddRefBinding
(
RpcBinding
*
Binding
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_ReleaseBinding
(
RpcBinding
*
Binding
)
DECLSPEC_HIDDEN
;
RpcQualityOfService
*
QOS
,
LPCWSTR
CookieAuth
);
RpcConnection
*
RPCRT4_GrabConnection
(
RpcConnection
*
conn
);
void
RPCRT4_ReleaseConnection
(
RpcConnection
*
Connection
);
RPC_STATUS
RPCRT4_OpenClientConnection
(
RpcConnection
*
Connection
);
RPC_STATUS
RPCRT4_CloseConnection
(
RpcConnection
*
Connection
);
RPC_STATUS
RPCRT4_IsServerListening
(
const
char
*
protseq
,
const
char
*
endpoint
);
RPC_STATUS
RPCRT4_ResolveBinding
(
RpcBinding
*
Binding
,
LPCSTR
Endpoint
);
RPC_STATUS
RPCRT4_SetBindingObject
(
RpcBinding
*
Binding
,
const
UUID
*
ObjectUuid
);
RPC_STATUS
RPCRT4_MakeBinding
(
RpcBinding
**
Binding
,
RpcConnection
*
Connection
);
void
RPCRT4_AddRefBinding
(
RpcBinding
*
Binding
);
RPC_STATUS
RPCRT4_ReleaseBinding
(
RpcBinding
*
Binding
);
RPC_STATUS
RPCRT4_OpenBinding
(
RpcBinding
*
Binding
,
RpcConnection
**
Connection
,
const
RPC_SYNTAX_IDENTIFIER
*
TransferSyntax
,
const
RPC_SYNTAX_IDENTIFIER
*
InterfaceId
,
BOOL
*
from_cache
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_CloseBinding
(
RpcBinding
*
Binding
,
RpcConnection
*
Connection
)
DECLSPEC_HIDDEN
;
BOOL
*
from_cache
);
RPC_STATUS
RPCRT4_CloseBinding
(
RpcBinding
*
Binding
,
RpcConnection
*
Connection
);
void
rpcrt4_conn_release_and_wait
(
RpcConnection
*
connection
)
DECLSPEC_HIDDEN
;
void
rpcrt4_conn_release_and_wait
(
RpcConnection
*
connection
);
static
inline
const
char
*
rpcrt4_conn_get_name
(
const
RpcConnection
*
Connection
)
{
...
...
@@ -254,14 +254,14 @@ static inline RPC_STATUS rpcrt4_conn_inquire_auth_client(
}
/* floors 3 and up */
RPC_STATUS
RpcTransport_GetTopOfTower
(
unsigned
char
*
tower_data
,
size_t
*
tower_size
,
const
char
*
protseq
,
const
char
*
networkaddr
,
const
char
*
endpoint
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RpcTransport_ParseTopOfTower
(
const
unsigned
char
*
tower_data
,
size_t
tower_size
,
char
**
protseq
,
char
**
networkaddr
,
char
**
endpoint
)
DECLSPEC_HIDDEN
;
void
RPCRT4_SetThreadCurrentConnection
(
RpcConnection
*
Connection
)
DECLSPEC_HIDDEN
;
void
RPCRT4_SetThreadCurrentCallHandle
(
RpcBinding
*
Binding
)
DECLSPEC_HIDDEN
;
RpcBinding
*
RPCRT4_GetThreadCurrentCallHandle
(
void
)
DECLSPEC_HIDDEN
;
void
RPCRT4_PushThreadContextHandle
(
NDR_SCONTEXT
SContext
)
DECLSPEC_HIDDEN
;
void
RPCRT4_RemoveThreadContextHandle
(
NDR_SCONTEXT
SContext
)
DECLSPEC_HIDDEN
;
NDR_SCONTEXT
RPCRT4_PopThreadContextHandle
(
void
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RpcTransport_GetTopOfTower
(
unsigned
char
*
tower_data
,
size_t
*
tower_size
,
const
char
*
protseq
,
const
char
*
networkaddr
,
const
char
*
endpoint
);
RPC_STATUS
RpcTransport_ParseTopOfTower
(
const
unsigned
char
*
tower_data
,
size_t
tower_size
,
char
**
protseq
,
char
**
networkaddr
,
char
**
endpoint
);
void
RPCRT4_SetThreadCurrentConnection
(
RpcConnection
*
Connection
);
void
RPCRT4_SetThreadCurrentCallHandle
(
RpcBinding
*
Binding
);
RpcBinding
*
RPCRT4_GetThreadCurrentCallHandle
(
void
);
void
RPCRT4_PushThreadContextHandle
(
NDR_SCONTEXT
SContext
);
void
RPCRT4_RemoveThreadContextHandle
(
NDR_SCONTEXT
SContext
);
NDR_SCONTEXT
RPCRT4_PopThreadContextHandle
(
void
);
#endif
dlls/rpcrt4/rpc_message.h
View file @
9b26ea16
...
...
@@ -25,34 +25,34 @@
typedef
unsigned
int
NCA_STATUS
;
RpcPktHdr
*
RPCRT4_BuildFaultHeader
(
ULONG
DataRepresentation
,
RPC_STATUS
Status
)
DECLSPEC_HIDDEN
;
RpcPktHdr
*
RPCRT4_BuildResponseHeader
(
ULONG
DataRepresentation
,
ULONG
BufferLength
)
DECLSPEC_HIDDEN
;
RpcPktHdr
*
RPCRT4_BuildBindHeader
(
ULONG
DataRepresentation
,
unsigned
short
MaxTransmissionSize
,
unsigned
short
MaxReceiveSize
,
ULONG
AssocGroupId
,
const
RPC_SYNTAX_IDENTIFIER
*
AbstractId
,
const
RPC_SYNTAX_IDENTIFIER
*
TransferId
)
DECLSPEC_HIDDEN
;
RpcPktHdr
*
RPCRT4_BuildBindNackHeader
(
ULONG
DataRepresentation
,
unsigned
char
RpcVersion
,
unsigned
char
RpcVersionMinor
,
unsigned
short
RejectReason
)
DECLSPEC_HIDDEN
;
RpcPktHdr
*
RPCRT4_BuildBindAckHeader
(
ULONG
DataRepresentation
,
unsigned
short
MaxTransmissionSize
,
unsigned
short
MaxReceiveSize
,
ULONG
AssocGroupId
,
LPCSTR
ServerAddress
,
unsigned
char
ResultCount
,
const
RpcResult
*
Results
)
DECLSPEC_HIDDEN
;
RpcPktHdr
*
RPCRT4_BuildHttpHeader
(
ULONG
DataRepresentation
,
unsigned
short
flags
,
unsigned
short
num_data_items
,
unsigned
int
payload_size
)
DECLSPEC_HIDDEN
;
RpcPktHdr
*
RPCRT4_BuildHttpConnectHeader
(
int
out_pipe
,
const
UUID
*
connection_uuid
,
const
UUID
*
pipe_uuid
,
const
UUID
*
association_uuid
)
DECLSPEC_HIDDEN
;
RpcPktHdr
*
RPCRT4_BuildHttpFlowControlHeader
(
BOOL
server
,
ULONG
bytes_transmitted
,
ULONG
flow_control_increment
,
const
UUID
*
pipe_uuid
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_Send
(
RpcConnection
*
Connection
,
RpcPktHdr
*
Header
,
void
*
Buffer
,
unsigned
int
BufferLength
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_SendWithAuth
(
RpcConnection
*
Connection
,
RpcPktHdr
*
Header
,
void
*
Buffer
,
unsigned
int
BufferLength
,
const
void
*
Auth
,
unsigned
int
AuthLength
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_ReceiveWithAuth
(
RpcConnection
*
Connection
,
RpcPktHdr
**
Header
,
PRPC_MESSAGE
pMsg
,
unsigned
char
**
auth_data_out
,
ULONG
*
auth_length_out
)
DECLSPEC_HIDDEN
;
DWORD
RPCRT4_GetHeaderSize
(
const
RpcPktHdr
*
Header
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_ValidateCommonHeader
(
const
RpcPktCommonHdr
*
hdr
)
DECLSPEC_HIDDEN
;
RpcPktHdr
*
RPCRT4_BuildFaultHeader
(
ULONG
DataRepresentation
,
RPC_STATUS
Status
);
RpcPktHdr
*
RPCRT4_BuildResponseHeader
(
ULONG
DataRepresentation
,
ULONG
BufferLength
);
RpcPktHdr
*
RPCRT4_BuildBindHeader
(
ULONG
DataRepresentation
,
unsigned
short
MaxTransmissionSize
,
unsigned
short
MaxReceiveSize
,
ULONG
AssocGroupId
,
const
RPC_SYNTAX_IDENTIFIER
*
AbstractId
,
const
RPC_SYNTAX_IDENTIFIER
*
TransferId
);
RpcPktHdr
*
RPCRT4_BuildBindNackHeader
(
ULONG
DataRepresentation
,
unsigned
char
RpcVersion
,
unsigned
char
RpcVersionMinor
,
unsigned
short
RejectReason
);
RpcPktHdr
*
RPCRT4_BuildBindAckHeader
(
ULONG
DataRepresentation
,
unsigned
short
MaxTransmissionSize
,
unsigned
short
MaxReceiveSize
,
ULONG
AssocGroupId
,
LPCSTR
ServerAddress
,
unsigned
char
ResultCount
,
const
RpcResult
*
Results
);
RpcPktHdr
*
RPCRT4_BuildHttpHeader
(
ULONG
DataRepresentation
,
unsigned
short
flags
,
unsigned
short
num_data_items
,
unsigned
int
payload_size
);
RpcPktHdr
*
RPCRT4_BuildHttpConnectHeader
(
int
out_pipe
,
const
UUID
*
connection_uuid
,
const
UUID
*
pipe_uuid
,
const
UUID
*
association_uuid
);
RpcPktHdr
*
RPCRT4_BuildHttpFlowControlHeader
(
BOOL
server
,
ULONG
bytes_transmitted
,
ULONG
flow_control_increment
,
const
UUID
*
pipe_uuid
);
RPC_STATUS
RPCRT4_Send
(
RpcConnection
*
Connection
,
RpcPktHdr
*
Header
,
void
*
Buffer
,
unsigned
int
BufferLength
);
RPC_STATUS
RPCRT4_SendWithAuth
(
RpcConnection
*
Connection
,
RpcPktHdr
*
Header
,
void
*
Buffer
,
unsigned
int
BufferLength
,
const
void
*
Auth
,
unsigned
int
AuthLength
);
RPC_STATUS
RPCRT4_ReceiveWithAuth
(
RpcConnection
*
Connection
,
RpcPktHdr
**
Header
,
PRPC_MESSAGE
pMsg
,
unsigned
char
**
auth_data_out
,
ULONG
*
auth_length_out
);
DWORD
RPCRT4_GetHeaderSize
(
const
RpcPktHdr
*
Header
);
RPC_STATUS
RPCRT4_ValidateCommonHeader
(
const
RpcPktCommonHdr
*
hdr
);
BOOL
RPCRT4_IsValidHttpPacket
(
RpcPktHdr
*
hdr
,
unsigned
char
*
data
,
unsigned
short
data_len
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_ParseHttpPrepareHeader1
(
RpcPktHdr
*
header
,
unsigned
char
*
data
,
ULONG
*
field1
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_ParseHttpPrepareHeader2
(
RpcPktHdr
*
header
,
unsigned
char
*
data
,
ULONG
*
field1
,
ULONG
*
bytes_until_next_packet
,
ULONG
*
field3
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_ParseHttpFlowControlHeader
(
RpcPktHdr
*
header
,
unsigned
char
*
data
,
BOOL
server
,
ULONG
*
bytes_transmitted
,
ULONG
*
flow_control_increment
,
UUID
*
pipe_uuid
)
DECLSPEC_HIDDEN
;
NCA_STATUS
RPC2NCA_STATUS
(
RPC_STATUS
status
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_ClientConnectionAuth
(
RpcConnection
*
conn
,
BYTE
*
challenge
,
ULONG
count
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_ServerConnectionAuth
(
RpcConnection
*
conn
,
BOOL
start
,
RpcAuthVerifier
*
auth_data_in
,
ULONG
auth_length_in
,
unsigned
char
**
auth_data_out
,
ULONG
*
auth_length_out
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_AuthorizeConnection
(
RpcConnection
*
conn
,
BYTE
*
challenge
,
ULONG
count
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_ServerGetRegisteredAuthInfo
(
USHORT
auth_type
,
CredHandle
*
cred
,
TimeStamp
*
exp
,
ULONG
*
max_token
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_default_authorize
(
RpcConnection
*
conn
,
BOOL
first_time
,
unsigned
char
*
in_buffer
,
unsigned
int
in_size
,
unsigned
char
*
out_buffer
,
unsigned
int
*
out_size
)
DECLSPEC_HIDDEN
;
BOOL
RPCRT4_default_is_authorized
(
RpcConnection
*
Connection
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_default_secure_packet
(
RpcConnection
*
Connection
,
enum
secure_packet_direction
dir
,
RpcPktHdr
*
hdr
,
unsigned
int
hdr_size
,
unsigned
char
*
stub_data
,
unsigned
int
stub_data_size
,
RpcAuthVerifier
*
auth_hdr
,
unsigned
char
*
auth_value
,
unsigned
int
auth_value_size
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_default_impersonate_client
(
RpcConnection
*
conn
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_default_revert_to_self
(
RpcConnection
*
conn
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_default_inquire_auth_client
(
RpcConnection
*
conn
,
RPC_AUTHZ_HANDLE
*
privs
,
RPC_WSTR
*
server_princ_name
,
ULONG
*
authn_level
,
ULONG
*
authn_svc
,
ULONG
*
authz_svc
,
ULONG
flags
)
DECLSPEC_HIDDEN
;
BOOL
RPCRT4_IsValidHttpPacket
(
RpcPktHdr
*
hdr
,
unsigned
char
*
data
,
unsigned
short
data_len
);
RPC_STATUS
RPCRT4_ParseHttpPrepareHeader1
(
RpcPktHdr
*
header
,
unsigned
char
*
data
,
ULONG
*
field1
);
RPC_STATUS
RPCRT4_ParseHttpPrepareHeader2
(
RpcPktHdr
*
header
,
unsigned
char
*
data
,
ULONG
*
field1
,
ULONG
*
bytes_until_next_packet
,
ULONG
*
field3
);
RPC_STATUS
RPCRT4_ParseHttpFlowControlHeader
(
RpcPktHdr
*
header
,
unsigned
char
*
data
,
BOOL
server
,
ULONG
*
bytes_transmitted
,
ULONG
*
flow_control_increment
,
UUID
*
pipe_uuid
);
NCA_STATUS
RPC2NCA_STATUS
(
RPC_STATUS
status
);
RPC_STATUS
RPCRT4_ClientConnectionAuth
(
RpcConnection
*
conn
,
BYTE
*
challenge
,
ULONG
count
);
RPC_STATUS
RPCRT4_ServerConnectionAuth
(
RpcConnection
*
conn
,
BOOL
start
,
RpcAuthVerifier
*
auth_data_in
,
ULONG
auth_length_in
,
unsigned
char
**
auth_data_out
,
ULONG
*
auth_length_out
);
RPC_STATUS
RPCRT4_AuthorizeConnection
(
RpcConnection
*
conn
,
BYTE
*
challenge
,
ULONG
count
);
RPC_STATUS
RPCRT4_ServerGetRegisteredAuthInfo
(
USHORT
auth_type
,
CredHandle
*
cred
,
TimeStamp
*
exp
,
ULONG
*
max_token
);
RPC_STATUS
RPCRT4_default_authorize
(
RpcConnection
*
conn
,
BOOL
first_time
,
unsigned
char
*
in_buffer
,
unsigned
int
in_size
,
unsigned
char
*
out_buffer
,
unsigned
int
*
out_size
);
BOOL
RPCRT4_default_is_authorized
(
RpcConnection
*
Connection
);
RPC_STATUS
RPCRT4_default_secure_packet
(
RpcConnection
*
Connection
,
enum
secure_packet_direction
dir
,
RpcPktHdr
*
hdr
,
unsigned
int
hdr_size
,
unsigned
char
*
stub_data
,
unsigned
int
stub_data_size
,
RpcAuthVerifier
*
auth_hdr
,
unsigned
char
*
auth_value
,
unsigned
int
auth_value_size
);
RPC_STATUS
RPCRT4_default_impersonate_client
(
RpcConnection
*
conn
);
RPC_STATUS
RPCRT4_default_revert_to_self
(
RpcConnection
*
conn
);
RPC_STATUS
RPCRT4_default_inquire_auth_client
(
RpcConnection
*
conn
,
RPC_AUTHZ_HANDLE
*
privs
,
RPC_WSTR
*
server_princ_name
,
ULONG
*
authn_level
,
ULONG
*
authn_svc
,
ULONG
*
authz_svc
,
ULONG
flags
);
#endif
dlls/rpcrt4/rpc_server.h
View file @
9b26ea16
...
...
@@ -77,10 +77,10 @@ typedef struct _RpcServerInterface
BOOL
Delete
;
/* delete when the last call finishes */
}
RpcServerInterface
;
void
RPCRT4_new_client
(
RpcConnection
*
conn
)
DECLSPEC_HIDDEN
;
const
struct
protseq_ops
*
rpcrt4_get_protseq_ops
(
const
char
*
protseq
)
DECLSPEC_HIDDEN
;
void
RPCRT4_new_client
(
RpcConnection
*
conn
);
const
struct
protseq_ops
*
rpcrt4_get_protseq_ops
(
const
char
*
protseq
);
void
RPCRT4_destroy_all_protseqs
(
void
)
DECLSPEC_HIDDEN
;
void
RPCRT4_ServerFreeAllRegisteredAuthInfo
(
void
)
DECLSPEC_HIDDEN
;
void
RPCRT4_destroy_all_protseqs
(
void
);
void
RPCRT4_ServerFreeAllRegisteredAuthInfo
(
void
);
#endif
/* __WINE_RPC_SERVER_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment