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.

76 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. nwlsa.h
  5. Abstract:
  6. Header for LSA helper routines used by both the client and
  7. server sides of the workstation service.
  8. Author:
  9. Rita Wong (ritaw) 22-Mar-1993
  10. Revision History:
  11. --*/
  12. #ifndef _NWLSA_INCLUDED_
  13. #define _NWLSA_INCLUDED_
  14. #include <ntlsa.h>
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. DWORD
  19. NwOpenPolicy(
  20. IN ACCESS_MASK DesiredAccess,
  21. OUT LSA_HANDLE *PolicyHandle
  22. );
  23. DWORD
  24. NwOpenSecret(
  25. IN ACCESS_MASK DesiredAccess,
  26. IN LSA_HANDLE PolicyHandle,
  27. IN LPWSTR LsaSecretName,
  28. OUT PLSA_HANDLE SecretHandle
  29. );
  30. DWORD
  31. NwFormSecretName(
  32. IN LPWSTR UserName,
  33. OUT LPWSTR *LsaSecretName
  34. );
  35. DWORD
  36. NwSetPassword(
  37. IN LPWSTR UserName,
  38. IN LPWSTR Password
  39. );
  40. DWORD
  41. NwDeletePassword(
  42. IN LPWSTR UserName
  43. );
  44. DWORD
  45. NwGetPassword(
  46. IN LPWSTR UserName,
  47. OUT PUNICODE_STRING *Password,
  48. OUT PUNICODE_STRING *OldPassword
  49. );
  50. #ifdef __cplusplus
  51. } // extern "C"
  52. #endif
  53. #define LAST_USER L"LastUser"
  54. #define GATEWAY_USER L"GatewayUser"
  55. #endif // _NWLSA_INCLUDED_