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.

73 lines
1.4 KiB

  1. #ifndef _PIPEMSG_
  2. #define _PIPEMSG_
  3. #include <lm.h>
  4. #include <nbgparms.h>
  5. #include <srvauth.h>
  6. #define RASIPCNAME "\\\\.\\pipe\\RAS_SERVICE_IPC_READ"
  7. typedef enum _PIPE_MESSAGE_ID
  8. {
  9. START_GATEWAY,
  10. PROJECT_CLIENT,
  11. START_CLIENT,
  12. STOP_CLIENT,
  13. SWITCH_PORTS,
  14. TERMINATE
  15. } PIPE_MESSAGE_ID, *PPIPE_MESSAGE_ID;
  16. typedef struct _PIPE_MSG_START_GATEWAY
  17. {
  18. DWORD MaxClients;
  19. NB_REG_PARMS RegParms;
  20. UCHAR LanNet[MAX_LAN_NETS]; // array of lana nums for the lan nets
  21. HANDLE hLogFile;
  22. } PIPE_MSG_START_GATEWAY, *PPIPE_MSG_START_GATEWAY;
  23. typedef struct _PIPE_MSG_PROJECT_CLIENT
  24. {
  25. HPORT hPort;
  26. CHAR PortName[MAX_PORT_NAME];
  27. NBFCP_SERVER_CONFIGURATION ServerConfig;
  28. } PIPE_MSG_PROJECT_CLIENT, *PPIPE_MSG_PROJECT_CLIENT;
  29. typedef struct _PIPE_MSG_START_CLIENT
  30. {
  31. HPORT hPort;
  32. UCHAR lana;
  33. CHAR UserName[UNLEN + 1];
  34. } PIPE_MSG_START_CLIENT, *PPIPE_MSG_START_CLIENT;
  35. typedef struct _PIPE_MSG_STOP_CLIENT
  36. {
  37. HPORT hPort;
  38. } PIPE_MSG_STOP_CLIENT, *PPIPE_MSG_STOP_CLIENT;
  39. //
  40. // No info needed for REMOTE_LISTEN and TERMINATE messages
  41. //
  42. typedef struct _PIPE_MESSAGE
  43. {
  44. PIPE_MESSAGE_ID MsgId;
  45. union Msg
  46. {
  47. PIPE_MSG_START_GATEWAY StartGateway;
  48. PIPE_MSG_PROJECT_CLIENT ProjectClient;
  49. PIPE_MSG_START_CLIENT StartClient;
  50. PIPE_MSG_STOP_CLIENT StopClient;
  51. // PIPE_MSG_REMOTE_LISTEN RemoteListen;
  52. // PIPE_MSG_TERMINATE Terminate;
  53. };
  54. } PIPE_MESSAGE, *PPIPE_MESSAGE;
  55. #endif