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.

77 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1993 Micro Computer Systems, Inc.
  3. Module Name:
  4. usrprop.h
  5. Abstract:
  6. This is the public include file for some of the functions used by
  7. User Manager and Server Manager.
  8. Author:
  9. Congpa You 02-Dec-1993 Created.
  10. Revision History:
  11. --*/
  12. #ifndef _USRPROP_H_
  13. #define _USRPROP_H_
  14. #define USER_PROPERTY_SIGNATURE L'P'
  15. #define NWPASSWORD L"NWPassword"
  16. #define OLDNWPASSWORD L"OldNWPassword"
  17. #define MAXCONNECTIONS L"MaxConnections"
  18. #define NWTIMEPASSWORDSET L"NWPasswordSet"
  19. #define SZTRUE L"TRUE"
  20. #define GRACELOGINALLOWED L"GraceLoginAllowed"
  21. #define GRACELOGINREMAINING L"GraceLoginRemaining"
  22. #define NWLOGONFROM L"NWLogonFrom"
  23. #define NWHOMEDIR L"NWHomeDir"
  24. #define NW_PRINT_SERVER_REF_COUNT L"PSRefCount"
  25. #define NWENCRYPTEDPASSWORDLENGTH 8
  26. #define NO_LIMIT 0xffff
  27. #define DEFAULT_MAXCONNECTIONS NO_LIMIT
  28. #define DEFAULT_NWPASSWORDEXPIRED FALSE
  29. #define DEFAULT_GRACELOGINALLOWED 6
  30. #define DEFAULT_GRACELOGINREMAINING 6
  31. #define DEFAULT_NWLOGONFROM NULL
  32. #define DEFAULT_NWHOMEDIR NULL
  33. #define USER_PROPERTY_TYPE_ITEM 1
  34. #define USER_PROPERTY_TYPE_SET 2
  35. //Encryption function
  36. NTSTATUS ReturnNetwareForm (const char * pszSecretValue,
  37. DWORD dwUserId,
  38. const WCHAR * pchNWPassword,
  39. UCHAR * pchEncryptedNWPassword);
  40. NTSTATUS
  41. SetUserProperty(
  42. IN LPWSTR UserParms,
  43. IN LPWSTR Property,
  44. IN UNICODE_STRING PropertyValue,
  45. IN WCHAR PropertyFlag,
  46. OUT LPWSTR * pNewUserParms, // memory has to be freed after use.
  47. OUT BOOL * Update
  48. );
  49. NTSTATUS
  50. QueryUserProperty (
  51. IN LPWSTR UserParms,
  52. IN LPWSTR Property,
  53. OUT PWCHAR PropertyFlag,
  54. OUT PUNICODE_STRING PropertyValue
  55. );
  56. #endif // _USRPROP_H_