Reference

CoGetObject(3w)

NAME

CoGetObject (OLE32.@)

SYNOPSIS

HRESULT CoGetObject
(
LPCWSTR pszName,
BIND_OPTS* pBindOptions,
REFIID riid,
void** ppv
)

DESCRIPTION

Gets the object named by converting the name to a moniker and binding to it.

PARAMS

pszName [In] String representing the object.

pBindOptions [In] Parameters affecting the binding to the named object.

riid [In] Interface to bind to on the objecct.

ppv [Out] On output, the interface riid of the object represented by pszName.

RETURNS

Success: S_OK.

Failure: HRESULT code.

SEE ALSO

MkParseDisplayName.

IMPLEMENTATION

Declared in "objbase.h".

Implemented in "dlls/ole32/compobj.c".

Debug channel "ole".

History