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.

71 lines
2.2 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1999, 2000 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: dpnsvmsg.h
  6. * Content: DirectPlay8 Server Object Messages
  7. * Definitions of DPNSVR <--> DirectPlay8 Applications
  8. *
  9. * History:
  10. * Date By Reason
  11. * ==== == ======
  12. * 03/20/00 rodtoll Created it
  13. * 03/23/00 rodtoll Removed port entries -- no longer needed
  14. * 03/24/00 rodtoll Updated, only sending one entry per message
  15. * rodtoll Removed SP field, can be extracted from URL
  16. ***************************************************************************/
  17. #ifndef __DPNSVMSG_H
  18. #define __DPNSVMSG_H
  19. // DirectPlay8 Server Message IDs
  20. #define DPNSVR_MSGID_OPENPORT 0x01
  21. #define DPNSVR_MSGID_CLOSEPORT 0x02
  22. #define DPNSVR_MSGID_RESULT 0x03
  23. #define DPNSVR_MSGID_COMMAND 0x04
  24. #define DPNSVR_COMMAND_STATUS 0x01
  25. #define DPNSVR_COMMAND_KILL 0x02
  26. #define DPNSVR_COMMAND_TABLE 0x03
  27. typedef struct _DPNSVR_MSG_HEADER
  28. {
  29. DWORD dwType;
  30. DWORD dwCommandContext;
  31. GUID guidInstance;
  32. } DPNSVR_MSG_HEADER;
  33. // DirectPlay8 Server Message Structures
  34. typedef struct _DPNSVR_MSG_OPENPORT
  35. {
  36. DPNSVR_MSG_HEADER Header;
  37. DWORD dwProcessID; // Process ID of requesting process
  38. GUID guidSP;
  39. GUID guidApplication; // Application GUID of app requesting open
  40. DWORD dwAddressSize; // # of addresses after this header in the message
  41. } DPNSVR_MSG_OPENPORT;
  42. typedef struct _DPNSVR_MSG_CLOSEPORT
  43. {
  44. DPNSVR_MSG_HEADER Header;
  45. DWORD dwProcessID; // Process ID of requesting process
  46. GUID guidSP;
  47. GUID guidApplication; // Application GUID of app requesting close
  48. } DPNSVR_MSG_CLOSEPORT;
  49. typedef struct _DPNSVR_MSG_COMMAND
  50. {
  51. DPNSVR_MSG_HEADER Header;
  52. DWORD dwCommand; // = DPNSVCOMMAND_XXXXXXXX
  53. DWORD dwParam1;
  54. DWORD dwParam2;
  55. } DPNSVR_MSG_COMMAND;
  56. typedef struct _DPNSVR_MSG_RESULT
  57. {
  58. DWORD dwType; // = DPNSVMSGID_RESULT
  59. DWORD dwCommandContext; // User supplied context
  60. HRESULT hrCommandResult; // Result of command
  61. } DPNSVR_MSG_RESULT;
  62. #endif // __DPNSVMSG_H