mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-02 14:01:50 +02:00
NTDirectoryFileSystem: Added NtSetVolumeInformationFile, NtQuerySecurityObject and NtSetSecurityObject external method declarations
This commit is contained in:
parent
b358e4865d
commit
2d8d17437c
1 changed files with 9 additions and 0 deletions
|
@ -101,6 +101,15 @@ namespace SMBLibrary.Win32
|
|||
[DllImport("ntdll.dll", ExactSpelling = true, SetLastError = false)]
|
||||
private static extern NTStatus NtQueryVolumeInformationFile(IntPtr handle, out IO_STATUS_BLOCK ioStatusBlock, byte[] fsInformation, uint length, uint fsInformationClass);
|
||||
|
||||
[DllImport("ntdll.dll", ExactSpelling = true, SetLastError = false)]
|
||||
private static extern NTStatus NtSetVolumeInformationFile(IntPtr handle, out IO_STATUS_BLOCK ioStatusBlock, byte[] fsInformation, uint length, uint fsInformationClass);
|
||||
|
||||
[DllImport("ntdll.dll", ExactSpelling = true, SetLastError = false)]
|
||||
private static extern NTStatus NtQuerySecurityObject(IntPtr handle, SecurityInformation securityInformation, byte[] securityDescriptor, uint length, out uint lengthNeeded);
|
||||
|
||||
[DllImport("ntdll.dll", ExactSpelling = true, SetLastError = false)]
|
||||
private static extern NTStatus NtSetSecurityObject(IntPtr handle, SecurityInformation securityInformation, byte[] securityDescriptor);
|
||||
|
||||
[DllImport("ntdll.dll", ExactSpelling = true, SetLastError = false)]
|
||||
private static extern NTStatus NtNotifyChangeDirectoryFile(IntPtr handle, IntPtr evt, IntPtr apcRoutine, IntPtr apcContext, out IO_STATUS_BLOCK ioStatusBlock, byte[] buffer, uint bufferSize, NotifyChangeFilter completionFilter, bool watchTree);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue