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.

49 lines
698 B

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. sccrypt.h
  5. Abstract:
  6. Password ncryption and decription routines.
  7. Author:
  8. Rita Wong (ritaw) 27-Apr-1992
  9. Revision History:
  10. --*/
  11. #ifndef _SCCRYPT_INCLUDED_
  12. #define _SCCRYPT_INCLUDED_
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. DWORD
  17. ScEncryptPassword(
  18. IN SC_RPC_HANDLE ContextHandle,
  19. IN LPWSTR Password,
  20. OUT LPBYTE *EncryptedPassword,
  21. OUT LPDWORD EncryptedPasswordSize
  22. );
  23. DWORD
  24. ScDecryptPassword(
  25. IN SC_RPC_HANDLE ContextHandle,
  26. IN LPBYTE EncryptedPassword,
  27. IN DWORD EncryptedPasswordSize,
  28. OUT LPWSTR *Password
  29. );
  30. #ifdef __cplusplus
  31. }
  32. #endif
  33. #endif // _SCCRYPT_INCLUDED_