Microsoft DirectX 8.0 (Visual Basic) |
Registers a lobby-aware application with Microsoft® DirectPlay®. Applications must be registered to enable lobby launching.
RegisterProgram( _ ProgramDesc As DPL_PROGRAM_DESC, _ lFlags As Long)
If the method fails, Err.Number can be set to one of the following values.
DPNERR_INVALIDFLAGS |
DPNERR_INVALIDPARAM |
The application needs to register only once. It should be unregistered with a call to the DirectPlay8LobbiedApplication.UnRegisterProgram method when it is uninstalled. If a lobby client tries to launch an application that no longer exists on the system, DirectPlay automatically unregisters the application.
In DirectX® 8.0, RegisterProgram must be used. You cannot manually place application information into the registry. Failure to use this class makes your application nonportable and incompatible with future versions of DirectPlay.