The document is archived and information here might be outdated


Gets the primary dispatch interface ID.

virtual BOOL GetDispatchIID( 
   IID* pIID  


A pointer to an interface ID (a GUID).

TRUE if successful, otherwise FALSE. If successful, *pIID is set to the primary dispatch interface ID.

Derived classes should override this member function (if not overridden, GetDispatchIID returns FALSE). See COleControl.

For more information, see Knowledge Base article Q185720, "HOWTO: Provide Type Information From an MFC Automation Server." Knowledge Base articles are available in the MSDN Library Visual Studio documentation or at

Header: afxwin.h

© 2016 Microsoft