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.

112 lines
1.8 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Copyright (c) 1997-1999 Microsoft Corporation
  4. //
  5. // File: init.h
  6. //
  7. // Contents:
  8. //
  9. // History:
  10. //
  11. //---------------------------------------------------------------------------
  12. #ifndef __INIT_H__
  13. #define __INIT_H__
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. DWORD
  18. TLSPrepareForBackupRestore();
  19. DWORD
  20. TLSRestartAfterBackupRestore(BOOL);
  21. void
  22. ServerShutdown();
  23. DWORD
  24. GetLicenseServerRole();
  25. void
  26. GetJobObjectDefaults(
  27. PDWORD pdwInterval,
  28. PDWORD pdwRetries,
  29. PDWORD pdwRestartTime
  30. );
  31. void
  32. SetServiceLastShutdownTime();
  33. void
  34. GetServiceLastShutdownTime(
  35. OUT FILETIME* ft
  36. );
  37. DWORD
  38. StartServerInitThread(
  39. void* p
  40. );
  41. HANDLE
  42. ServerInit(
  43. BOOL bDebug
  44. );
  45. BOOL
  46. TLSLoadServerCertificate();
  47. DWORD
  48. ServiceInitCrypto(
  49. IN BOOL bCreateNewKeys,
  50. IN LPCTSTR pszKeyContainer,
  51. OUT HCRYPTPROV* phCryptProv,
  52. OUT HCRYPTKEY* phSignKey,
  53. OUT HCRYPTKEY* phExchKey
  54. );
  55. DWORD
  56. InitCryptoAndCertificate();
  57. DWORD
  58. TLSReGenerateKeys(
  59. BOOL bReGenKeyOnly
  60. );
  61. DWORD
  62. TLSReGenKeysAndReloadServerCert(
  63. BOOL bReGenKeyOnly
  64. );
  65. DWORD
  66. TLSReGenSelfSignCert(
  67. IN HCRYPTPROV hCryptProv,
  68. IN PBYTE pbSPK,
  69. IN DWORD cbSPK,
  70. IN DWORD dwNumExtensions,
  71. IN PCERT_EXTENSION pCertExtensions
  72. );
  73. void
  74. CleanSetupLicenseServer();
  75. DWORD
  76. TLSLoadVerifyLicenseServerCertificates();
  77. DWORD
  78. TLSRestoreLicenseServerCertificate(
  79. LPCTSTR pszSourceRegKey,
  80. LPCTSTR pszTargetRegKey
  81. );
  82. BOOL
  83. CanIssuePermLicense();
  84. #ifdef __cplusplus
  85. }
  86. #endif
  87. #endif