|
|
|
@ -85,7 +85,7 @@ mod imp {
|
|
|
|
|
#[cfg(windows)]
|
|
|
|
|
mod imp {
|
|
|
|
|
|
|
|
|
|
use windows_sys::Win32::Foundation::{CloseHandle, LocalFree, ERROR_SUCCESS, HANDLE, PSID};
|
|
|
|
|
use windows_sys::Win32::Foundation::{CloseHandle, LocalFree, ERROR_SUCCESS, HANDLE};
|
|
|
|
|
use windows_sys::Win32::Security::Authorization::{
|
|
|
|
|
GetNamedSecurityInfoW, SetNamedSecurityInfoW, SE_FILE_OBJECT,
|
|
|
|
|
};
|
|
|
|
@ -95,7 +95,7 @@ mod imp {
|
|
|
|
|
SecurityImpersonation, ACCESS_ALLOWED_CALLBACK_ACE, ACL, ACL_SIZE_INFORMATION,
|
|
|
|
|
DACL_SECURITY_INFORMATION, GENERIC_MAPPING, GROUP_SECURITY_INFORMATION, INHERITED_ACE,
|
|
|
|
|
LABEL_SECURITY_INFORMATION, OBJECT_SECURITY_INFORMATION, OWNER_SECURITY_INFORMATION,
|
|
|
|
|
PRIVILEGE_SET, PROTECTED_DACL_SECURITY_INFORMATION, PSECURITY_DESCRIPTOR,
|
|
|
|
|
PRIVILEGE_SET, PROTECTED_DACL_SECURITY_INFORMATION, PSECURITY_DESCRIPTOR, PSID,
|
|
|
|
|
SID_IDENTIFIER_AUTHORITY, TOKEN_DUPLICATE, TOKEN_QUERY,
|
|
|
|
|
};
|
|
|
|
|
use windows_sys::Win32::Storage::FileSystem::{
|
|
|
|
|