Compartilhar via


IDebugMessageEvent2::GetMessage

Gets the message to be displayed.

HRESULT GetMessage( 
   MESSAGETYPE* pMessageType,
   BSTR*        pbstrMessage,
   DWORD*       pdwType,
   BSTR*        pbstrHelpFileName,
   DWORD*       pdwHelpId
);
int GetMessage( 
   out enum_MESSAGETYPE pMessageType,
   out string           pbstrMessage,
   out uint             pdwType,
   out string           pbstrHelpFileName,
   out uint             dwHelpId
);

Parameters

  • pMessageType
    [out] Returns a value from the MESSAGETYPE enumeration that describes the type of the message.

  • pbstrMessage
    [out] Returns the message.

  • pdwType
    [out] Returns the type of the message, using the conventions of the Win32 MessageBox function. See the AfxMessageBox function for details.

  • pbstrHelpFileName
    [in, out] Returns the help file name. May be a null (C++) or empty (C#) value if there is no help file.

  • pdwHelpId
    [in, out] Returns the help identifier. May be 0 if there is no help associated with this message.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

See Also

Reference

IDebugMessageEvent2

MESSAGETYPE

AfxMessageBox