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.

34 lines
638 B

  1. #include <nt.h>
  2. #include <ntrtl.h>
  3. #include <nturtl.h>
  4. #include <windows.h>
  5. #include "security.h"
  6. /*
  7. * List of accounts we allow file access for
  8. */
  9. ADMIN_ACCOUNTS AllowAccounts[] = {
  10. { L"Administrators", NULL },
  11. { L"SYSTEM", NULL },
  12. { CURRENT_USER, NULL }
  13. };
  14. DWORD AllowAccountEntries = sizeof(AllowAccounts)/sizeof(ADMIN_ACCOUNTS);
  15. ACCESS_MASK AllowAccess = STANDARD_RIGHTS_ALL | FILE_ALL_ACCESS;
  16. /*
  17. * List of accounts to deny file access for
  18. */
  19. ADMIN_ACCOUNTS DenyAccounts[] = {
  20. { L"", NULL }
  21. };
  22. DWORD DenyAccountEntries = 0;
  23. ACCESS_MASK DeniedAccess = STANDARD_RIGHTS_ALL | FILE_ALL_ACCESS;