Microsoft DirectX 9.0

CSystemClock::CreateInstance

The CreateInstance method creates a new instance of this object.

Syntax

static CUnknown * WINAPI CreateInstance(
    LPUNKNOWN pUnk,
    HRESULT *phr
);

Parameters

pUnk

Pointer to the aggregating IUnknown interface.

phr

Pointer to a variable that receives an HRESULT value indicating the success or failure of the method.

Return Value

Returns a pointer to a new instance of this object.

Remarks

The class factory calls this method to create the object.

See Also

CSystemClock Class

CFactoryTemplate::CreateInstance

How to Create a DLL