Microsoft Windows CE 3.0  

CSystemClock::CreateInstance

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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 HRESULTvalue 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 phrparameter 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 HRESULTerror is detected.