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
2e93adc5
Commit
2e93adc5
authored
Jul 22, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Jul 22, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Remove unneeded STUBMGR_Start call.
- Cleanup compobj_private.h.
parent
0b20ab18
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
46 deletions
+40
-46
compobj_private.h
dlls/ole32/compobj_private.h
+1
-42
marshal.c
dlls/ole32/marshal.c
+15
-0
oleproxy.c
dlls/ole32/oleproxy.c
+0
-4
rpc.c
dlls/ole32/rpc.c
+24
-0
No files found.
dlls/ole32/compobj_private.h
View file @
2e93adc5
...
@@ -118,18 +118,9 @@ extern HRESULT create_marshalled_proxy(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
...
@@ -118,18 +118,9 @@ extern HRESULT create_marshalled_proxy(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
extern
void
*
StdGlobalInterfaceTableInstance
;
extern
void
*
StdGlobalInterfaceTableInstance
;
inline
static
HRESULT
get_facbuf_for_iid
(
REFIID
riid
,
IPSFactoryBuffer
**
facbuf
)
{
HRESULT
hres
;
CLSID
pxclsid
;
if
((
hres
=
CoGetPSClsid
(
riid
,
&
pxclsid
)))
return
hres
;
return
CoGetClassObject
(
&
pxclsid
,
CLSCTX_INPROC_SERVER
,
NULL
,
&
IID_IPSFactoryBuffer
,(
LPVOID
*
)
facbuf
);
}
#define PIPEPREF "\\\\.\\pipe\\"
#define PIPEPREF "\\\\.\\pipe\\"
#define OLESTUBMGR PIPEPREF"WINE_OLE_StubMgr"
#define OLESTUBMGR PIPEPREF"WINE_OLE_StubMgr"
/* Standard Marshalling definitions */
/* Standard Marshalling definitions */
typedef
struct
_wine_marshal_id
{
typedef
struct
_wine_marshal_id
{
DWORD
processid
;
DWORD
processid
;
...
@@ -156,41 +147,9 @@ MARSHAL_Compare_Mids_NoInterface(wine_marshal_id *mid1, wine_marshal_id *mid2) {
...
@@ -156,41 +147,9 @@ MARSHAL_Compare_Mids_NoInterface(wine_marshal_id *mid1, wine_marshal_id *mid2) {
}
}
HRESULT
MARSHAL_Find_Stub_Buffer
(
wine_marshal_id
*
mid
,
IRpcStubBuffer
**
stub
);
HRESULT
MARSHAL_Find_Stub_Buffer
(
wine_marshal_id
*
mid
,
IRpcStubBuffer
**
stub
);
HRESULT
MARSHAL_Find_Stub_Server
(
wine_marshal_id
*
mid
,
LPUNKNOWN
*
punk
);
HRESULT
MARSHAL_Register_Stub
(
wine_marshal_id
*
mid
,
LPUNKNOWN
punk
,
IRpcStubBuffer
*
stub
);
HRESULT
MARSHAL_GetStandardMarshalCF
(
LPVOID
*
ppv
);
HRESULT
MARSHAL_GetStandardMarshalCF
(
LPVOID
*
ppv
);
typedef
struct
_wine_marshal_data
{
DWORD
dwDestContext
;
DWORD
mshlflags
;
}
wine_marshal_data
;
#define REQTYPE_REQUEST 0
typedef
struct
_wine_rpc_request_header
{
DWORD
reqid
;
wine_marshal_id
mid
;
DWORD
iMethod
;
DWORD
cbBuffer
;
}
wine_rpc_request_header
;
#define REQTYPE_RESPONSE 1
typedef
struct
_wine_rpc_response_header
{
DWORD
reqid
;
DWORD
cbBuffer
;
DWORD
retval
;
}
wine_rpc_response_header
;
#define REQSTATE_START 0
#define REQSTATE_REQ_QUEUED 1
#define REQSTATE_REQ_WAITING_FOR_REPLY 2
#define REQSTATE_REQ_GOT 3
#define REQSTATE_INVOKING 4
#define REQSTATE_RESP_QUEUED 5
#define REQSTATE_RESP_GOT 6
#define REQSTATE_DONE 6
void
STUBMGR_Start
();
void
STUBMGR_Start
();
extern
HRESULT
PIPE_GetNewPipeBuf
(
wine_marshal_id
*
mid
,
IRpcChannelBuffer
**
pipebuf
);
extern
HRESULT
PIPE_GetNewPipeBuf
(
wine_marshal_id
*
mid
,
IRpcChannelBuffer
**
pipebuf
);
...
...
dlls/ole32/marshal.c
View file @
2e93adc5
...
@@ -58,6 +58,21 @@ extern const CLSID CLSID_DfMarshal;
...
@@ -58,6 +58,21 @@ extern const CLSID CLSID_DfMarshal;
* Note that the IUnknown_QI(ob,xiid,&ppv) always returns the SAME ppv value!
* Note that the IUnknown_QI(ob,xiid,&ppv) always returns the SAME ppv value!
*/
*/
inline
static
HRESULT
get_facbuf_for_iid
(
REFIID
riid
,
IPSFactoryBuffer
**
facbuf
)
{
HRESULT
hres
;
CLSID
pxclsid
;
if
((
hres
=
CoGetPSClsid
(
riid
,
&
pxclsid
)))
return
hres
;
return
CoGetClassObject
(
&
pxclsid
,
CLSCTX_INPROC_SERVER
,
NULL
,
&
IID_IPSFactoryBuffer
,(
LPVOID
*
)
facbuf
);
}
typedef
struct
_wine_marshal_data
{
DWORD
dwDestContext
;
DWORD
mshlflags
;
}
wine_marshal_data
;
typedef
struct
_mid2unknown
{
typedef
struct
_mid2unknown
{
wine_marshal_id
mid
;
wine_marshal_id
mid
;
LPUNKNOWN
pUnk
;
LPUNKNOWN
pUnk
;
...
...
dlls/ole32/oleproxy.c
View file @
2e93adc5
...
@@ -512,10 +512,6 @@ HRESULT WINAPI OLE32_DllGetClassObject(REFCLSID rclsid, REFIID iid,LPVOID *ppv)
...
@@ -512,10 +512,6 @@ HRESULT WINAPI OLE32_DllGetClassObject(REFCLSID rclsid, REFIID iid,LPVOID *ppv)
*
ppv
=
NULL
;
*
ppv
=
NULL
;
if
(
IsEqualIID
(
rclsid
,
&
CLSID_PSFactoryBuffer
))
{
if
(
IsEqualIID
(
rclsid
,
&
CLSID_PSFactoryBuffer
))
{
*
ppv
=
&
lppsfac
;
*
ppv
=
&
lppsfac
;
/* If we create a ps factory, we might need a stub manager later
* anyway
*/
STUBMGR_Start
();
return
S_OK
;
return
S_OK
;
}
}
if
(
IsEqualIID
(
rclsid
,
&
CLSID_DfMarshal
)
&&
(
if
(
IsEqualIID
(
rclsid
,
&
CLSID_DfMarshal
)
&&
(
...
...
dlls/ole32/rpc.c
View file @
2e93adc5
...
@@ -50,6 +50,30 @@
...
@@ -50,6 +50,30 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
#define REQTYPE_REQUEST 0
typedef
struct
_wine_rpc_request_header
{
DWORD
reqid
;
wine_marshal_id
mid
;
DWORD
iMethod
;
DWORD
cbBuffer
;
}
wine_rpc_request_header
;
#define REQTYPE_RESPONSE 1
typedef
struct
_wine_rpc_response_header
{
DWORD
reqid
;
DWORD
cbBuffer
;
DWORD
retval
;
}
wine_rpc_response_header
;
#define REQSTATE_START 0
#define REQSTATE_REQ_QUEUED 1
#define REQSTATE_REQ_WAITING_FOR_REPLY 2
#define REQSTATE_REQ_GOT 3
#define REQSTATE_INVOKING 4
#define REQSTATE_RESP_QUEUED 5
#define REQSTATE_RESP_GOT 6
#define REQSTATE_DONE 6
typedef
struct
_wine_rpc_request
{
typedef
struct
_wine_rpc_request
{
int
state
;
int
state
;
HANDLE
hPipe
;
/* temp copy of handle */
HANDLE
hPipe
;
/* temp copy of handle */
...
...
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