Microsoft DirectX 8.0 (Visual Basic)

DirectPlay8Peer.RegisterMessageHandler

Registers an entry point in the client's code that receives the messages from the DirectPlay8Peer class. Call this method before calling any other methods of this class.

RegisterMessageHandler(event As DirectPlay8Event)

Parts

event
DirectPlay8Event object that will receive the messages generated by the client and server.

Error Codes

If the method fails, Err.Number can be set to the following value.

DPNERR_ALREADYREGISTERED

Remarks

If you want to register a new message handler, you must first call DirectPlay8Peer.UnRegisterMessageHandler to unregister the current message handler.