Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8LobbiedApplication.RegisterProgram

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)

Parts

ProgramDesc
DPL_PROGRAM_DESC type that describes the lobby-aware application to register.
lFlags
Reserved. Must be 0.

Error Codes

If the method fails, Err.Number can be set to one of the following values.

DPNERR_INVALIDFLAGS
DPNERR_INVALIDPARAM

Remarks

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.1, 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 later versions of DirectPlay.