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.

90 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. accessp.h
  5. Abstract:
  6. Internal routines shared by NetUser API and Netlogon service. These
  7. routines convert from SAM specific data formats to UAS specific data
  8. formats.
  9. Author:
  10. Cliff Van Dyke (cliffv) 29-Aug-1991
  11. Environment:
  12. User mode only.
  13. Contains NT-specific code.
  14. Requires ANSI C extensions: slash-slash comments, long external names.
  15. Revision History:
  16. --*/
  17. NET_API_STATUS
  18. UaspInitialize(
  19. VOID
  20. );
  21. VOID
  22. UaspFlush(
  23. VOID
  24. );
  25. VOID
  26. UaspClose(
  27. VOID
  28. );
  29. VOID
  30. NetpGetAllowedAce(
  31. IN PACL Dacl,
  32. IN PSID Sid,
  33. OUT PVOID *Ace
  34. );
  35. DWORD
  36. NetpAccountControlToFlags(
  37. IN DWORD UserAccountControl,
  38. IN PACL UserDacl
  39. );
  40. ULONG
  41. NetpDeltaTimeToSeconds(
  42. IN LARGE_INTEGER DeltaTime
  43. );
  44. LARGE_INTEGER
  45. NetpSecondsToDeltaTime(
  46. IN ULONG Seconds
  47. );
  48. VOID
  49. NetpAliasMemberToPriv(
  50. IN ULONG AliasCount,
  51. IN PULONG AliasMembership,
  52. OUT LPDWORD Priv,
  53. OUT LPDWORD AuthFlags
  54. );
  55. DWORD
  56. NetpGetElapsedSeconds(
  57. IN PLARGE_INTEGER Time
  58. );
  59. VOID
  60. NetpConvertWorkstationList(
  61. IN OUT PUNICODE_STRING WorkstationList
  62. );
  63. NET_API_STATUS
  64. NetpSamRidToSid(
  65. IN SAM_HANDLE SamHandle,
  66. IN ULONG RelativeId,
  67. OUT PSID *Sid
  68. );