Platform SDK: DirectX

DirectPlayMessage.MoveToTop

The DirectPlayMessage.MoveToTop method moves the read pointer to the beginning of the message data.

object.MoveToTop()

Parameters

object
Object expression that resolves to a DirectPlayMessage object.

Error Codes

If the method fails, an error is raised and Err.Number will be set.

Remarks

Each time an element of message data is retrieved by using one of the DirectPlayMessage.ReadX methods, the read pointer is advanced. MoveToTop allows you to start reading the message again from the beginning.