Partager via


CSystemClock::CreateInstance

 
Microsoft DirectShow 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.

Requirements

**  Header:** Declared in Sysclock.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

Remarks

The class factory calls this method to create the object.

See Also

CSystemClock Class

CFactoryTemplate::CreateInstance

How to Create a DLL