|Microsoft DirectX 9.0|
The CreateInstance method calls the object-creation function for the class.
CUnknown *CreateInstance( LPUNKNOWN pUnk, HRESULT *phr );
Pointer to the aggregating IUnknown interface.
Pointer to a variable that receives an HRESULT value indicating the success or failure of the method.
Returns an instance of the class object.
The IClassFactory::CreateInstance method calls this class method. This method calls the function pointed to by the CFactoryTemplate::m_lpfnNew member variable.