Leaked source code of windows server 2003
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.

148 lines
4.3 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1999, 2000 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: dpnsdef.cpp
  6. * Content: DirectPlay8 Server Definitions
  7. *
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 03/14/00 rodtoll Created it
  12. * 03/23/00 rodtoll Updated to match new data structure and add new GUID
  13. * 03/25/00 rodtoll Changed status format to support N provider
  14. * rodtoll New GUID for mutex guarding status
  15. ***************************************************************************/
  16. #ifndef __DPNSDEF_H
  17. #define __DPNSDEF_H
  18. // STRING_GUID_DPNSVR_STATUS_MEMORY - Name of shared memory location used to
  19. // write data on current status to.
  20. #define STRING_GUID_DPNSVR_STATUS_MEMORY _T("{A7B81E49-A7DD-4066-A970-E07C67D8DFB1}")
  21. DEFINE_GUID(GUID_DPNSVR_STATUS_MEMORY,
  22. 0xa7b81e49, 0xa7dd, 0x4066, 0xa9, 0x70, 0xe0, 0x7c, 0x67, 0xd8, 0xdf, 0xb1);
  23. // STRING_GUID_DPNSVR_TABLE_MEMBORY - Name of shared memory location used to
  24. // write table to.
  25. //
  26. #define STRING_GUID_DPNSVR_TABLE_MEMORY _T("{733A46D6-B5DB-47e7-AE67-464577CD687C}")
  27. DEFINE_GUID(GUID_DPNSVR_TABLE_MEMORY,
  28. 0x733a46d6, 0xb5db, 0x47e7, 0xae, 0x67, 0x46, 0x45, 0x77, 0xcd, 0x68, 0x7c);
  29. // STRING_GUID_DPNSVR_STATUSSTORAGE
  30. //
  31. // Mutex protecting status storage
  32. //
  33. #define STRING_GUID_DPNSVR_STATUSSTORAGE _T("{9F84FFA4-680E-48d8-9DBA-4AA8591AB8E3}")
  34. DEFINE_GUID(GUID_DPNSVR_STATUSSTORAGE,
  35. 0x9f84ffa4, 0x680e, 0x48d8, 0x9d, 0xba, 0x4a, 0xa8, 0x59, 0x1a, 0xb8, 0xe3);
  36. // STRING_GUID_DPSVR_TABLESTORAGE -
  37. //
  38. // Mutex protecting table storage
  39. #define STRING_GUID_DPNSVR_TABLESTORAGE _T("{23AD69B4-E81C-4292-ABD4-2EAF9A262E91}")
  40. DEFINE_GUID(GUID_DPNSVR_TABLESTORAGE,
  41. 0x23ad69b4, 0xe81c, 0x4292, 0xab, 0xd4, 0x2e, 0xaf, 0x9a, 0x26, 0x2e, 0x91);
  42. // STRING_GUID_DPNSVR_QUEUE -
  43. //
  44. // Queue name for IPC server queue
  45. #define STRING_GUID_DPNSVR_QUEUE _T("{CCD83B99-7091-43df-A062-7EC62A66207A}")
  46. DEFINE_GUID(GUID_DPNSVR_QUEUE,
  47. 0xccd83b99, 0x7091, 0x43df, 0xa0, 0x62, 0x7e, 0xc6, 0x2a, 0x66, 0x20, 0x7a);
  48. // STRING_GUID_DPNSVR_RUNNING
  49. //
  50. // Used for name of event that determines if it's running
  51. #define STRING_GUID_DPNSVR_RUNNING _T("{D8CF6BF0-3CFA-4e4c-BA39-40A1E7AFBCD7}")
  52. DEFINE_GUID(GUID_DPNSVR_RUNNING,
  53. 0xd8cf6bf0, 0x3cfa, 0x4e4c, 0xba, 0x39, 0x40, 0xa1, 0xe7, 0xaf, 0xbc, 0xd7);
  54. // STRING_GUID_DPNSVR_STARTUP
  55. //
  56. // Name of manual reset event that is signalled once server has started;
  57. //
  58. #define STRING_GUID_DPNSVR_STARTUP _T("{0CBA5850-FD98-4cf8-AC49-FC3ED287ACF1}")
  59. DEFINE_GUID(GUID_DPNSVR_STARTUP,
  60. 0xcba5850, 0xfd98, 0x4cf8, 0xac, 0x49, 0xfc, 0x3e, 0xd2, 0x87, 0xac, 0xf1);
  61. typedef UNALIGNED struct _DPNSVR_STATUSHEADER
  62. {
  63. DWORD dwStartTime;
  64. DWORD dwSPCount;
  65. } DPNSVR_STATUSHEADER;
  66. typedef UNALIGNED struct _DPNSVR_SPSTATUS
  67. {
  68. GUID guidSP;
  69. DWORD dwNumListens;
  70. long lConnectCount;
  71. long lDisconnectCount;
  72. long lEnumQueryCount;
  73. long lEnumResponseCount;
  74. long lDataCount;
  75. } DPNSVR_SPSTATUS;
  76. // DPNSVR TABLE
  77. //
  78. // The following structures are used for dumping the current contents of
  79. // the port / application structure table.
  80. //
  81. // The table format in memory is as follows:
  82. //
  83. // [TABLEHEADER]
  84. // [SERVPROV(1)]
  85. // [LISTEN(SP1,1)]
  86. // [APP(SP1,L1,1)]
  87. // [APP(SP1,L1,2)]
  88. // [LISTEN(SP1,2)]
  89. // [APP(SP1,L2,1)]
  90. // [SERVPROV(2)]
  91. // [LISTEN(SP2,1)]
  92. // [APP(SP2,L1,1)]
  93. // [LISTEN(SP2,2)]
  94. // [APP(SP2,L2,1)]
  95. // [APP(SP2,L2,2)]
  96. // [URL(SP2,L2,A2)][URL(SP2,L2,A1)][URL(SP2,L1,A1)][URL(SP1,L2,A1)][URL(SP1,L1,A2)][URL(SP1,L1,A1)]
  97. //
  98. typedef UNALIGNED struct _DPNSVR_TABLEHEADER
  99. {
  100. DWORD dwTableSize;
  101. DWORD dwSPCount;
  102. } DPNSVR_TABLEHEADER;
  103. typedef UNALIGNED struct _DPNSVR_TABLESPENTRY
  104. {
  105. GUID guidSP;
  106. DWORD dwListenCount;
  107. } DPNSVR_TABLESPENTRY;
  108. typedef UNALIGNED struct _DPNSVR_TABLELISTENENTRY
  109. {
  110. GUID guidDevice;
  111. DWORD dwAppCount;
  112. } DPNSVR_TABLELISTENENTRY;
  113. typedef UNALIGNED struct _DPNSVR_TABLEAPPENTRY
  114. {
  115. GUID guidApplication;
  116. GUID guidInstance;
  117. DWORD dwURLOffset;
  118. } DPNSVR_TABLEAPPENTRY;
  119. #define DPNSVR_TIMEOUT_REQUEST 3000
  120. #define DPNSVR_TIMEOUT_RESULT 3000
  121. #endif // __DPNSDEF_H