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
161f6007
Commit
161f6007
authored
Aug 28, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Aug 29, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add a helper function to create a stub.
parent
bc449ca3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
cpsf.h
dlls/rpcrt4/cpsf.h
+2
-0
ndr_ole.c
dlls/rpcrt4/ndr_ole.c
+26
-0
No files found.
dlls/rpcrt4/cpsf.h
View file @
161f6007
...
...
@@ -44,4 +44,6 @@ const MIDL_SERVER_INFO *CStdStubBuffer_GetServerInfo(IRpcStubBuffer *iface);
const
IRpcStubBufferVtbl
CStdStubBuffer_Vtbl
;
HRESULT
create_stub
(
REFIID
iid
,
IUnknown
*
pUnk
,
IRpcStubBuffer
**
ppstub
);
#endif
/* __WINE_CPSF_H */
dlls/rpcrt4/ndr_ole.c
View file @
161f6007
...
...
@@ -39,7 +39,9 @@
#include "ndr_misc.h"
#include "rpcndr.h"
#include "rpcproxy.h"
#include "wine/rpcfc.h"
#include "cpsf.h"
#include "wine/debug.h"
...
...
@@ -364,3 +366,27 @@ void WINAPI NdrOleFree(void *NodeToFree)
if
(
!
LoadCOM
())
return
;
COM_MemFree
(
NodeToFree
);
}
/***********************************************************************
* Helper function to create a stub.
* This probably looks very much like NdrpCreateStub.
*/
HRESULT
create_stub
(
REFIID
iid
,
IUnknown
*
pUnk
,
IRpcStubBuffer
**
ppstub
)
{
CLSID
clsid
;
IPSFactoryBuffer
*
psfac
;
HRESULT
r
;
if
(
!
LoadCOM
())
return
E_FAIL
;
r
=
COM_GetPSClsid
(
iid
,
&
clsid
);
if
(
FAILED
(
r
))
return
r
;
r
=
COM_GetClassObject
(
&
clsid
,
CLSCTX_INPROC_SERVER
,
NULL
,
&
IID_IPSFactoryBuffer
,
(
void
**
)
&
psfac
);
if
(
FAILED
(
r
))
return
r
;
r
=
IPSFactoryBuffer_CreateStub
(
psfac
,
iid
,
pUnk
,
ppstub
);
IPSFactoryBuffer_Release
(
psfac
);
return
r
;
}
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