Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


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

© 2015 Microsoft