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.

61 lines
1.5 KiB

  1. /*************************************************************************
  2. *
  3. * cxmsgsvc.h
  4. *
  5. * This header file supports the Terminal Server WinStation extensions to the
  6. * main network message service.
  7. *
  8. * This interface allows qualifying information to be sent to the extended
  9. * message service to support directing messages to specific users.
  10. *
  11. * Copyright Microsoft Corporation, 1998
  12. *
  13. *
  14. *
  15. *************************************************************************/
  16. //
  17. // Define WinStation control port name
  18. //
  19. #define CTX_MSGSVC_PORT_NAME L"\\CtxMsgSvcQualifier"
  20. #define CTX_MSGSVC_VERSION 1
  21. #define MSGSVC_NAME_LENGTH 16 // NETBIOS_NAME_LENGTH
  22. //
  23. // This is the ConnectInfo structure passed at NtConnectPort() time
  24. // so that the server can verify our access rights.
  25. //
  26. typedef struct _CTX_MSGSVC_CONNECT_INFO {
  27. ULONG Version;
  28. NTSTATUS AcceptStatus;
  29. } CTX_MSGSVC_CONNECT_INFO, *PCTX_MSGSVC_CONNECT_INFO;
  30. typedef struct _PRINT_QUALIFY_MSG {
  31. WCHAR PrintServerName[MSGSVC_NAME_LENGTH];
  32. WCHAR UserName[MSGSVC_NAME_LENGTH];
  33. ULONG PrintJobId;
  34. } PRINT_QUALIFY_MSG;
  35. typedef struct _CTX_MSGSVC_APIMSG {
  36. PORT_MESSAGE h;
  37. ULONG MessageId;
  38. ULONG ApiNumber;
  39. NTSTATUS ReturnedStatus;
  40. union {
  41. PRINT_QUALIFY_MSG Print;
  42. // Add additional messages here in the future
  43. } u;
  44. } CTX_MSGSVC_APIMSG, *PCTX_MSGSVC_APIMSG;
  45. //
  46. // Command message types
  47. //
  48. #define PRINT_QUALIFY 1
  49. // Add additional here
  50. #define CTX_MSGSVC_MAX_API_NUMBER PRINT_QUALIFY+1
  51.