Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
caefc340
Commit
caefc340
authored
May 08, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
May 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add a class factory for composite monikers.
parent
fa8472c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
1 deletion
+72
-1
compositemoniker.c
dlls/ole32/compositemoniker.c
+68
-1
moniker.h
dlls/ole32/moniker.h
+2
-0
oleproxy.c
dlls/ole32/oleproxy.c
+2
-0
No files found.
dlls/ole32/compositemoniker.c
View file @
caefc340
...
...
@@ -37,7 +37,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
static
const
CLSID
CLSID_CompositeMoniker
=
{
const
CLSID
CLSID_CompositeMoniker
=
{
0x309
,
0
,
0
,
{
0xC0
,
0
,
0
,
0
,
0
,
0
,
0
,
0x46
}
};
...
...
@@ -1944,3 +1944,70 @@ MonikerCommonPrefixWith(IMoniker* pmkThis,IMoniker* pmkOther,IMoniker** ppmkComm
FIXME
(
"(),stub!
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
CompositeMonikerCF_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
CompositeMonikerCF_AddRef
(
LPCLASSFACTORY
iface
)
{
return
2
;
/* non-heap based object */
}
static
ULONG
WINAPI
CompositeMonikerCF_Release
(
LPCLASSFACTORY
iface
)
{
return
1
;
/* non-heap based object */
}
static
HRESULT
WINAPI
CompositeMonikerCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pUnk
,
REFIID
riid
,
LPVOID
*
ppv
)
{
CompositeMonikerImpl
*
newCompositeMoniker
;
HRESULT
hr
;
TRACE
(
"(%p, %s, %p)
\n
"
,
pUnk
,
debugstr_guid
(
riid
),
ppv
);
*
ppv
=
NULL
;
if
(
pUnk
)
return
CLASS_E_NOAGGREGATION
;
hr
=
CompositeMonikerImpl_Construct
(
&
newCompositeMoniker
,
NULL
,
NULL
);
if
(
SUCCEEDED
(
hr
))
hr
=
CompositeMonikerImpl_QueryInterface
((
IMoniker
*
)
newCompositeMoniker
,
riid
,
ppv
);
if
(
FAILED
(
hr
))
HeapFree
(
GetProcessHeap
(),
0
,
newCompositeMoniker
);
return
hr
;
}
static
HRESULT
WINAPI
CompositeMonikerCF_LockServer
(
LPCLASSFACTORY
iface
,
BOOL
fLock
)
{
FIXME
(
"(%d), stub!
\n
"
,
fLock
);
return
S_OK
;
}
static
const
IClassFactoryVtbl
CompositeMonikerCFVtbl
=
{
CompositeMonikerCF_QueryInterface
,
CompositeMonikerCF_AddRef
,
CompositeMonikerCF_Release
,
CompositeMonikerCF_CreateInstance
,
CompositeMonikerCF_LockServer
};
static
const
IClassFactoryVtbl
*
CompositeMonikerCF
=
&
CompositeMonikerCFVtbl
;
HRESULT
CompositeMonikerCF_Create
(
REFIID
riid
,
LPVOID
*
ppv
)
{
return
IClassFactory_QueryInterface
((
IClassFactory
*
)
&
CompositeMonikerCF
,
riid
,
ppv
);
}
dlls/ole32/moniker.h
View file @
caefc340
...
...
@@ -4,10 +4,12 @@
extern
const
CLSID
CLSID_FileMoniker
;
extern
const
CLSID
CLSID_ItemMoniker
;
extern
const
CLSID
CLSID_AntiMoniker
;
extern
const
CLSID
CLSID_CompositeMoniker
;
HRESULT
FileMonikerCF_Create
(
REFIID
riid
,
LPVOID
*
ppv
);
HRESULT
ItemMonikerCF_Create
(
REFIID
riid
,
LPVOID
*
ppv
);
HRESULT
AntiMonikerCF_Create
(
REFIID
riid
,
LPVOID
*
ppv
);
HRESULT
CompositeMonikerCF_Create
(
REFIID
riid
,
LPVOID
*
ppv
);
HRESULT
MonikerMarshal_Create
(
IMoniker
*
inner
,
IUnknown
**
outer
);
...
...
dlls/ole32/oleproxy.c
View file @
caefc340
...
...
@@ -1016,6 +1016,8 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid,LPVOID *ppv)
return
ItemMonikerCF_Create
(
iid
,
ppv
);
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_AntiMoniker
))
return
AntiMonikerCF_Create
(
iid
,
ppv
);
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_CompositeMoniker
))
return
CompositeMonikerCF_Create
(
iid
,
ppv
);
FIXME
(
"
\n\t
CLSID:
\t
%s,
\n\t
IID:
\t
%s
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
iid
));
return
CLASS_E_CLASSNOTAVAILABLE
;
...
...
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