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.

76 lines
1.4 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1998, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // ezsam.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // Declares helper functions for the SAM API.
  12. //
  13. // MODIFICATION HISTORY
  14. //
  15. // 08/14/1998 Original version.
  16. // 03/23/1999 Tighten up the ezsam API.
  17. // 04/14/1999 Copy SIDs returned by IASSamOpenUser.
  18. //
  19. ///////////////////////////////////////////////////////////////////////////////
  20. #ifndef _EZSAM_H_
  21. #define _EZSAM_H_
  22. #if _MSC_VER >= 1000
  23. #pragma once
  24. #endif
  25. #include <ntsam.h>
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. //////////
  30. // Handles for the local SAM domains.
  31. //////////
  32. extern SAM_HANDLE theAccountDomainHandle;
  33. extern SAM_HANDLE theBuiltinDomainHandle;
  34. DWORD
  35. WINAPI
  36. IASSamInitialize( VOID );
  37. VOID
  38. WINAPI
  39. IASSamShutdown( VOID );
  40. DWORD
  41. WINAPI
  42. IASSamOpenUser(
  43. IN PCWSTR DomainName,
  44. IN PCWSTR UserName,
  45. IN ACCESS_MASK DesiredAccess,
  46. IN ULONG Flags,
  47. IN OUT OPTIONAL PULONG UserRid,
  48. OUT OPTIONAL PSID *DomainSid,
  49. OUT PSAM_HANDLE UserHandle
  50. );
  51. ULONG
  52. WINAPI
  53. IASLengthRequiredChildSid(
  54. IN PSID ParentSid
  55. );
  56. VOID
  57. WINAPI
  58. IASInitializeChildSid(
  59. IN PSID ChildSid,
  60. IN PSID ParentSid,
  61. IN ULONG ChildRid
  62. );
  63. #ifdef __cplusplus
  64. }
  65. #endif
  66. #endif // _EZSAM_H_