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
7406cc21
Commit
7406cc21
authored
Mar 05, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Mar 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole: Implement IRpcChannelBuffer::GetDestCtx on the client side.
parent
92a1f52b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
6 deletions
+29
-6
compobj_private.h
dlls/ole32/compobj_private.h
+3
-1
marshal.c
dlls/ole32/marshal.c
+4
-1
rpc.c
dlls/ole32/rpc.c
+22
-4
No files found.
dlls/ole32/compobj_private.h
View file @
7406cc21
...
...
@@ -201,7 +201,9 @@ HRESULT marshal_object(APARTMENT *apt, STDOBJREF *stdobjref, REFIID riid, IUnkno
struct
dispatch_params
;
void
RPC_StartRemoting
(
struct
apartment
*
apt
);
HRESULT
RPC_CreateClientChannel
(
const
OXID
*
oxid
,
const
IPID
*
ipid
,
IRpcChannelBuffer
**
pipebuf
);
HRESULT
RPC_CreateClientChannel
(
const
OXID
*
oxid
,
const
IPID
*
ipid
,
DWORD
dest_context
,
void
*
dest_context_data
,
IRpcChannelBuffer
**
chan
);
HRESULT
RPC_CreateServerChannel
(
IRpcChannelBuffer
**
chan
);
void
RPC_ExecuteCall
(
struct
dispatch_params
*
params
);
HRESULT
RPC_RegisterInterface
(
REFIID
riid
);
...
...
dlls/ole32/marshal.c
View file @
7406cc21
...
...
@@ -1094,7 +1094,10 @@ static HRESULT unmarshal_object(const STDOBJREF *stdobjref, APARTMENT *apt,
if
(
hr
==
E_NOINTERFACE
)
{
IRpcChannelBuffer
*
chanbuf
;
hr
=
RPC_CreateClientChannel
(
&
stdobjref
->
oxid
,
&
stdobjref
->
ipid
,
&
chanbuf
);
hr
=
RPC_CreateClientChannel
(
&
stdobjref
->
oxid
,
&
stdobjref
->
ipid
,
proxy_manager
->
dest_context
,
proxy_manager
->
dest_context_data
,
&
chanbuf
);
if
(
hr
==
S_OK
)
hr
=
proxy_manager_create_ifproxy
(
proxy_manager
,
stdobjref
,
riid
,
chanbuf
,
&
ifproxy
);
...
...
dlls/ole32/rpc.c
View file @
7406cc21
...
...
@@ -100,6 +100,8 @@ typedef struct
RPC_BINDING_HANDLE
bind
;
/* handle to the remote server */
OXID
oxid
;
/* apartment in which the channel is valid */
DWORD
dest_context
;
/* returned from GetDestCtx */
LPVOID
dest_context_data
;
/* returned from GetDestCtx */
}
ClientRpcChannelBuffer
;
struct
dispatch_params
...
...
@@ -379,7 +381,19 @@ static HRESULT WINAPI ClientRpcChannelBuffer_FreeBuffer(LPRPCCHANNELBUFFER iface
return
HRESULT_FROM_WIN32
(
status
);
}
static
HRESULT
WINAPI
RpcChannelBuffer_GetDestCtx
(
LPRPCCHANNELBUFFER
iface
,
DWORD
*
pdwDestContext
,
void
**
ppvDestContext
)
static
HRESULT
WINAPI
ClientRpcChannelBuffer_GetDestCtx
(
LPRPCCHANNELBUFFER
iface
,
DWORD
*
pdwDestContext
,
void
**
ppvDestContext
)
{
ClientRpcChannelBuffer
*
This
=
(
ClientRpcChannelBuffer
*
)
iface
;
TRACE
(
"(%p,%p)
\n
"
,
pdwDestContext
,
ppvDestContext
);
*
pdwDestContext
=
This
->
dest_context
;
*
ppvDestContext
=
This
->
dest_context_data
;
return
S_OK
;
}
static
HRESULT
WINAPI
ServerRpcChannelBuffer_GetDestCtx
(
LPRPCCHANNELBUFFER
iface
,
DWORD
*
pdwDestContext
,
void
**
ppvDestContext
)
{
FIXME
(
"(%p,%p), stub!
\n
"
,
pdwDestContext
,
ppvDestContext
);
return
E_FAIL
;
...
...
@@ -400,7 +414,7 @@ static const IRpcChannelBufferVtbl ClientRpcChannelBufferVtbl =
ClientRpcChannelBuffer_GetBuffer
,
ClientRpcChannelBuffer_SendReceive
,
ClientRpcChannelBuffer_FreeBuffer
,
RpcChannelBuffer_GetDestCtx
,
Client
RpcChannelBuffer_GetDestCtx
,
RpcChannelBuffer_IsConnected
};
...
...
@@ -412,12 +426,14 @@ static const IRpcChannelBufferVtbl ServerRpcChannelBufferVtbl =
ServerRpcChannelBuffer_GetBuffer
,
ServerRpcChannelBuffer_SendReceive
,
ServerRpcChannelBuffer_FreeBuffer
,
RpcChannelBuffer_GetDestCtx
,
Server
RpcChannelBuffer_GetDestCtx
,
RpcChannelBuffer_IsConnected
};
/* returns a channel buffer for proxies */
HRESULT
RPC_CreateClientChannel
(
const
OXID
*
oxid
,
const
IPID
*
ipid
,
IRpcChannelBuffer
**
chan
)
HRESULT
RPC_CreateClientChannel
(
const
OXID
*
oxid
,
const
IPID
*
ipid
,
DWORD
dest_context
,
void
*
dest_context_data
,
IRpcChannelBuffer
**
chan
)
{
ClientRpcChannelBuffer
*
This
;
WCHAR
endpoint
[
200
];
...
...
@@ -470,6 +486,8 @@ HRESULT RPC_CreateClientChannel(const OXID *oxid, const IPID *ipid, IRpcChannelB
This
->
super
.
refs
=
1
;
This
->
bind
=
bind
;
apartment_getoxid
(
COM_CurrentApt
(),
&
This
->
oxid
);
This
->
dest_context
=
dest_context
;
This
->
dest_context_data
=
dest_context_data
;
*
chan
=
(
IRpcChannelBuffer
*
)
This
;
...
...
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