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
f2bd261f
Commit
f2bd261f
authored
May 24, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
May 25, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add a class factory for CLSID_InProcFreeMarshaler.
parent
386fcbb5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
0 deletions
+69
-0
compobj.c
dlls/ole32/compobj.c
+3
-0
compobj_private.h
dlls/ole32/compobj_private.h
+1
-0
ftmarshal.c
dlls/ole32/ftmarshal.c
+65
-0
No files found.
dlls/ole32/compobj.c
View file @
f2bd261f
...
...
@@ -1642,6 +1642,9 @@ HRESULT WINAPI CoGetClassObject(
static
const
WCHAR
wszInprocServer32
[]
=
{
'I'
,
'n'
,
'p'
,
'r'
,
'o'
,
'c'
,
'S'
,
'e'
,
'r'
,
'v'
,
'e'
,
'r'
,
'3'
,
'2'
,
0
};
HKEY
hkey
;
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_InProcFreeMarshaler
))
return
FTMarshalCF_Create
(
iid
,
ppv
);
hres
=
COM_OpenKeyForCLSID
(
rclsid
,
wszInprocServer32
,
KEY_READ
,
&
hkey
);
if
(
FAILED
(
hres
))
{
...
...
dlls/ole32/compobj_private.h
View file @
f2bd261f
...
...
@@ -178,6 +178,7 @@ extern HRESULT WINE_StringFromCLSID(const CLSID *id,LPSTR idstr);
HRESULT
COM_OpenKeyForCLSID
(
REFCLSID
clsid
,
LPCWSTR
keyname
,
REGSAM
access
,
HKEY
*
key
);
HRESULT
MARSHAL_GetStandardMarshalCF
(
LPVOID
*
ppv
);
HRESULT
FTMarshalCF_Create
(
REFIID
riid
,
LPVOID
*
ppv
);
/* Stub Manager */
...
...
dlls/ole32/ftmarshal.c
View file @
f2bd261f
...
...
@@ -325,3 +325,68 @@ HRESULT WINAPI CoCreateFreeThreadedMarshaler (LPUNKNOWN punkOuter, LPUNKNOWN * p
*
ppunkMarshal
=
_IFTMUnknown_
(
ftm
);
return
S_OK
;
}
static
HRESULT
WINAPI
FTMarshalCF_QueryInterface
(
LPCLASSFACTORY
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
{
*
ppv
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
iface
;
IUnknown_AddRef
(
iface
);
return
S_OK
;
}
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
FTMarshalCF_AddRef
(
LPCLASSFACTORY
iface
)
{
return
2
;
/* non-heap based object */
}
static
ULONG
WINAPI
FTMarshalCF_Release
(
LPCLASSFACTORY
iface
)
{
return
1
;
/* non-heap based object */
}
static
HRESULT
WINAPI
FTMarshalCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pUnk
,
REFIID
riid
,
LPVOID
*
ppv
)
{
IUnknown
*
pUnknown
;
HRESULT
hr
;
TRACE
(
"(%p, %s, %p)
\n
"
,
pUnk
,
debugstr_guid
(
riid
),
ppv
);
*
ppv
=
NULL
;
hr
=
CoCreateFreeThreadedMarshaler
(
pUnk
,
&
pUnknown
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IUnknown_QueryInterface
(
pUnknown
,
riid
,
ppv
);
IUnknown_Release
(
pUnknown
);
}
return
hr
;
}
static
HRESULT
WINAPI
FTMarshalCF_LockServer
(
LPCLASSFACTORY
iface
,
BOOL
fLock
)
{
FIXME
(
"(%d), stub!
\n
"
,
fLock
);
return
S_OK
;
}
static
const
IClassFactoryVtbl
FTMarshalCFVtbl
=
{
FTMarshalCF_QueryInterface
,
FTMarshalCF_AddRef
,
FTMarshalCF_Release
,
FTMarshalCF_CreateInstance
,
FTMarshalCF_LockServer
};
static
const
IClassFactoryVtbl
*
FTMarshalCF
=
&
FTMarshalCFVtbl
;
HRESULT
FTMarshalCF_Create
(
REFIID
riid
,
LPVOID
*
ppv
)
{
return
IClassFactory_QueryInterface
((
IClassFactory
*
)
&
FTMarshalCF
,
riid
,
ppv
);
}
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