Leaked source code of windows server 2003
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.

134 lines
3.0 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. //
  13. // Delay time to start or shutdown Salem binaries when RA group
  14. // policy changed.
  15. //
  16. #define DELAY_STARTUP_SALEM_TIME 30 * 1000
  17. #define DELAY_SHUTDOWN_SALEM_TIME 30 * 1000
  18. #define SALEMHELPASSISTANTACCOUNT_PASSWORDKEY \
  19. L"L$0083343a-f925-4ed7-b1d6-d95d17a0b57b-RemoteDesktopHelpAssistantAccount"
  20. #define REG_CONTROL_REMDSK L"Software\\Microsoft\\Remote Desktop"
  21. #define REG_CONTROL_HELPSESSIONENTRY L"Pending Help Session"
  22. #define REG_VALUE_SYSTEMRESTORE L"SystemRestore"
  23. #define REG_VALUE_SYSTEMRESTORE_ENCRYPTIONKEY L"SystemRestore_KEY"
  24. #define REG_VALUE_SYSTEMRESTORE_ALLOWTOGETHELP L"SystemRestore_AllowToGetHelp"
  25. #define REG_VALUE_SYSTEMRESTORE_INHELPMODE L"SystemRestore" L"_" REG_MACHINE_IN_HELP_MODE
  26. #define SALEMHELPASSISTANTACCOUNT_SIDKEY \
  27. L"L$0083343a-f925-4ed7-b1d6-d95d17a0b57b-RemoteDesktopHelpAssistantSID"
  28. #define SALEMHELPASSISTANTACCOUNT_NAME \
  29. L"HelpAssistant"
  30. #define SALEMRDSADDINNAME \
  31. L"%WINDIR%\\SYSTEM32\\RDSADDIN.EXE"
  32. #define SALEMHELPASSISTANTACCOUNT_ENCRYPTIONKEY \
  33. L"L$c261dd33-c55b-4a37-924b-746bbf3569ad-RemoteDesktopHelpAssistantEncrypt"
  34. #define SALEMHELPASSISTANTACCOUNT_ENCRYPTMUTEX \
  35. L"746bbf3569adEncrypt"
  36. #define HELPASSISTANT_CRYPT_CONTAINER L"HelpAssisantContainer"
  37. #define ENCRYPT_ALGORITHM CALG_RC4
  38. #define ENCRYPT_BLOCK_SIZE 8
  39. #define TERMSRV_TCPPORT 3389
  40. //
  41. // Event Log ID, TermSrv and Rdshost at various inform
  42. // sessmgr to log an event, this event log is re-mapping
  43. // to actual event code in sessmgr.
  44. //
  45. #define REMOTEASSISTANCE_EVENTLOG_TERMSRV_INVALID_TICKET 0x1
  46. #define REMOTEASSISTANCE_EVENTLOG_TERMSRV_REVERSE_CONNECT 0x2
  47. #ifdef __cplusplus
  48. extern "C"{
  49. #endif
  50. DWORD
  51. TSHelpAssistantBeginEncryptionCycle();
  52. DWORD
  53. TSHelpAssisantEndEncryptionCycle();
  54. BOOL
  55. TSHelpAssistantInEncryptionCycle();
  56. VOID
  57. TSHelpAssistantEndEncryptionLib();
  58. DWORD
  59. TSHelpAssistantInitializeEncryptionLib();
  60. DWORD
  61. TSHelpAssistantEncryptData(
  62. IN LPCWSTR pszEncryptPrefixKey,
  63. IN OUT PBYTE pbData,
  64. IN OUT DWORD* pcbData
  65. );
  66. DWORD
  67. TSHelpAssistantDecryptData(
  68. IN LPCWSTR pszEncryptPrefixKey,
  69. IN OUT PBYTE pbData,
  70. IN OUT DWORD* pcbData
  71. );
  72. DWORD
  73. TSGetHelpAssistantAccountName(
  74. OUT LPWSTR* ppszAccDomain,
  75. OUT LPWSTR* ppszAcctName
  76. );
  77. DWORD
  78. TSGetHelpAssistantAccountPassword(
  79. OUT LPWSTR* ppszAcctPwd
  80. );
  81. BOOL
  82. TSIsMachineInHelpMode();
  83. BOOL
  84. TSIsMachinePolicyAllowHelp();
  85. BOOL
  86. TSIsMachineInSystemRestore();
  87. DWORD
  88. TSSystemRestoreCacheValues();
  89. DWORD
  90. TSSystemRestoreResetValues();
  91. BOOL
  92. TSIsFireWallPortsOpen();
  93. #ifdef __cplusplus
  94. }
  95. #endif
  96. #endif