Export (0) Print
Expand All

GetActiveObject Function

Retrieves a pointer to a running object that has been registered with OLE.

HRESULT GetActiveObject(  
  REFCLSID  rclsid,       
  void FAR*  pvReserved,  
  IUnknown FAR* FAR*  ppunk  
);

rclsid

Pointer to the class identifier (CLSID) of the active object from the OLE registration database.

pvReserved

Reserved for future use. Must be Null.

ppunk

On return, a pointer to the requested active object.

The return value obtained from the returned HRESULT is one of the following:

Return value

Meaning

S_OK

Success.

Other return codes

Failure.

Show:
© 2014 Microsoft