ITypeInfo::CreateInstancepunkOuter, riid, ppvObj)
IUnknown FAR* punkOuter
VOID FAR* FAR* ppvObj Creates a new instance of a type that describes a component object class (coclass). Parameters punkOuter A pointer to the controlling IUnknown. If NULL, then a stand-alone instance is created. If valid, then an aggregate object is created. riid An ID for the interface the caller will use to communicate with the resulting object. ppvObj On return, points to a pointer to an instance of the created object. Return Value The SCODE obtained from the returned HRESULT is one of the following:
||Out of memory.
||One or more of the arguments is invalid.
||OLE could not find an implementation of one or more required interfaces.
||The type library has an old format.
||The type library could not be opened.
||Additional errors may be returned from GetActiveObject or CoCreateInstance.
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages