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.

70 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. Mapping.h
  5. Abstract:
  6. Author:
  7. Arthur Hanson (arth) Dec 07, 1994
  8. Environment:
  9. Revision History:
  10. --*/
  11. #ifndef _LLS_MAPPING_H
  12. #define _LLS_MAPPING_H
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. struct _USER_LICENSE_RECORD;
  17. typedef struct _MAPPING_RECORD {
  18. LPTSTR Name;
  19. DWORD Flags;
  20. LPTSTR Comment;
  21. ULONG Licenses;
  22. ULONG NumMembers;
  23. LPTSTR *Members;
  24. ULONG LicenseListSize;
  25. struct _USER_LICENSE_RECORD **LicenseList;
  26. } MAPPING_RECORD, *PMAPPING_RECORD;
  27. NTSTATUS MappingListInit();
  28. PMAPPING_RECORD MappingListFind( LPTSTR MappingName );
  29. LPTSTR MappingUserListFind( LPTSTR User, ULONG NumEntries, LPTSTR *Users );
  30. PMAPPING_RECORD MappingListAdd( LPTSTR MappingName, LPTSTR Comment, ULONG Licenses, NTSTATUS *pStatus );
  31. NTSTATUS MappingListDelete( LPTSTR MappingName );
  32. PMAPPING_RECORD MappingUserListAdd( LPTSTR MappingName, LPTSTR User );
  33. PMAPPING_RECORD MappingListUserFind( LPTSTR User );
  34. NTSTATUS MappingUserListDelete( LPTSTR MappingName, LPTSTR User );
  35. extern ULONG MappingListSize;
  36. extern PMAPPING_RECORD *MappingList;
  37. extern RTL_RESOURCE MappingListLock;
  38. #if DBG
  39. VOID MappingListDebugDump();
  40. VOID MappingListDebugInfoDump( PVOID Data );
  41. #endif
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif