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
1.6 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Copyright (c) 1997-1999 Microsoft Corporation
  4. //
  5. // File: pid.h
  6. //
  7. // Contents:
  8. //
  9. // History:
  10. //
  11. //---------------------------------------------------------------------------
  12. #ifndef __PID_H__
  13. #define __PID_H__
  14. #include "srvdef.h"
  15. #define NTPID_REGISTRY _TEXT("Software\\Microsoft\\Windows NT\\CurrentVersion")
  16. #define NTPID_VALUE _TEXT("ProductId")
  17. #define TLSUNIQUEID_SIZE 5
  18. #define MAX_PID20_LENGTH 25
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. DWORD
  23. TLSGeneratePid(
  24. OUT LPTSTR* pszTlsPid,
  25. OUT PDWORD pcbTlsPid,
  26. OUT LPTSTR* pszTlsUniqueId,
  27. OUT PDWORD pcbTlsUniqueId
  28. );
  29. DWORD
  30. LoadNtPidFromRegistry(
  31. OUT LPTSTR* ppbNtPid
  32. );
  33. DWORD
  34. ServerIdsToLsaServerId(
  35. IN PBYTE pbServerUniqueId,
  36. IN DWORD cbServerUniqueId,
  37. IN PBYTE pbServerPid,
  38. IN DWORD cbServerPid,
  39. IN PBYTE pbServerSPK,
  40. IN DWORD cbServerSPK,
  41. IN PCERT_EXTENSION pCertExtensions,
  42. IN DWORD dwNumCertExtensions,
  43. OUT PTLSLSASERVERID* ppLsaServerId,
  44. OUT DWORD* pdwLsaServerId
  45. );
  46. DWORD
  47. LsaServerIdToServerIds(
  48. IN PTLSLSASERVERID pLsaServerId,
  49. IN DWORD dwLsaServerId,
  50. OUT PBYTE* ppbServerUniqueId,
  51. OUT PDWORD pcbServerUniqueId,
  52. OUT PBYTE* ppbServerPid,
  53. OUT PDWORD pcbServerPid,
  54. OUT PBYTE* ppbServerSPK,
  55. OUT PDWORD pcbServerSPK,
  56. OUT PCERT_EXTENSIONS* pCertExtensions,
  57. OUT PDWORD pdwNumCertExtensions
  58. );
  59. #ifdef __cplusplus
  60. }
  61. #endif
  62. #endif