GetNextMessage

Get the next message of this event according to the internal iterator.
Before starting enumeration of message strings call GetFirstMessage
After adding or removing message strings you must restart enumeration by calling GetFirstMessage

 

HRESULT GetNextMessage([out] BSTR*
message, [out, retval] long* langId);

Parameters

message

[out] pointer to a BSTR variable to store the next message associated with this event.

langId

[out, retval] pointer to a long variable to store the lang Id of the returned message.

Return Values

S_OK

message contains the next name of this event.

S_FALSE

The event does not have further messages. *message is set to NULL.

E_POINTER

message was no valid pointer

E_ACCESSDENIED

The object is locked due to an asynchronous operation