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.

131 lines
2.7 KiB

  1. /*++
  2. Copyright (c) 1999-2000 Microsoft Corporation
  3. Module Name:
  4. tsremdsk.h
  5. Abstract:
  6. Prototype for Salem related encryption function
  7. Author:
  8. HueiWang 4/26/2000
  9. --*/
  10. #ifndef __TSREMDSK_H__
  11. #define __TSREMDSK_H__
  12. #define SALEMHELPASSISTANTACCOUNT_PASSWORDKEY \
  13. L"0083343a-f925-4ed7-b1d6-d95d17a0b57b-RemoteDesktopHelpAssistantAccount"
  14. #define SALEMHELPASSISTANTACCOUNT_FAKEPASSWORDKEY \
  15. L"0083343a-f925-4ed7-b1d6-d95d17a0b57b"
  16. #define REG_CONTROL_REMDSK L"Software\\Microsoft\\Remote Desktop"
  17. #define REG_CONTROL_HELPSESSIONENTRY L"Pending Help Session"
  18. #define REG_VALUE_SYSTEMRESTORE L"SystemRestore"
  19. #define REG_VALUE_SYSTEMRESTORE_ENCRYPTIONKEY L"SystemRestore_KEY"
  20. #define REG_VALUE_SYSTEMRESTORE_ALLOWTOGETHELP L"SystemRestore_AllowToGetHelp"
  21. #define REG_VALUE_SYSTEMRESTORE_INHELPMODE L"SystemRestore" L"_" REG_MACHINE_IN_HELP_MODE
  22. #define SALEMHELPASSISTANTACCOUNT_SIDKEY \
  23. L"0083343a-f925-4ed7-b1d6-d95d17a0b57b-RemoteDesktopHelpAssistantSID"
  24. #define SALEMHELPASSISTANTACCOUNT_NAME \
  25. L"HelpAssistant"
  26. #define SALEMRDSADDINNAME \
  27. L"%WINDIR%\\SYSTEM32\\RDSADDIN.EXE"
  28. #define SALEMHELPASSISTANTACCOUNT_ENCRYPTIONKEY \
  29. L"c261dd33-c55b-4a37-924b-746bbf3569ad-RemoteDesktopHelpAssistantEncrypt"
  30. #define SALEMHELPASSISTANTACCOUNT_ENCRYPTMUTEX \
  31. L"746bbf3569adEncrypt"
  32. #define HELPASSISTANT_CRYPT_CONTAINER L"HelpAssisantContainer"
  33. #define ENCRYPT_ALGORITHM CALG_RC4
  34. #define ENCRYPT_BLOCK_SIZE 8
  35. #define TERMSRV_TCPPORT 3389
  36. //
  37. // Event Log ID, TermSrv and Rdshost at various inform
  38. // sessmgr to log an event, this event log is re-mapping
  39. // to actual event code in sessmgr.
  40. //
  41. #define REMOTEASSISTANCE_EVENTLOG_TERMSRV_INVALID_TICKET 0x1
  42. #define REMOTEASSISTANCE_EVENTLOG_TERMSRV_REVERSE_CONNECT 0x2
  43. #ifdef __cplusplus
  44. extern "C"{
  45. #endif
  46. DWORD
  47. TSHelpAssistantBeginEncryptionCycle();
  48. DWORD
  49. TSHelpAssisantEndEncryptionCycle();
  50. BOOL
  51. TSHelpAssistantInEncryptionCycle();
  52. VOID
  53. TSHelpAssistantEndEncryptionLib();
  54. DWORD
  55. TSHelpAssistantInitializeEncryptionLib();
  56. DWORD
  57. TSHelpAssistantEncryptData(
  58. IN LPCWSTR pszEncryptPrefixKey,
  59. IN OUT PBYTE pbData,
  60. IN OUT DWORD* pcbData
  61. );
  62. DWORD
  63. TSHelpAssistantDecryptData(
  64. IN LPCWSTR pszEncryptPrefixKey,
  65. IN OUT PBYTE pbData,
  66. IN OUT DWORD* pcbData
  67. );
  68. DWORD
  69. TSGetHelpAssistantAccountName(
  70. OUT LPWSTR* ppszAccDomain,
  71. OUT LPWSTR* ppszAcctName
  72. );
  73. DWORD
  74. TSGetHelpAssistantAccountPassword(
  75. OUT LPWSTR* ppszAcctPwd
  76. );
  77. BOOL
  78. TSIsMachineInHelpMode();
  79. BOOL
  80. TSIsMachinePolicyAllowHelp();
  81. BOOL
  82. TSIsMachineInSystemRestore();
  83. DWORD
  84. TSSystemRestoreCacheValues();
  85. DWORD
  86. TSSystemRestoreResetValues();
  87. #ifdef __cplusplus
  88. }
  89. #endif
  90. #endif