Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
4.3 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 2000 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: DPLobbyInt.h
  6. * Content: DirectPlay Lobby Internal Header File
  7. *@@BEGIN_MSINTERNAL
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 02/21/00 mjn Created
  12. * 04/18/2000 rmt Added object param validation flag
  13. * 07/08/2000 rmt Bug #38725 - Need to provide method to detect if app was lobby launched
  14. * rmt Bug #38757 - Callback messages for connections may return AFTER WaitForConnection returns
  15. * rmt Bug #38755 - No way to specify player name in Connection Settings
  16. * rmt Bug #38758 - DPLOBBY8.H has incorrect comments
  17. * rmt Bug #38783 - pvUserApplicationContext is only partially implemented
  18. * rmt Added DPLHANDLE_ALLCONNECTIONS and dwFlags (reserved field to couple of funcs).
  19. * rmt Added signature bytes
  20. * 02/06/2001 rodtoll WINBUG #293871: DPLOBBY8: [IA64] Lobby launching a 64-bit
  21. * app from 64-bit lobby launcher crashes with unaligned memory error.
  22. * 06/16/2001 rodtoll WINBUG #416983 - RC1: World has full control to HKLM\Software\Microsoft\DirectPlay\Applications on Personal
  23. * Implementing mirror of keys into HKCU. Algorithm is now:
  24. * - Read of entries tries HKCU first, then HKLM
  25. * - Enum of entires is combination of HKCU and HKLM entries with duplicates removed. HKCU takes priority.
  26. * - Write of entries is HKLM and HKCU. (HKLM may fail, but is ignored).
  27. *@@END_MSINTERNAL
  28. *
  29. ***************************************************************************/
  30. #ifndef __DPLOBBYINT_H__
  31. #define __DPLOBBYINT_H__
  32. //**********************************************************************
  33. // Constant definitions
  34. //**********************************************************************
  35. #define TRY _try
  36. #define EXCEPT(a) _except( a )
  37. #define BREAKPOINT _asm { int 3 }
  38. #define DPL_MSGQ_TIMEOUT_IDLE 1000
  39. #define DPL_OBJECT_FLAG_LOBBIEDAPPLICATION 0x0001
  40. #define DPL_OBJECT_FLAG_LOBBYCLIENT 0x0002
  41. #define DPL_OBJECT_FLAG_PARAMVALIDATION 0x0004
  42. #define DPL_OBJECT_FLAG_MULTICONNECT 0x0008
  43. #define DPL_OBJECT_FLAG_LOOKINGFORLOBBYLAUNCH 0x0010
  44. #define DPL_ID_STR_W L"DPLID="
  45. #define DPL_ID_STR_A "DPLID="
  46. #define DPL_NUM_APP_HANDLES 16
  47. #define DPL_REGISTRY_READ_ACCESS (READ_CONTROL | KEY_QUERY_VALUE | KEY_ENUMERATE_SUB_KEYS)
  48. //**********************************************************************
  49. // Macro definitions
  50. //**********************************************************************
  51. //**********************************************************************
  52. // Structure definitions
  53. //**********************************************************************
  54. // Forward declarations
  55. class CMessageQueue;
  56. #define DPLSIGNATURE_LOBBYOBJECT 'BOLL'
  57. #define DPLSIGNATURE_LOBBYOBJECT_FREE 'BOL_'
  58. typedef struct _DIRECTPLAYLOBBYOBJECT
  59. {
  60. DWORD dwSignature; // Signature
  61. PVOID pvUserContext;
  62. DWORD dwFlags;
  63. DWORD dwPID; // PID of this process
  64. CMessageQueue *pReceiveQueue;
  65. HANDLESTRUCT hsHandles; // Handles
  66. PFNDPNMESSAGEHANDLER pfnMessageHandler;
  67. HANDLE hReceiveThread; // Handle to receive Msg Handler thread
  68. HANDLE hConnectEvent; // Connection Event
  69. HANDLE hLobbyLaunchConnectEvent; // Set if a lobby launch connection was succesful
  70. LONG lLaunchCount; // Number of application launches
  71. BOOL bIsUnicodePlatform; // Unicode (WinNT) or not (Win9x)
  72. DPNHANDLE *phHandleBuffer; // Buffer of handles for idle process exit check
  73. DWORD dwHandleBufferSize;
  74. DPNHANDLE dpnhLaunchedConnection; // Launched connection
  75. } DIRECTPLAYLOBBYOBJECT, *PDIRECTPLAYLOBBYOBJECT;
  76. typedef struct _DPL_SHARED_CONNECT_BLOCK
  77. {
  78. DWORD dwPID;
  79. } DPL_SHARED_CONNECT_BLOCK, *PDPL_SHARED_CONNECT_BLOCK;
  80. //**********************************************************************
  81. // Variable definitions
  82. //**********************************************************************
  83. //extern DWORD DnOsPlatformId;
  84. //**********************************************************************
  85. // Function prototypes
  86. //**********************************************************************
  87. #endif // __DPLOBBYINT_H__