DirectX SDK |
The DirectPlayMessage.MoveToSecureMessage moves the read pointer to the beginning of the message data in a secure message.
object.MoveToSecureMessage()
If the method fails, an error is raised and Err.Number will be set.
A secure system message consists of a Long for the message type (DPSYS_SECUREMESSAGE), a Long for the flags, a Long for the ID of the player who originated the message, and then a pointer to the message data. The MoveToSecureMessage method moves the read pointer to the start of the data so that an application can parse it by using other methods such as DirectPlayMessage.ReadLong.