Jenkins Software

Games for Windows Live Lobby

Support matchmaking with common code to the 360

Games for Windows Live provides a set of functions for Windows that are nearly identical to the lobby functions for the 360. In fact, with a few minor changes enabled by the GFWL define, RakNet uses the same code on both platforms.

Everything is identical to xbox360lobby.html, with the following changes:

  1. Call XLiveInitialize before Client_Login
  2. Add this code:
    // Use PeekMessage() so we can use idle time to render the scene.
    if( PeekMessage( &msg, NULL, 0U, 0U, PM_REMOVE ) != 0 ) {
    if( FALSE == XLivePreTranslateMessage( &msg ) ) {
    // continue processing the message as XLivePreTranslateMessage
    // did not consume it.
    TranslateMessage( &msg );
    DispatchMessage( &msg );
  3. Call XLiveUnInitialize after shutdown
  4. Define GFWL in your preprocessor settings
See Also

XBOX 360 Lobby