Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8LobbyClient.GetLocalProgram

Enumerates the specified lobbied application that is registered on the system. Before calling this method, call DirectPlay8LobbyClient.GetCountLocalPrograms to see how many lobbied applications are registered.

GetLocalProgram(lProgID As Long) As DPL_APPLICATION_INFO

Parts

lProgID
Long value specifying the ID of the lobbied application to enumerate.

Return Values

Returns a DPL_APPLICATION_INFO type that describes the lobbied application.

Error Codes

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

DPNERR_INVALIDFLAGS
DPNERR_INVALIDPARAM

Remarks

This method is generally called twice—once to obtain the size of the required buffer, and then with the correct buffer size.