GetActiveObject function

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

Syntax


HRESULT GetActiveObject(
  _In_       REFCLSID rclsid,
  _Reserved_ void     *pvReserved,
  _Out_      IUnknown **ppunk
);

Parameters

rclsid [in]

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

pvReserved

Reserved for future use. Must be null.

ppunk [out]

The requested active object.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Header

OleAuto.h

Library

OleAut32.lib

DLL

OleAut32.dll

 

 

Show: