IClassActivator::GetClassObject method (objidl.h)

Retrieves a class object.

Syntax

HRESULT GetClassObject(
  REFCLSID rclsid,
  DWORD    dwClassContext,
  LCID     locale,
  REFIID   riid,
  void     **ppv
);

Parameters

rclsid

The CLSID that identifies the class whose class object is to be retrieved.

dwClassContext

The context in which the class is expected to run. For a list of values, see the CLSCTX enumeration.

locale

An LCID constant as defined in WinNls.h.

riid

The IID of the interface on the object to which a pointer is desired.

ppv

The address of pointer variable that receives the interface pointer requested in riid. Upon successful return, *ppv contains the requested interface pointer.

Return value

If the method succeeds, the return value is S_OK. Otherwise, it is E_FAIL.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header objidl.h

See also

CoGetClassObject

IClassActivator