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
b0efdcbd
Commit
b0efdcbd
authored
Jun 28, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jun 29, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Implement CoGetObject.
parent
166a91b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
1 deletion
+53
-1
compobj.c
dlls/ole32/compobj.c
+52
-0
ole32.spec
dlls/ole32/ole32.spec
+1
-1
No files found.
dlls/ole32/compobj.c
View file @
b0efdcbd
...
...
@@ -2909,6 +2909,58 @@ HRESULT WINAPI CoWaitForMultipleHandles(DWORD dwFlags, DWORD dwTimeout,
return
hr
;
}
/***********************************************************************
* CoGetObject [OLE32.@]
*
* Gets the object named by coverting the name to a moniker and binding to it.
*
* PARAMS
* pszName [I] String representing the object.
* pBindOptions [I] Parameters affecting the binding to the named object.
* riid [I] Interface to bind to on the objecct.
* ppv [O] On output, the interface riid of the object represented
* by pszName.
*
* RETURNS
* Success: S_OK.
* Failure: HRESULT code.
*
* SEE ALSO
* MkParseDisplayName.
*/
HRESULT
WINAPI
CoGetObject
(
LPCWSTR
pszName
,
BIND_OPTS
*
pBindOptions
,
REFIID
riid
,
void
**
ppv
)
{
IBindCtx
*
pbc
;
HRESULT
hr
;
*
ppv
=
NULL
;
hr
=
CreateBindCtx
(
0
,
&
pbc
);
if
(
SUCCEEDED
(
hr
))
{
if
(
pBindOptions
)
hr
=
IBindCtx_SetBindOptions
(
pbc
,
pBindOptions
);
if
(
SUCCEEDED
(
hr
))
{
ULONG
chEaten
;
IMoniker
*
pmk
;
hr
=
MkParseDisplayName
(
pbc
,
pszName
,
&
chEaten
,
&
pmk
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IMoniker_BindToObject
(
pmk
,
pbc
,
NULL
,
riid
,
ppv
);
IMoniker_Release
(
pmk
);
}
}
IBindCtx_Release
(
pbc
);
}
return
hr
;
}
/***********************************************************************
* DllMain (OLE32.@)
*/
...
...
dlls/ole32/ole32.spec
View file @
b0efdcbd
...
...
@@ -30,7 +30,7 @@
@ stdcall CoGetInterfaceAndReleaseStream(ptr ptr ptr)
@ stdcall CoGetMalloc(long ptr)
@ stdcall CoGetMarshalSizeMax(ptr ptr ptr long ptr long)
@ st
ub CoGetObject
@ st
dcall CoGetObject(wstr ptr ptr ptr)
@ stdcall CoGetPSClsid(ptr ptr)
@ stdcall CoGetStandardMarshal(ptr ptr long ptr long ptr)
@ stdcall CoGetState(ptr)
...
...
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