CSystemClock::CreateInstance
Creates a new instance when placed in the factory template table.
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 Values
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 will be modified only if a failure occurs. If it is a failure code on input, construction can be terminated, but in any case the destructor will be called by the creator when the HRESULT error is detected.
Requirements
DirectShow applications and DirectShow filters have different include file and link library requirements. See Setting Up the Build Environment for more information.
OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:
Last updated on Wednesday, April 13, 2005
© 2005 Microsoft Corporation. All rights reserved.