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.

77 lines
1.7 KiB

  1. #ifndef __DFS_SECURITY_SUPPORT__
  2. #define __DFS_SECURITY_SUPPORT__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. DFSSTATUS
  7. AccessImpersonateCheckRpcClientEx(PSECURITY_DESCRIPTOR DfsAdminSecurityDesc,
  8. GENERIC_MAPPING * DfsAdminGenericMapping,
  9. DWORD DesiredAccess);
  10. DFSSTATUS
  11. DfsDoesUserHaveDesiredAccessToAd(DWORD DesiredAccess,
  12. PSECURITY_DESCRIPTOR pSD);
  13. PVOID
  14. DfsAllocateSecurityData(ULONG Size );
  15. VOID
  16. DfsDeallocateSecurityData(PVOID pPointer );
  17. DFSSTATUS
  18. DfsReadDSObjSecDesc(
  19. LDAP * pLDAP,
  20. PWSTR pwszObject,
  21. SECURITY_INFORMATION SeInfo,
  22. PSECURITY_DESCRIPTOR *ppSD,
  23. PULONG pcSDSize);
  24. DFSSTATUS
  25. DfsGetObjSecurity(LDAP *pldap,
  26. LPWSTR pwszObjectName,
  27. PSECURITY_DESCRIPTOR * pSDRet);
  28. DWORD
  29. DfsGetFileSecurityByHandle(IN HANDLE hFile,
  30. OUT PSECURITY_DESCRIPTOR *ppSD);
  31. DWORD
  32. DfsGetFileSecurityByName(PUNICODE_STRING DirectoryName,
  33. PSECURITY_DESCRIPTOR *pSD2);
  34. DWORD
  35. DfsIsAccessGrantedBySid(DWORD dwDesiredAccess,
  36. PSECURITY_DESCRIPTOR pSD,
  37. PSID TheSID,
  38. GENERIC_MAPPING * DfsGenericMapping);
  39. DWORD
  40. DfsIsAccessGrantedByToken(DWORD dwDesiredAccess,
  41. PSECURITY_DESCRIPTOR pSD,
  42. HANDLE TheToken,
  43. GENERIC_MAPPING * DfsGenericMapping);
  44. DFSSTATUS
  45. DfsRemoveDisabledPrivileges (void);
  46. DFSSTATUS
  47. DfsAdjustPrivilege(ULONG Privilege,
  48. BOOLEAN bEnable);
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52. #endif