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.

75 lines
4.0 KiB

  1. #ifndef WTSINFO_H
  2. #define WTSINFO_H
  3. // Windows Terminal Server Information
  4. typedef struct EaWtsUserInfo
  5. {
  6. DWORD inheritInitialProgram;
  7. DWORD allowLogonTerminalServer;
  8. DWORD timeoutSettingsConnections; // in ms
  9. DWORD timeoutSettingsDisconnections; // in ms
  10. DWORD timeoutSettingsIdle;
  11. DWORD deviceClientDrives; // Citrix ICA clients only
  12. DWORD deviceClientPrinters; // RDP 5.0 clients & Citrix ICA Clients
  13. DWORD deviceClientDefaultPrinter; // RDP 5.0 clients & Citrix ICA clients
  14. DWORD brokenTimeoutSettings;
  15. DWORD reconnectSettings;
  16. DWORD modemCallbackSettings; // Citrix ICA clients only
  17. DWORD shadowingSettings; // RDP 5.0 & Citrix clients
  18. DWORD terminalServerRemoteHomeDir;
  19. UCHAR initialProgram[LEN_Path];
  20. UCHAR workingDirectory[LEN_Path];
  21. UCHAR modemCallbackPhoneNumber[LEN_WTSPhoneNumber]; // Citrix ICA clients only
  22. UCHAR terminalServerProfilePath[LEN_Path];
  23. UCHAR terminalServerHomeDir[LEN_Path];
  24. UCHAR terminalServerHomeDirDrive[LEN_HomeDir];
  25. } EaWtsUserInfo;
  26. // Flags for WTS Info.
  27. #define FM_WtsUser_inheritInitialProgram (0x00000001)
  28. #define FM_WtsUser_allowLogonTerminalServer (0x00000002)
  29. #define FM_WtsUser_timeoutSettingsConnections (0x00000004)
  30. #define FM_WtsUser_timeoutSettingsDisconnections (0x00000008)
  31. #define FM_WtsUser_timeoutSettingsIdle (0x00000010)
  32. #define FM_WtsUser_deviceClientDrives (0x00000020)
  33. #define FM_WtsUser_deviceClientPrinters (0x00000040)
  34. #define FM_WtsUser_deviceClientDefaultPrinter (0x00000080)
  35. #define FM_WtsUser_brokenTimeoutSettings (0x00000100)
  36. #define FM_WtsUser_reconnectSettings (0x00000200)
  37. #define FM_WtsUser_modemCallbackSettings (0x00000400)
  38. #define FM_WtsUser_shadowingSettings (0x00000800)
  39. #define FM_WtsUser_terminalServerRemoteHomeDir (0x00001000)
  40. #define FM_WtsUser_initialProgram (0x00002000)
  41. #define FM_WtsUser_workingDirectory (0x00004000)
  42. #define FM_WtsUser_modemCallbackPhoneNumber (0x00008000)
  43. #define FM_WtsUser_terminalServerProfilePath (0x00010000)
  44. #define FM_WtsUser_terminalServerHomeDir (0x00020000)
  45. #define FM_WtsUser_terminalServerHomeDirDrive (0x00040000)
  46. #define FM_WtsUserAll (WtsInheritInitialProgram | \
  47. WtsAllowLogonTerminalServer | \
  48. WtsTimeoutSettingsConnections | \
  49. WtsTimeoutSettingsIdle | \
  50. WtsDeviceClientDrives | \
  51. WtsDeviceClientPrinters | \
  52. WtsDeviceClientDefaultPrinter | \
  53. WtsBrokenTimeoutSettings | \
  54. WtsReconnectSettings | \
  55. WtsModemCallbackSettings | \
  56. WtsShadowingSettings | \
  57. WtsTerminalServerRemoteHomeDir | \
  58. WtsInitialProgram | \
  59. WtsWorkingDirectory | \
  60. WtsModemCallbackPhoneNumber | \
  61. WtsTerminalServerProfilePath | \
  62. WtsTerminalServerHomeDir | \
  63. WtsTerminalServerHomeDirDrive )
  64. #define FM_WtsUserCitrixOnly ( WtsDeviceClientDrives | \
  65. WtsModemCallbackSettings | \
  66. WtsModemCallbackPhoneNumber )
  67. #define FM_WtsUserRDP5AndCitrix ( WtsDeviceClientPrinters | \
  68. WtsDeviceClientDefaultPrinter | \
  69. WtsShadowingSettings )
  70. #endif