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.

43 lines
907 B

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. pencrypt.c
  5. Abstract:
  6. Helper functions to work with PID encryption in Setup
  7. Author:
  8. Peter Wassmann (peterw) 12-Dec-2001
  9. Revision History:
  10. <alias> <date> <comments>
  11. --*/
  12. //
  13. // Includes
  14. //
  15. #pragma once
  16. HRESULT PrepareEncryptedPIDA(LPSTR szPID, UINT uiDays, LPSTR *szOut);
  17. HRESULT PrepareEncryptedPIDW(LPWSTR szPID, UINT uiDays, LPWSTR *szOutData);
  18. HRESULT ValidateEncryptedPIDW(LPWSTR szPID, LPWSTR *szOutData);
  19. HRESULT ValidateEncryptedPIDA(LPSTR PID, LPSTR *szOutData);
  20. //
  21. // Function name macros
  22. //
  23. #ifdef UNICODE
  24. #define PrepareEncryptedPID PrepareEncryptedPIDW
  25. #define ValidateEncryptedPID ValidateEncryptedPIDW
  26. #else
  27. #define PrepareEncryptedPID PrepareEncryptedPIDA
  28. #define ValidateEncryptedPID ValidateEncryptedPIDA
  29. #endif