Düzenle

Aracılığıyla paylaş


GetActiveObject function (oleauto.h)

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

Syntax

HRESULT GetActiveObject(
  [in]  REFCLSID rclsid,
        void     *pvReserved,
  [out] IUnknown **ppunk
);

Parameters

[in] rclsid

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

pvReserved

Reserved for future use. Must be null.

[out] ppunk

The requested active object.

Return value

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

Requirements

Requirement Value
Target Platform Windows
Header oleauto.h
Library OleAut32.lib
DLL OleAut32.dll