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.

67 lines
2.4 KiB

  1. #include "regapi.h"
  2. //
  3. // Registry locations where the remote assistance control panel settings go
  4. //
  5. #define REG_KEY_REMOTEASSISTANCE REG_CONTROL_GETHELP
  6. //
  7. // Registry locations where the remote assistance group policy settings go
  8. //
  9. #define REG_KEY_REMOTEASSISTANCE_GP TS_POLICY_SUB_TREE
  10. //
  11. // Remote Assistance Mode
  12. //
  13. #define REG_VALUE_MODE POLICY_TS_REMDSK_ALLOWTOGETHELP
  14. #define REG_DWORD_RA_DISABLED 0 // No Help
  15. #define REG_DWORD_RA_NORC 1 // No Remote Control
  16. #define REG_DWORD_RA_SHADOWONLY 2 // View only
  17. #define REG_DWORD_RA_ENABLED 3 // Full control
  18. #define REG_DWORD_RA_DEFAULTMODE REG_DWORD_RA_ENABLED
  19. //
  20. // Maximum Ticket Timeout
  21. //
  22. #define REG_VALUE_MAX_TICKET _T("TicketTimeout")
  23. #define REG_DWORD_RA_TIMEOUT_MIN 1
  24. #define REG_DWORD_RA_TIMEOUT_MAX (30 * 24 * REG_DWORD_RA_TIMEOUT_MIN)
  25. #define REG_DWORD_RA_DEFAULT_TIMEOUT REG_DWORD_RA_TIMEOUT_MIN
  26. INT_PTR RemoteAssistanceProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  27. //
  28. // Value Names
  29. //
  30. #define RA_CTL_RA_ENABLE TEXT("fAllowToGetHelp")
  31. #define RA_CTL_ALLOW_UNSOLICITED TEXT("fAllowUnsolicited")
  32. #define RA_CTL_ALLOW_UNSOLICITEDFULLCONTROL TEXT("fAllowUnsolicitedFullControl")
  33. #define RA_CTL_ALLOW_FULLCONTROL TEXT("fAllowFullControl")
  34. #define RA_CTL_ALLOW_BUDDYHELP TEXT("fAllowBuddyHelp")
  35. #define RA_CTL_TICKET_EXPIRY TEXT("MaxTicketExpiry") // in seconds
  36. #define RA_CTL_TICKET_EXPIRY_UNIT TEXT("MaxTicketExpiryUnits")
  37. #define RA_CTL_COMBO_NUMBER RA_CTL_TICKET_EXPIRY
  38. #define RA_CTL_COMBO_UNIT RA_CTL_TICKET_EXPIRY_UNIT
  39. #define RA_CTL_RA_MODE TEXT("fAllowRemoteAssistance")
  40. // Default value
  41. #define RA_CTL_RA_ENABLE_DEF_VALUE 0 // If it's missing, it's OFF.
  42. #define RA_CTL_ALLOW_UNSOLICITED_DEF_VALUE 0
  43. #define RA_CTL_ALLOW_UNSOLICITEDFULLCONTROL_DEF_VALUE 0
  44. #define RA_CTL_ALLOW_BUDDYHELP_DEF_VALUE 1
  45. #define RA_CTL_ALLOW_FULLCONTROL_DEF_VALUE 1
  46. #define RA_CTL_COMBO_NUMBER_DEF_VALUE 30 // 30
  47. #define RA_CTL_COMBO_UNIT_DEF_VALUE 2 // day
  48. #define RA_CTL_TICKET_EXPIRY_DEF_VALUE 30 * 24 *60 * 60 // seconds of 30 days
  49. // Default combo control index.
  50. #define RA_IDX_DAY 2
  51. #define RA_IDX_HOUR 1
  52. #define RA_IDX_MIN 0
  53. #define RA_MAX_DAYS 30