Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IClassActivator::GetClassObject method

Retrieves a class object.

Syntax


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

Parameters

rclsid [in]

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

dwClassContext [in]

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

locale [in]

An LCID constant as defined in WinNls.h.

riid [in]

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

ppv [out]

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]

Header

ObjIdl.h

IDL

ObjIdl.idl

IID

IID_IClassActivator is defined as 00000140-0000-0000-C000-000000000046

See also

CoGetClassObject
IClassActivator

 

 

Show:
© 2017 Microsoft