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.

75 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1993-1995, Microsoft Corp. All rights reserved.
  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. //
  15. // These are exported by netapi32.dll.
  16. //
  17. NTSTATUS
  18. NetpParmsSetUserProperty (
  19. IN LPWSTR UserParms,
  20. IN LPWSTR Property,
  21. IN UNICODE_STRING PropertyValue,
  22. IN WCHAR PropertyFlag,
  23. OUT LPWSTR * pNewUserParms, // memory has to be freed afer use.
  24. OUT BOOL * Update
  25. );
  26. NTSTATUS
  27. NetpParmsSetUserPropertyWithLength (
  28. IN PUNICODE_STRING UserParms,
  29. IN LPWSTR Property,
  30. IN UNICODE_STRING PropertyValue,
  31. IN WCHAR PropertyFlag,
  32. OUT LPWSTR * pNewUserParms, // memory has to be freed afer use.
  33. OUT BOOL * Update
  34. );
  35. NTSTATUS
  36. NetpParmsQueryUserProperty (
  37. IN LPWSTR UserParms,
  38. IN LPWSTR Property,
  39. OUT PWCHAR PropertyFlag,
  40. OUT PUNICODE_STRING PropertyValue
  41. );
  42. NTSTATUS
  43. NetpParmsQueryUserPropertyWithLength (
  44. IN PUNICODE_STRING UserParms,
  45. IN LPWSTR Property,
  46. OUT PWCHAR PropertyFlag,
  47. OUT PUNICODE_STRING PropertyValue
  48. );
  49. //
  50. // Call NetpParmsUserertyPropFree on new Parameters block returned by
  51. // NetpParmsSetUserProperty above after you're done writing it out.
  52. //
  53. VOID
  54. NetpParmsUserPropertyFree (
  55. LPWSTR NewUserParms
  56. );
  57. #endif // _USRPROP_H_