Partager via


CSystemClock::CreateInstance (Compact 2013)

3/26/2014

Creates a new instance when placed in the factory template table.

Syntax

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

Parameters

  • pUnk
    Pointer to LPUNKNOWN.
  • phr
    Pointer to an HRESULT value in which to return resulting information.

Return Value

Returns a pointer to a new Component Object Model (COM) object.

Remarks

This member function is required to create objects using the class factory. It calls the class constructor.

The phr parameter is modified only if a failure occurs. If it is a failure code on input, construction can be terminated, but the destructor is called by the creator when the HRESULT error is detected.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CSystemClock Class