Microsoft DirectX 8.0 (Visual Basic) |
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)
If the method fails, Err.Number can be set to the following value.
DPNERR_ALREADYREGISTERED |
If you want to register a new message handler, you must first call DirectPlay8Peer.UnRegisterMessageHandler to unregister the current message handler.