DirectX SDK

DirectPlay4.CreateMessage

The DirectPlay4.CreateMessage method creates a message object, which can be packed with data and sent.

object.CreateMessage() As DirectPlayMessage

Parameters

object
Object expression that resolves to a DirectPlay4 object.

Return Values

If it succeeds, the method returns a DirectPlayMessage object.

Error Codes

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

See Also

DirectPlay4.Send