EnumSessionsCallback

BOOL EnumSessionsCallback(LPDPSESSIONDESC lpDPSGameDesc,

LPVOID lpContext, LPDWORD lpdwTimeOut,

DWORD dwFlags);

Application-defined callback procedure for the IDirectPlay::EnumSessions method.

·Returns TRUE to continue the enumeration or FALSE to stop it.

lpDPSGameDesc

Address for a DPSESSIONDESC structure describing the enumerated session. This parameter will be set to NULL if the enumeration has timed out.

lpContext

Address for a caller-defined context.

lpdwTimeOut

Address for a doubleword containing the current time-out value. This can be reset if you feel that some sessions have yet to respond.

dwFlags

Specifies the optional control flag.

DPESC_TIMEDOUT

The enumeration has timed out. Reset lpdwTimeOut and return TRUE to continue, or FALSE to stop the enumeration.