Index   Commented   Search   About

DllGetClassObject

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)

Parameters

rclsid

Class identifier of the file or stream handler.

riid

Interface identifier of the file or stream handler.

ppv

Address returned for the object of the interface query. If the interface specified in riid is not supported by the object, S_FALSE is returned and the ppvObj parameter used in the IUnknown interface must be set to NULL.

Return Values

Returns a handle of an instance of the file or stream handler.

Remarks

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.

See Also

IUnknown

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder

More Online Helps

Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun