The DllGetClassObject function is the entry point used by C+ + file and stream handlers to create an instance of the handler.
STDAPI DllGetClassObject(
const CLSID & rclsid,
const IID & riid,
void ** ppv)
Returns a handle of an instance of the file or stream handler.
DllGetClassObject is the only export function your DLL needs. The OLE component object DLL calls this function to obtain an instance of the stream- or file-handler interface.
Your file or stream handler should ensure that the system requests the correct class identifier before creating an instance of it.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in objbase.h.
Import Library: Included as a resource in ole32.dll.
Custom File and Stream Handlers Overview, Custom File and Stream Handler Functions, IUnknown