Debian Codegraph @

vendor/windows-sys/src/Windows/Wdk/Storage/FileSystem/mod.rs

raw
1 #[cfg(feature = "Wdk_Storage_FileSystem_Minifilters")]
2 pub mod Minifilters;
3 windows_link::link!("secur32.dll" "system" fn ApplyControlToken(phcontext : *const SecHandle, pinput : *const SecBufferDesc) -> windows_sys::core::HRESULT);
4 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
5 windows_link::link!("ntoskrnl.exe" "system" fn CcAsyncCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, ioissuerthread : super::super::Foundation:: PETHREAD, asyncreadcontext : *const CC_ASYNC_READ_CONTEXT) -> bool);
6 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
7 windows_link::link!("ntoskrnl.exe" "system" fn CcCanIWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, bytestowrite : u32, wait : bool, retrying : u8) -> bool);
8 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_IO"))]
9 windows_link::link!("ntoskrnl.exe" "system" fn CcCoherencyFlushAndPurgeCache(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, fileoffset : *const i64, length : u32, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, flags : u32));
10 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
11 windows_link::link!("ntoskrnl.exe" "system" fn CcCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> bool);
12 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
13 windows_link::link!("ntoskrnl.exe" "system" fn CcCopyReadEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, ioissuerthread : super::super::Foundation:: PETHREAD) -> bool);
14 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
15 windows_link::link!("ntoskrnl.exe" "system" fn CcCopyWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *const core::ffi::c_void) -> bool);
16 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
17 windows_link::link!("ntoskrnl.exe" "system" fn CcCopyWriteEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *const core::ffi::c_void, ioissuerthread : super::super::Foundation:: PETHREAD) -> bool);
18 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
19 windows_link::link!("ntoskrnl.exe" "system" fn CcCopyWriteWontFlush(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32) -> bool);
20 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
21 windows_link::link!("ntoskrnl.exe" "system" fn CcDeferWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, postroutine : PCC_POST_DEFERRED_WRITE, context1 : *const core::ffi::c_void, context2 : *const core::ffi::c_void, bytestowrite : u32, retrying : bool));
22 windows_link::link!("ntoskrnl.exe" "system" fn CcErrorCallbackRoutine(context : *const CC_ERROR_CALLBACK_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS);
23 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
24 windows_link::link!("ntoskrnl.exe" "system" fn CcFastCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : u32, length : u32, pagecount : u32, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK));
25 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
26 windows_link::link!("ntoskrnl.exe" "system" fn CcFastCopyWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : u32, length : u32, buffer : *const core::ffi::c_void));
27 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_IO"))]
28 windows_link::link!("ntoskrnl.exe" "system" fn CcFlushCache(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, fileoffset : *const i64, length : u32, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK));
29 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
30 windows_link::link!("ntoskrnl.exe" "system" fn CcGetDirtyPages(loghandle : *const core::ffi::c_void, dirtypageroutine : PDIRTY_PAGE_ROUTINE, context1 : *const core::ffi::c_void, context2 : *const core::ffi::c_void) -> i64);
31 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
32 windows_link::link!("ntoskrnl.exe" "system" fn CcGetFileObjectFromBcb(bcb : *const core::ffi::c_void) -> *mut super::super::Foundation:: FILE_OBJECT);
33 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
34 windows_link::link!("ntoskrnl.exe" "system" fn CcGetFileObjectFromSectionPtrs(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS) -> *mut super::super::Foundation:: FILE_OBJECT);
35 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
36 windows_link::link!("ntoskrnl.exe" "system" fn CcGetFileObjectFromSectionPtrsRef(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS) -> *mut super::super::Foundation:: FILE_OBJECT);
37 #[cfg(feature = "Wdk_Foundation")]
38 windows_link::link!("ntoskrnl.exe" "system" fn CcGetFlushedValidData(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, bcblistheld : bool) -> i64);
39 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
40 windows_link::link!("ntoskrnl.exe" "system" fn CcInitializeCacheMap(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES, pinaccess : bool, callbacks : *const CACHE_MANAGER_CALLBACKS, lazywritecontext : *const core::ffi::c_void));
41 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
42 windows_link::link!("ntoskrnl.exe" "system" fn CcInitializeCacheMapEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES, pinaccess : bool, callbacks : *const CACHE_MANAGER_CALLBACKS, lazywritecontext : *const core::ffi::c_void, flags : u32));
43 windows_link::link!("ntoskrnl.exe" "system" fn CcIsCacheManagerCallbackNeeded(status : super::super::super::Win32::Foundation:: NTSTATUS) -> bool);
44 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
45 windows_link::link!("ntoskrnl.exe" "system" fn CcIsThereDirtyData(vpb : *const super::super::Foundation:: VPB) -> bool);
46 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
47 windows_link::link!("ntoskrnl.exe" "system" fn CcIsThereDirtyDataEx(vpb : *const super::super::Foundation:: VPB, numberofdirtypages : *const u32) -> bool);
48 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
49 windows_link::link!("ntoskrnl.exe" "system" fn CcMapData(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> bool);
50 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
51 windows_link::link!("ntoskrnl.exe" "system" fn CcMdlRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK));
52 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
53 windows_link::link!("ntoskrnl.exe" "system" fn CcMdlReadComplete(fileobject : *const super::super::Foundation:: FILE_OBJECT, mdlchain : *const super::super::Foundation:: MDL));
54 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
55 windows_link::link!("ntoskrnl.exe" "system" fn CcMdlWriteAbort(fileobject : *const super::super::Foundation:: FILE_OBJECT, mdlchain : *const super::super::Foundation:: MDL));
56 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
57 windows_link::link!("ntoskrnl.exe" "system" fn CcMdlWriteComplete(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, mdlchain : *const super::super::Foundation:: MDL));
58 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
59 windows_link::link!("ntoskrnl.exe" "system" fn CcPinMappedData(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void) -> bool);
60 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
61 windows_link::link!("ntoskrnl.exe" "system" fn CcPinRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> bool);
62 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
63 windows_link::link!("ntoskrnl.exe" "system" fn CcPrepareMdlWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK));
64 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
65 windows_link::link!("ntoskrnl.exe" "system" fn CcPreparePinWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, zero : bool, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> bool);
66 #[cfg(feature = "Wdk_Foundation")]
67 windows_link::link!("ntoskrnl.exe" "system" fn CcPurgeCacheSection(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, fileoffset : *const i64, length : u32, flags : u32) -> bool);
68 windows_link::link!("ntoskrnl.exe" "system" fn CcRemapBcb(bcb : *const core::ffi::c_void) -> *mut core::ffi::c_void);
69 windows_link::link!("ntoskrnl.exe" "system" fn CcRepinBcb(bcb : *const core::ffi::c_void));
70 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
71 windows_link::link!("ntoskrnl.exe" "system" fn CcScheduleReadAhead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32));
72 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
73 windows_link::link!("ntoskrnl.exe" "system" fn CcScheduleReadAheadEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, ioissuerthread : super::super::Foundation:: PETHREAD));
74 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
75 windows_link::link!("ntoskrnl.exe" "system" fn CcSetAdditionalCacheAttributes(fileobject : *const super::super::Foundation:: FILE_OBJECT, disablereadahead : bool, disablewritebehind : bool));
76 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
77 windows_link::link!("ntoskrnl.exe" "system" fn CcSetAdditionalCacheAttributesEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, flags : u32));
78 windows_link::link!("ntoskrnl.exe" "system" fn CcSetBcbOwnerPointer(bcb : *const core::ffi::c_void, ownerpointer : *const core::ffi::c_void));
79 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
80 windows_link::link!("ntoskrnl.exe" "system" fn CcSetDirtyPageThreshold(fileobject : *const super::super::Foundation:: FILE_OBJECT, dirtypagethreshold : u32));
81 windows_link::link!("ntoskrnl.exe" "system" fn CcSetDirtyPinnedData(bcbvoid : *const core::ffi::c_void, lsn : *const i64));
82 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
83 windows_link::link!("ntoskrnl.exe" "system" fn CcSetFileSizes(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES));
84 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
85 windows_link::link!("ntoskrnl.exe" "system" fn CcSetFileSizesEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES) -> super::super::super::Win32::Foundation:: NTSTATUS);
86 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
87 windows_link::link!("ntoskrnl.exe" "system" fn CcSetLogHandleForFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, loghandle : *const core::ffi::c_void, flushtolsnroutine : PFLUSH_TO_LSN));
88 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
89 windows_link::link!("ntoskrnl.exe" "system" fn CcSetParallelFlushFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, enableparallelflush : bool));
90 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
91 windows_link::link!("ntoskrnl.exe" "system" fn CcSetReadAheadGranularity(fileobject : *const super::super::Foundation:: FILE_OBJECT, granularity : u32));
92 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
93 windows_link::link!("ntoskrnl.exe" "system" fn CcUninitializeCacheMap(fileobject : *const super::super::Foundation:: FILE_OBJECT, truncatesize : *const i64, uninitializeevent : *const CACHE_UNINITIALIZE_EVENT) -> bool);
94 windows_link::link!("ntoskrnl.exe" "system" fn CcUnpinData(bcb : *const core::ffi::c_void));
95 windows_link::link!("ntoskrnl.exe" "system" fn CcUnpinDataForThread(bcb : *const core::ffi::c_void, resourcethreadid : usize));
96 #[cfg(feature = "Win32_System_IO")]
97 windows_link::link!("ntoskrnl.exe" "system" fn CcUnpinRepinnedBcb(bcb : *const core::ffi::c_void, writethrough : bool, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK));
98 windows_link::link!("ntoskrnl.exe" "system" fn CcWaitForCurrentLazyWriterActivity() -> super::super::super::Win32::Foundation:: NTSTATUS);
99 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
100 windows_link::link!("ntoskrnl.exe" "system" fn CcZeroData(fileobject : *const super::super::Foundation:: FILE_OBJECT, startoffset : *const i64, endoffset : *const i64, wait : bool) -> bool);
101 windows_link::link!("secur32.dll" "system" fn CompleteAuthToken(phcontext : *const SecHandle, ptoken : *const SecBufferDesc) -> windows_sys::core::HRESULT);
102 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
103 windows_link::link!("ntoskrnl.exe" "system" fn ExDisableResourceBoostLite(resource : *const super::super::Foundation:: ERESOURCE));
104 windows_link::link!("ntoskrnl.exe" "system" fn ExQueryPoolBlockSize(poolblock : *const core::ffi::c_void, quotacharged : *mut bool) -> usize);
105 windows_link::link!("secur32.dll" "system" fn ExportSecurityContext(phcontext : *const SecHandle, fflags : u32, ppackedcontext : *mut SecBuffer, ptoken : *mut *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
106 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAcknowledgeEcp(ecpcontext : *const core::ffi::c_void));
107 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
108 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAcquireFileExclusive(fileobject : *const super::super::Foundation:: FILE_OBJECT));
109 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAddBaseMcbEntry(mcb : *mut BASE_MCB, vbn : i64, lbn : i64, sectorcount : i64) -> bool);
110 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAddBaseMcbEntryEx(mcb : *mut BASE_MCB, vbn : i64, lbn : i64, sectorcount : i64) -> super::super::super::Win32::Foundation:: NTSTATUS);
111 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
112 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAddLargeMcbEntry(mcb : *mut LARGE_MCB, vbn : i64, lbn : i64, sectorcount : i64) -> bool);
113 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
114 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAddMcbEntry(mcb : *mut MCB, vbn : u32, lbn : u32, sectorcount : u32) -> bool);
115 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
116 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAddToTunnelCache(cache : *mut TUNNEL, directorykey : u64, shortname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, keybyshortname : bool, datalength : u32, data : *const core::ffi::c_void));
117 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
118 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAddToTunnelCacheEx(cache : *mut TUNNEL, directorykey : u64, shortname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, flags : u32, datalength : u32, data : *const core::ffi::c_void));
119 #[cfg(feature = "Wdk_Foundation")]
120 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAllocateAePushLock(pooltype : super::super::Foundation:: POOL_TYPE, tag : u32) -> *mut core::ffi::c_void);
121 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAllocateExtraCreateParameter(ecptype : *const windows_sys::core::GUID, sizeofcontext : u32, flags : u32, cleanupcallback : PFSRTL_EXTRA_CREATE_PARAMETER_CLEANUP_CALLBACK, pooltag : u32, ecpcontext : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
122 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAllocateExtraCreateParameterFromLookasideList(ecptype : *const windows_sys::core::GUID, sizeofcontext : u32, flags : u32, cleanupcallback : PFSRTL_EXTRA_CREATE_PARAMETER_CLEANUP_CALLBACK, lookasidelist : *mut core::ffi::c_void, ecpcontext : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
123 #[cfg(feature = "Wdk_Foundation")]
124 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAllocateExtraCreateParameterList(flags : u32, ecplist : *mut *mut super::super::Foundation:: ECP_LIST) -> super::super::super::Win32::Foundation:: NTSTATUS);
125 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
126 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAllocateFileLock(completelockirproutine : PCOMPLETE_LOCK_IRP_ROUTINE, unlockroutine : PUNLOCK_ROUTINE) -> *mut FILE_LOCK);
127 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
128 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAllocateResource() -> *mut super::super::Foundation:: ERESOURCE);
129 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAreNamesEqual(constantnamea : *const super::super::super::Win32::Foundation:: UNICODE_STRING, constantnameb : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : bool, upcasetable : *const u16) -> bool);
130 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
131 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAreThereCurrentOrInProgressFileLocks(filelock : *const FILE_LOCK) -> bool);
132 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
133 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAreThereWaitingFileLocks(filelock : *const FILE_LOCK) -> bool);
134 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlAreVolumeStartupApplicationsComplete() -> bool);
135 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
136 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlBalanceReads(targetdevice : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS);
137 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
138 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlCancellableWaitForMultipleObjects(count : u32, objectarray : *const *const core::ffi::c_void, waittype : super::super::super::Win32::System::Kernel:: WAIT_TYPE, timeout : *const i64, waitblockarray : *const super::super::Foundation:: KWAIT_BLOCK, irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: NTSTATUS);
139 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
140 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlCancellableWaitForSingleObject(object : *const core::ffi::c_void, timeout : *const i64, irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: NTSTATUS);
141 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
142 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlChangeBackingFileObject(currentfileobject : *const super::super::Foundation:: FILE_OBJECT, newfileobject : *const super::super::Foundation:: FILE_OBJECT, changebackingtype : FSRTL_CHANGE_BACKING_TYPE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
143 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
144 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForOplockRequest(filelock : *const FILE_LOCK, allocationsize : *const i64) -> bool);
145 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
146 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForReadAccess(filelock : *const FILE_LOCK, irp : *const super::super::Foundation:: IRP) -> bool);
147 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
148 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForWriteAccess(filelock : *const FILE_LOCK, irp : *const super::super::Foundation:: IRP) -> bool);
149 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
150 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlCheckOplock(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, context : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, postirproutine : POPLOCK_FS_PREPOST_IRP) -> super::super::super::Win32::Foundation:: NTSTATUS);
151 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
152 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlCheckOplockEx(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, flags : u32, context : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, postirproutine : POPLOCK_FS_PREPOST_IRP) -> super::super::super::Win32::Foundation:: NTSTATUS);
153 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
154 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlCheckOplockEx2(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, flags : u32, flagsex2 : u32, completionroutinecontext : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, postirproutine : POPLOCK_FS_PREPOST_IRP, timeout : u64, notifycontext : *const core::ffi::c_void, notifyroutine : POPLOCK_NOTIFY_ROUTINE) -> super::super::super::Win32::Foundation:: NTSTATUS);
155 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
156 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlCheckUpperOplock(oplock : *const *const core::ffi::c_void, newloweroplockstate : u32, completionroutinecontext : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, prependroutine : POPLOCK_FS_PREPOST_IRP, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
157 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
158 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, lockkey : u32, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool);
159 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
160 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlCopyWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, lockkey : u32, buffer : *const core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool);
161 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
162 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlCreateSectionForDataScan(sectionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, sectionobject : *mut *mut core::ffi::c_void, sectionfilesize : *mut i64, fileobject : *const super::super::Foundation:: FILE_OBJECT, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, maximumsize : *const i64, sectionpageprotection : u32, allocationattributes : u32, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
163 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlCurrentBatchOplock(oplock : *const *const core::ffi::c_void) -> bool);
164 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlCurrentOplock(oplock : *const *const core::ffi::c_void) -> bool);
165 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlCurrentOplockH(oplock : *const *const core::ffi::c_void) -> bool);
166 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlDeleteExtraCreateParameterLookasideList(lookaside : *mut core::ffi::c_void, flags : u32));
167 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
168 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlDeleteKeyFromTunnelCache(cache : *mut TUNNEL, directorykey : u64));
169 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
170 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlDeleteTunnelCache(cache : *mut TUNNEL));
171 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlDeregisterUncProvider(handle : super::super::super::Win32::Foundation:: HANDLE));
172 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
173 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlDismountComplete(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, dismountstatus : super::super::super::Win32::Foundation:: NTSTATUS));
174 #[cfg(feature = "Win32_System_Kernel")]
175 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlDissectDbcs(path : super::super::super::Win32::System::Kernel:: STRING, firstname : *mut super::super::super::Win32::System::Kernel:: STRING, remainingname : *mut super::super::super::Win32::System::Kernel:: STRING));
176 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlDissectName(path : super::super::super::Win32::Foundation:: UNICODE_STRING, firstname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, remainingname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING));
177 #[cfg(feature = "Win32_System_Kernel")]
178 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlDoesDbcsContainWildCards(name : *const super::super::super::Win32::System::Kernel:: STRING) -> bool);
179 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlDoesNameContainWildCards(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> bool);
180 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
181 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlFastCheckLockForRead(filelock : *const FILE_LOCK, startingbyte : *const i64, length : *const i64, key : u32, fileobject : *const super::super::Foundation:: FILE_OBJECT, processid : *const core::ffi::c_void) -> bool);
182 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
183 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlFastCheckLockForWrite(filelock : *const FILE_LOCK, startingbyte : *const i64, length : *const i64, key : u32, fileobject : *const core::ffi::c_void, processid : *const core::ffi::c_void) -> bool);
184 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
185 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlFastUnlockAll(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, processid : super::super::Foundation:: PEPROCESS, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
186 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
187 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlFastUnlockAllByKey(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, processid : super::super::Foundation:: PEPROCESS, key : u32, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
188 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
189 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlFastUnlockSingle(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : *const i64, processid : super::super::Foundation:: PEPROCESS, key : u32, context : *const core::ffi::c_void, alreadysynchronized : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
190 #[cfg(feature = "Wdk_Foundation")]
191 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlFindExtraCreateParameter(ecplist : *const super::super::Foundation:: ECP_LIST, ecptype : *const windows_sys::core::GUID, ecpcontext : *mut *mut core::ffi::c_void, ecpcontextsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
192 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
193 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlFindInTunnelCache(cache : *const TUNNEL, directorykey : u64, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, shortname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, datalength : *mut u32, data : *mut core::ffi::c_void) -> bool);
194 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
195 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlFindInTunnelCacheEx(cache : *const TUNNEL, directorykey : u64, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, shortname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, flags : u32, datalength : *mut u32, data : *mut core::ffi::c_void) -> bool);
196 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlFreeAePushLock(aepushlock : *mut core::ffi::c_void));
197 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlFreeExtraCreateParameter(ecpcontext : *const core::ffi::c_void));
198 #[cfg(feature = "Wdk_Foundation")]
199 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlFreeExtraCreateParameterList(ecplist : *const super::super::Foundation:: ECP_LIST));
200 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
201 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlFreeFileLock(filelock : *const FILE_LOCK));
202 #[cfg(feature = "Win32_System_Kernel")]
203 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlGetCurrentProcessLoaderList() -> *mut super::super::super::Win32::System::Kernel:: LIST_ENTRY);
204 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
205 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlGetEcpListFromIrp(irp : *const super::super::Foundation:: IRP, ecplist : *mut *mut super::super::Foundation:: ECP_LIST) -> super::super::super::Win32::Foundation:: NTSTATUS);
206 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
207 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlGetFileSize(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesize : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS);
208 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlGetNextBaseMcbEntry(mcb : *const BASE_MCB, runindex : u32, vbn : *mut i64, lbn : *mut i64, sectorcount : *mut i64) -> bool);
209 #[cfg(feature = "Wdk_Foundation")]
210 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlGetNextExtraCreateParameter(ecplist : *const super::super::Foundation:: ECP_LIST, currentecpcontext : *const core::ffi::c_void, nextecptype : *mut windows_sys::core::GUID, nextecpcontext : *mut *mut core::ffi::c_void, nextecpcontextsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
211 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
212 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlGetNextFileLock(filelock : *const FILE_LOCK, restart : bool) -> *mut FILE_LOCK_INFO);
213 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
214 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlGetNextLargeMcbEntry(mcb : *const LARGE_MCB, runindex : u32, vbn : *mut i64, lbn : *mut i64, sectorcount : *mut i64) -> bool);
215 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
216 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlGetNextMcbEntry(mcb : *const MCB, runindex : u32, vbn : *mut u32, lbn : *mut u32, sectorcount : *mut u32) -> bool);
217 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
218 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlGetSectorSizeInformation(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, sectorsizeinfo : *mut FILE_FS_SECTOR_SIZE_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS);
219 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
220 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlGetSupportedFeatures(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, supportedfeatures : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
221 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
222 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlGetVirtualDiskNestingLevel(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, nestinglevel : *mut u32, nestingflags : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
223 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIncrementCcFastMdlReadWait());
224 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIncrementCcFastReadNoWait());
225 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIncrementCcFastReadNotPossible());
226 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIncrementCcFastReadResourceMiss());
227 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIncrementCcFastReadWait());
228 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlInitExtraCreateParameterLookasideList(lookaside : *mut core::ffi::c_void, flags : u32, size : usize, tag : u32));
229 #[cfg(feature = "Wdk_Foundation")]
230 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlInitializeBaseMcb(mcb : *mut BASE_MCB, pooltype : super::super::Foundation:: POOL_TYPE));
231 #[cfg(feature = "Wdk_Foundation")]
232 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlInitializeBaseMcbEx(mcb : *mut BASE_MCB, pooltype : super::super::Foundation:: POOL_TYPE, flags : u16) -> bool);
233 #[cfg(feature = "Wdk_Foundation")]
234 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlInitializeExtraCreateParameter(ecp : *mut super::super::Foundation:: ECP_HEADER, ecpflags : u32, cleanupcallback : PFSRTL_EXTRA_CREATE_PARAMETER_CLEANUP_CALLBACK, totalsize : u32, ecptype : *const windows_sys::core::GUID, listallocatedfrom : *const core::ffi::c_void));
235 #[cfg(feature = "Wdk_Foundation")]
236 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlInitializeExtraCreateParameterList(ecplist : *mut super::super::Foundation:: ECP_LIST) -> super::super::super::Win32::Foundation:: NTSTATUS);
237 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
238 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlInitializeFileLock(filelock : *mut FILE_LOCK, completelockirproutine : PCOMPLETE_LOCK_IRP_ROUTINE, unlockroutine : PUNLOCK_ROUTINE));
239 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
240 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlInitializeLargeMcb(mcb : *mut LARGE_MCB, pooltype : super::super::Foundation:: POOL_TYPE));
241 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
242 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlInitializeMcb(mcb : *mut MCB, pooltype : super::super::Foundation:: POOL_TYPE));
243 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlInitializeOplock(oplock : *mut *mut core::ffi::c_void));
244 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
245 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlInitializeTunnelCache(cache : *mut TUNNEL));
246 #[cfg(feature = "Wdk_Foundation")]
247 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlInsertExtraCreateParameter(ecplist : *mut super::super::Foundation:: ECP_LIST, ecpcontext : *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
248 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
249 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlInsertPerFileContext(perfilecontextpointer : *const *const core::ffi::c_void, ptr : *const FSRTL_PER_FILE_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS);
250 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
251 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlInsertPerFileObjectContext(fileobject : *const super::super::Foundation:: FILE_OBJECT, ptr : *const FSRTL_PER_FILEOBJECT_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS);
252 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
253 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlInsertPerStreamContext(perstreamcontext : *const FSRTL_ADVANCED_FCB_HEADER, ptr : *const FSRTL_PER_STREAM_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS);
254 #[cfg(feature = "Wdk_Foundation")]
255 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIs32BitProcess(process : super::super::Foundation:: PEPROCESS) -> bool);
256 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
257 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIsDaxVolume(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> bool);
258 #[cfg(feature = "Win32_System_Kernel")]
259 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIsDbcsInExpression(expression : *const super::super::super::Win32::System::Kernel:: STRING, name : *const super::super::super::Win32::System::Kernel:: STRING) -> bool);
260 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIsEcpAcknowledged(ecpcontext : *const core::ffi::c_void) -> bool);
261 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIsEcpFromUserMode(ecpcontext : *const core::ffi::c_void) -> bool);
262 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIsExtentDangling(startpage : u32, numberofpages : u32, flags : u32) -> u32);
263 #[cfg(feature = "Win32_System_Kernel")]
264 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIsFatDbcsLegal(dbcsname : super::super::super::Win32::System::Kernel:: STRING, wildcardspermissible : bool, pathnamepermissible : bool, leadingbackslashpermissible : bool) -> bool);
265 #[cfg(feature = "Win32_System_Kernel")]
266 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIsHpfsDbcsLegal(dbcsname : super::super::super::Win32::System::Kernel:: STRING, wildcardspermissible : bool, pathnamepermissible : bool, leadingbackslashpermissible : bool) -> bool);
267 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIsMobileOS() -> bool);
268 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIsNameInExpression(expression : *const super::super::super::Win32::Foundation:: UNICODE_STRING, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : bool, upcasetable : windows_sys::core::PCWSTR) -> bool);
269 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIsNameInUnUpcasedExpression(expression : *const super::super::super::Win32::Foundation:: UNICODE_STRING, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : bool, upcasetable : windows_sys::core::PCWSTR) -> bool);
270 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag : u32) -> bool);
271 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIsNtstatusExpected(exception : super::super::super::Win32::Foundation:: NTSTATUS) -> bool);
272 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
273 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIsPagingFile(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> u32);
274 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
275 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIsSystemPagingFile(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> u32);
276 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
277 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlIssueDeviceIoControl(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, ioctl : u32, flags : u8, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *const core::ffi::c_void, outputbufferlength : u32, iosbinformation : *mut usize) -> super::super::super::Win32::Foundation:: NTSTATUS);
278 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
279 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlKernelFsControlFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, fscontrolcode : u32, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32, retoutputbuffersize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
280 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
281 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlLogCcFlushError(filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, flusherror : super::super::super::Win32::Foundation:: NTSTATUS, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
282 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlLookupBaseMcbEntry(mcb : *const BASE_MCB, vbn : i64, lbn : *mut i64, sectorcountfromlbn : *mut i64, startinglbn : *mut i64, sectorcountfromstartinglbn : *mut i64, index : *mut u32) -> bool);
283 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
284 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlLookupLargeMcbEntry(mcb : *const LARGE_MCB, vbn : i64, lbn : *mut i64, sectorcountfromlbn : *mut i64, startinglbn : *mut i64, sectorcountfromstartinglbn : *mut i64, index : *mut u32) -> bool);
285 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastBaseMcbEntry(mcb : *const BASE_MCB, vbn : *mut i64, lbn : *mut i64) -> bool);
286 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastBaseMcbEntryAndIndex(opaquemcb : *const BASE_MCB, largevbn : *mut i64, largelbn : *mut i64, index : *mut u32) -> bool);
287 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
288 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastLargeMcbEntry(mcb : *const LARGE_MCB, vbn : *mut i64, lbn : *mut i64) -> bool);
289 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
290 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastLargeMcbEntryAndIndex(opaquemcb : *const LARGE_MCB, largevbn : *mut i64, largelbn : *mut i64, index : *mut u32) -> bool);
291 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
292 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastMcbEntry(mcb : *const MCB, vbn : *mut u32, lbn : *mut u32) -> bool);
293 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
294 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlLookupMcbEntry(mcb : *const MCB, vbn : u32, lbn : *mut u32, sectorcount : *mut u32, index : *mut u32) -> bool);
295 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
296 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlLookupPerFileContext(perfilecontextpointer : *const *const core::ffi::c_void, ownerid : *const core::ffi::c_void, instanceid : *const core::ffi::c_void) -> *mut FSRTL_PER_FILE_CONTEXT);
297 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
298 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlLookupPerFileObjectContext(fileobject : *const super::super::Foundation:: FILE_OBJECT, ownerid : *const core::ffi::c_void, instanceid : *const core::ffi::c_void) -> *mut FSRTL_PER_FILEOBJECT_CONTEXT);
299 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
300 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlLookupPerStreamContextInternal(streamcontext : *const FSRTL_ADVANCED_FCB_HEADER, ownerid : *const core::ffi::c_void, instanceid : *const core::ffi::c_void) -> *mut FSRTL_PER_STREAM_CONTEXT);
301 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
302 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlMdlReadCompleteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, mdlchain : *const super::super::Foundation:: MDL, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool);
303 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
304 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlMdlReadDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool);
305 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
306 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlMdlReadEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS);
307 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
308 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlMdlWriteCompleteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, mdlchain : *const super::super::Foundation:: MDL, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool);
309 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlMupGetProviderIdFromName(pprovidername : *const super::super::super::Win32::Foundation:: UNICODE_STRING, pproviderid : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
310 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
311 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlMupGetProviderInfoFromFileObject(pfileobject : *const super::super::Foundation:: FILE_OBJECT, level : u32, pbuffer : *mut core::ffi::c_void, pbuffersize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
312 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlNormalizeNtstatus(exception : super::super::super::Win32::Foundation:: NTSTATUS, genericexception : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS);
313 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
314 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlNotifyCleanup(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void));
315 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
316 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlNotifyCleanupAll(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY));
317 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
318 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFilterChangeDirectory(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void, fulldirectoryname : *const super::super::super::Win32::System::Kernel:: STRING, watchtree : bool, ignorebuffer : bool, completionfilter : u32, notifyirp : *const super::super::Foundation:: IRP, traversecallback : PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, filtercallback : PFILTER_REPORT_CHANGE));
319 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
320 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFilterReportChange(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fulltargetname : *const super::super::super::Win32::System::Kernel:: STRING, targetnameoffset : u16, streamname : *const super::super::super::Win32::System::Kernel:: STRING, normalizedparentname : *const super::super::super::Win32::System::Kernel:: STRING, filtermatch : u32, action : u32, targetcontext : *const core::ffi::c_void, filtercontext : *const core::ffi::c_void));
321 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
322 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFullChangeDirectory(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void, fulldirectoryname : *mut super::super::super::Win32::System::Kernel:: STRING, watchtree : bool, ignorebuffer : bool, completionfilter : u32, notifyirp : *const super::super::Foundation:: IRP, traversecallback : PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT));
323 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
324 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFullReportChange(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fulltargetname : *const super::super::super::Win32::System::Kernel:: STRING, targetnameoffset : u16, streamname : *const super::super::super::Win32::System::Kernel:: STRING, normalizedparentname : *const super::super::super::Win32::System::Kernel:: STRING, filtermatch : u32, action : u32, targetcontext : *const core::ffi::c_void));
325 #[cfg(feature = "Wdk_Foundation")]
326 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlNotifyInitializeSync(notifysync : *mut super::super::Foundation:: PNOTIFY_SYNC));
327 #[cfg(feature = "Wdk_Foundation")]
328 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlNotifyUninitializeSync(notifysync : *mut super::super::Foundation:: PNOTIFY_SYNC));
329 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
330 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlNotifyVolumeEvent(fileobject : *const super::super::Foundation:: FILE_OBJECT, eventcode : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
331 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
332 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlNotifyVolumeEventEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, eventcode : u32, event : *const super::super::Foundation:: TARGET_DEVICE_CUSTOM_NOTIFICATION) -> super::super::super::Win32::Foundation:: NTSTATUS);
333 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlNumberOfRunsInBaseMcb(mcb : *const BASE_MCB) -> u32);
334 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
335 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlNumberOfRunsInLargeMcb(mcb : *const LARGE_MCB) -> u32);
336 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
337 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlNumberOfRunsInMcb(mcb : *const MCB) -> u32);
338 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
339 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlOplockBreakH(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, flags : u32, context : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, postirproutine : POPLOCK_FS_PREPOST_IRP) -> super::super::super::Win32::Foundation:: NTSTATUS);
340 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
341 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlOplockBreakH2(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, flags : u32, context : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, postirproutine : POPLOCK_FS_PREPOST_IRP, grantedaccess : *const u32, shareaccess : *const u16) -> super::super::super::Win32::Foundation:: NTSTATUS);
342 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
343 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlOplockBreakToNone(oplock : *mut *mut core::ffi::c_void, irpsp : *const super::super::Foundation:: IO_STACK_LOCATION, irp : *const super::super::Foundation:: IRP, context : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, postirproutine : POPLOCK_FS_PREPOST_IRP) -> super::super::super::Win32::Foundation:: NTSTATUS);
344 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
345 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlOplockBreakToNoneEx(oplock : *mut *mut core::ffi::c_void, irp : *const super::super::Foundation:: IRP, flags : u32, context : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, postirproutine : POPLOCK_FS_PREPOST_IRP) -> super::super::super::Win32::Foundation:: NTSTATUS);
346 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
347 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlOplockFsctrl(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, opencount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
348 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
349 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlOplockFsctrlEx(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, opencount : u32, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
350 #[cfg(feature = "Wdk_Foundation")]
351 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlOplockGetAnyBreakOwnerProcess(oplock : *const *const core::ffi::c_void) -> super::super::Foundation:: PEPROCESS);
352 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlOplockIsFastIoPossible(oplock : *const *const core::ffi::c_void) -> bool);
353 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
354 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlOplockIsSharedRequest(irp : *const super::super::Foundation:: IRP) -> bool);
355 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
356 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlOplockKeysEqual(fo1 : *const super::super::Foundation:: FILE_OBJECT, fo2 : *const super::super::Foundation:: FILE_OBJECT) -> bool);
357 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
358 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlPostPagingFileStackOverflow(context : *const core::ffi::c_void, event : *const super::super::Foundation:: KEVENT, stackoverflowroutine : PFSRTL_STACK_OVERFLOW_ROUTINE));
359 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
360 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlPostStackOverflow(context : *const core::ffi::c_void, event : *const super::super::Foundation:: KEVENT, stackoverflowroutine : PFSRTL_STACK_OVERFLOW_ROUTINE));
361 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
362 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlPrepareMdlWriteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool);
363 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
364 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlPrepareMdlWriteEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS);
365 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlPrepareToReuseEcp(ecpcontext : *const core::ffi::c_void));
366 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
367 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlPrivateLock(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : *const i64, processid : super::super::Foundation:: PEPROCESS, key : u32, failimmediately : bool, exclusivelock : bool, iosb : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, irp : *const super::super::Foundation:: IRP, context : *const core::ffi::c_void, alreadysynchronized : bool) -> bool);
368 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
369 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlProcessFileLock(filelock : *const FILE_LOCK, irp : *const super::super::Foundation:: IRP, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
370 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
371 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlQueryCachedVdl(fileobject : *const super::super::Foundation:: FILE_OBJECT, vdl : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS);
372 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
373 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlQueryInformationFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, retfileinformationsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
374 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
375 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlQueryKernelEaFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, returnedeadata : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : bool, lengthreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
376 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlQueryMaximumVirtualDiskNestingLevel() -> u32);
377 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
378 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlRegisterFileSystemFilterCallbacks(filterdriverobject : *const super::super::Foundation:: DRIVER_OBJECT, callbacks : *const FS_FILTER_CALLBACKS) -> super::super::super::Win32::Foundation:: NTSTATUS);
379 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlRegisterUncProvider(muphandle : *mut super::super::super::Win32::Foundation:: HANDLE, redirectordevicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, mailslotssupported : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
380 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
381 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlRegisterUncProviderEx(muphandle : *mut super::super::super::Win32::Foundation:: HANDLE, redirdevname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
382 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
383 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlRegisterUncProviderEx2(redirdevname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, registration : *const FSRTL_UNC_PROVIDER_REGISTRATION, muphandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
384 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
385 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlReleaseFile(fileobject : *const super::super::Foundation:: FILE_OBJECT));
386 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlRemoveBaseMcbEntry(mcb : *mut BASE_MCB, vbn : i64, sectorcount : i64) -> bool);
387 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlRemoveDotsFromPath(originalstring : windows_sys::core::PWSTR, pathlength : u16, newlength : *mut u16) -> super::super::super::Win32::Foundation:: NTSTATUS);
388 #[cfg(feature = "Wdk_Foundation")]
389 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlRemoveExtraCreateParameter(ecplist : *mut super::super::Foundation:: ECP_LIST, ecptype : *const windows_sys::core::GUID, ecpcontext : *mut *mut core::ffi::c_void, ecpcontextsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
390 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
391 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlRemoveLargeMcbEntry(mcb : *mut LARGE_MCB, vbn : i64, sectorcount : i64));
392 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
393 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlRemoveMcbEntry(mcb : *mut MCB, vbn : u32, sectorcount : u32));
394 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
395 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlRemovePerFileContext(perfilecontextpointer : *const *const core::ffi::c_void, ownerid : *const core::ffi::c_void, instanceid : *const core::ffi::c_void) -> *mut FSRTL_PER_FILE_CONTEXT);
396 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
397 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlRemovePerFileObjectContext(fileobject : *const super::super::Foundation:: FILE_OBJECT, ownerid : *const core::ffi::c_void, instanceid : *const core::ffi::c_void) -> *mut FSRTL_PER_FILEOBJECT_CONTEXT);
398 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
399 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlRemovePerStreamContext(streamcontext : *const FSRTL_ADVANCED_FCB_HEADER, ownerid : *const core::ffi::c_void, instanceid : *const core::ffi::c_void) -> *mut FSRTL_PER_STREAM_CONTEXT);
400 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlResetBaseMcb(mcb : *mut BASE_MCB));
401 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
402 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlResetLargeMcb(mcb : *mut LARGE_MCB, selfsynchronized : bool));
403 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
404 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlSetDriverBacking(driverobj : *const super::super::Foundation:: DRIVER_OBJECT, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
405 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
406 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlSetEcpListIntoIrp(irp : *mut super::super::Foundation:: IRP, ecplist : *const super::super::Foundation:: ECP_LIST) -> super::super::super::Win32::Foundation:: NTSTATUS);
407 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
408 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlSetKernelEaFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, eabuffer : *const core::ffi::c_void, length : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
409 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlSplitBaseMcb(mcb : *mut BASE_MCB, vbn : i64, amount : i64) -> bool);
410 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
411 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlSplitLargeMcb(mcb : *mut LARGE_MCB, vbn : i64, amount : i64) -> bool);
412 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlTeardownPerFileContexts(perfilecontextpointer : *const *const core::ffi::c_void));
413 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
414 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlTeardownPerStreamContexts(advancedheader : *const FSRTL_ADVANCED_FCB_HEADER));
415 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlTruncateBaseMcb(mcb : *mut BASE_MCB, vbn : i64));
416 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
417 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlTruncateLargeMcb(mcb : *mut LARGE_MCB, vbn : i64));
418 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
419 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlTruncateMcb(mcb : *mut MCB, vbn : u32));
420 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlUninitializeBaseMcb(mcb : *const BASE_MCB));
421 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
422 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlUninitializeFileLock(filelock : *mut FILE_LOCK));
423 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
424 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlUninitializeLargeMcb(mcb : *mut LARGE_MCB));
425 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
426 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlUninitializeMcb(mcb : *mut MCB));
427 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlUninitializeOplock(oplock : *mut *mut core::ffi::c_void));
428 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlUpdateDiskCounters(bytesread : u64, byteswritten : u64));
429 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
430 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlUpperOplockFsctrl(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, opencount : u32, loweroplockstate : u32, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
431 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlValidateReparsePointBuffer(bufferlength : u32, reparsebuffer : *const REPARSE_DATA_BUFFER) -> super::super::super::Win32::Foundation:: NTSTATUS);
432 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
433 windows_link::link!("ntoskrnl.exe" "system" fn FsRtlVolumeDeviceToCorrelationId(volumedeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, guid : *mut windows_sys::core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS);
434 #[cfg(feature = "Win32_Security_Authentication_Identity")]
435 windows_link::link!("secur32.dll" "system" fn GetSecurityUserInfo(logonid : *const super::super::super::Win32::Foundation:: LUID, flags : u32, userinformation : *mut *mut super::super::super::Win32::Security::Authentication::Identity:: SECURITY_USER_DATA) -> super::super::super::Win32::Foundation:: NTSTATUS);
436 windows_link::link!("ntoskrnl.exe" "system" fn IoAcquireVpbSpinLock(irql : *mut u8));
437 #[cfg(feature = "Wdk_Foundation")]
438 windows_link::link!("ntoskrnl.exe" "system" fn IoApplyPriorityInfoThread(inputpriorityinfo : *const IO_PRIORITY_INFO, outputpriorityinfo : *mut IO_PRIORITY_INFO, thread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: NTSTATUS);
439 windows_link::link!("ntoskrnl.exe" "system" fn IoCheckDesiredAccess(desiredaccess : *mut u32, grantedaccess : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
440 windows_link::link!("ntoskrnl.exe" "system" fn IoCheckEaBufferValidity(eabuffer : *const FILE_FULL_EA_INFORMATION, ealength : u32, erroroffset : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
441 windows_link::link!("ntoskrnl.exe" "system" fn IoCheckFunctionAccess(grantedaccess : u32, majorfunction : u8, minorfunction : u8, iocontrolcode : u32, arg1 : *const core::ffi::c_void, arg2 : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
442 windows_link::link!("ntoskrnl.exe" "system" fn IoCheckQuerySetFileInformation(fileinformationclass : FILE_INFORMATION_CLASS, length : u32, setoperation : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
443 windows_link::link!("ntoskrnl.exe" "system" fn IoCheckQuerySetVolumeInformation(fsinformationclass : FS_INFORMATION_CLASS, length : u32, setoperation : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
444 #[cfg(feature = "Win32_Security")]
445 windows_link::link!("ntoskrnl.exe" "system" fn IoCheckQuotaBufferValidity(quotabuffer : *const FILE_QUOTA_INFORMATION, quotalength : u32, erroroffset : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
446 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
447 windows_link::link!("ntoskrnl.exe" "system" fn IoClearFsTrackOffsetState(irp : *mut super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: NTSTATUS);
448 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
449 windows_link::link!("ntoskrnl.exe" "system" fn IoCreateStreamFileObject(fileobject : *const super::super::Foundation:: FILE_OBJECT, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> *mut super::super::Foundation:: FILE_OBJECT);
450 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
451 windows_link::link!("ntoskrnl.exe" "system" fn IoCreateStreamFileObjectEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, filehandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> *mut super::super::Foundation:: FILE_OBJECT);
452 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
453 windows_link::link!("ntoskrnl.exe" "system" fn IoCreateStreamFileObjectEx2(createoptions : *const IO_CREATE_STREAM_FILE_OPTIONS, fileobject : *const super::super::Foundation:: FILE_OBJECT, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, streamfileobject : *mut *mut super::super::Foundation:: FILE_OBJECT, filehandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
454 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
455 windows_link::link!("ntoskrnl.exe" "system" fn IoCreateStreamFileObjectLite(fileobject : *const super::super::Foundation:: FILE_OBJECT, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> *mut super::super::Foundation:: FILE_OBJECT);
456 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
457 windows_link::link!("ntoskrnl.exe" "system" fn IoEnumerateDeviceObjectList(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, deviceobjectlist : *mut *mut super::super::Foundation:: DEVICE_OBJECT, deviceobjectlistsize : u32, actualnumberdeviceobjects : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
458 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
459 windows_link::link!("ntoskrnl.exe" "system" fn IoEnumerateRegisteredFiltersList(driverobjectlist : *mut *mut super::super::Foundation:: DRIVER_OBJECT, driverobjectlistsize : u32, actualnumberdriverobjects : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
460 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))]
461 windows_link::link!("ntoskrnl.exe" "system" fn IoFastQueryNetworkAttributes(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, desiredaccess : u32, openoptions : u32, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut FILE_NETWORK_OPEN_INFORMATION) -> bool);
462 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
463 windows_link::link!("ntoskrnl.exe" "system" fn IoGetAttachedDevice(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> *mut super::super::Foundation:: DEVICE_OBJECT);
464 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
465 windows_link::link!("ntoskrnl.exe" "system" fn IoGetBaseFileSystemDeviceObject(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> *mut super::super::Foundation:: DEVICE_OBJECT);
466 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
467 windows_link::link!("ntoskrnl.exe" "system" fn IoGetDeviceAttachmentBaseRef(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> *mut super::super::Foundation:: DEVICE_OBJECT);
468 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
469 windows_link::link!("ntoskrnl.exe" "system" fn IoGetDeviceToVerify(thread : super::super::Foundation:: PETHREAD) -> *mut super::super::Foundation:: DEVICE_OBJECT);
470 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
471 windows_link::link!("ntoskrnl.exe" "system" fn IoGetDiskDeviceObject(filesystemdeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, diskdeviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS);
472 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
473 windows_link::link!("ntoskrnl.exe" "system" fn IoGetFsTrackOffsetState(irp : *const super::super::Foundation:: IRP, retfstrackoffsetblob : *mut *mut super::super::super::Win32::System::Ioctl:: IO_IRP_EXT_TRACK_OFFSET_HEADER, rettrackedoffset : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS);
474 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
475 windows_link::link!("ntoskrnl.exe" "system" fn IoGetLowerDeviceObject(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> *mut super::super::Foundation:: DEVICE_OBJECT);
476 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
477 windows_link::link!("ntoskrnl.exe" "system" fn IoGetOplockKeyContext(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> *mut OPLOCK_KEY_ECP_CONTEXT);
478 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
479 windows_link::link!("ntoskrnl.exe" "system" fn IoGetOplockKeyContextEx(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> *mut OPLOCK_KEY_CONTEXT);
480 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
481 windows_link::link!("ntoskrnl.exe" "system" fn IoGetRequestorProcess(irp : *const super::super::Foundation:: IRP) -> super::super::Foundation:: PEPROCESS);
482 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
483 windows_link::link!("ntoskrnl.exe" "system" fn IoGetRequestorProcessId(irp : *const super::super::Foundation:: IRP) -> u32);
484 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
485 windows_link::link!("ntoskrnl.exe" "system" fn IoGetRequestorSessionId(irp : *const super::super::Foundation:: IRP, psessionid : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
486 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
487 windows_link::link!("ntoskrnl.exe" "system" fn IoIrpHasFsTrackOffsetExtensionType(irp : *const super::super::Foundation:: IRP) -> bool);
488 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
489 windows_link::link!("ntoskrnl.exe" "system" fn IoIsOperationSynchronous(irp : *const super::super::Foundation:: IRP) -> bool);
490 #[cfg(feature = "Wdk_Foundation")]
491 windows_link::link!("ntoskrnl.exe" "system" fn IoIsSystemThread(thread : super::super::Foundation:: PETHREAD) -> bool);
492 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
493 windows_link::link!("ntoskrnl.exe" "system" fn IoIsValidNameGraftingBuffer(irp : *const super::super::Foundation:: IRP, reparsebuffer : *const REPARSE_DATA_BUFFER) -> bool);
494 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
495 windows_link::link!("ntoskrnl.exe" "system" fn IoPageRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, memorydescriptorlist : *const super::super::Foundation:: MDL, startingoffset : *const i64, event : *const super::super::Foundation:: KEVENT, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS);
496 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
497 windows_link::link!("ntoskrnl.exe" "system" fn IoQueryFileDosDeviceName(fileobject : *const super::super::Foundation:: FILE_OBJECT, objectnameinformation : *mut *mut super::super::Foundation:: OBJECT_NAME_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS);
498 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
499 windows_link::link!("ntoskrnl.exe" "system" fn IoQueryFileInformation(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileinformationclass : FILE_INFORMATION_CLASS, length : u32, fileinformation : *mut core::ffi::c_void, returnedlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
500 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
501 windows_link::link!("ntoskrnl.exe" "system" fn IoQueryVolumeInformation(fileobject : *const super::super::Foundation:: FILE_OBJECT, fsinformationclass : FS_INFORMATION_CLASS, length : u32, fsinformation : *mut core::ffi::c_void, returnedlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
502 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
503 windows_link::link!("ntoskrnl.exe" "system" fn IoQueueThreadIrp(irp : *const super::super::Foundation:: IRP));
504 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
505 windows_link::link!("ntoskrnl.exe" "system" fn IoRegisterFileSystem(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT));
506 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
507 windows_link::link!("ntoskrnl.exe" "system" fn IoRegisterFsRegistrationChange(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, drivernotificationroutine : super::super::Foundation:: DRIVER_FS_NOTIFICATION) -> super::super::super::Win32::Foundation:: NTSTATUS);
508 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
509 windows_link::link!("ntoskrnl.exe" "system" fn IoRegisterFsRegistrationChangeMountAware(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, drivernotificationroutine : super::super::Foundation:: DRIVER_FS_NOTIFICATION, synchronizewithmounts : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
510 windows_link::link!("ntoskrnl.exe" "system" fn IoReleaseVpbSpinLock(irql : u8));
511 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
512 windows_link::link!("ntoskrnl.exe" "system" fn IoReplaceFileObjectName(fileobject : *const super::super::Foundation:: FILE_OBJECT, newfilename : windows_sys::core::PCWSTR, filenamelength : u16) -> super::super::super::Win32::Foundation:: NTSTATUS);
513 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
514 windows_link::link!("ntoskrnl.exe" "system" fn IoRequestDeviceRemovalForReset(physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
515 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
516 windows_link::link!("ntoskrnl.exe" "system" fn IoRetrievePriorityInfo(irp : *const super::super::Foundation:: IRP, fileobject : *const super::super::Foundation:: FILE_OBJECT, thread : super::super::Foundation:: PETHREAD, priorityinfo : *mut IO_PRIORITY_INFO) -> super::super::super::Win32::Foundation:: NTSTATUS);
517 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
518 windows_link::link!("ntoskrnl.exe" "system" fn IoSetDeviceToVerify(thread : super::super::Foundation:: PETHREAD, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT));
519 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
520 windows_link::link!("ntoskrnl.exe" "system" fn IoSetFsTrackOffsetState(irp : *mut super::super::Foundation:: IRP, fstrackoffsetblob : *const super::super::super::Win32::System::Ioctl:: IO_IRP_EXT_TRACK_OFFSET_HEADER, trackedoffset : i64) -> super::super::super::Win32::Foundation:: NTSTATUS);
521 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
522 windows_link::link!("ntoskrnl.exe" "system" fn IoSetInformation(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileinformationclass : FILE_INFORMATION_CLASS, length : u32, fileinformation : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
523 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
524 windows_link::link!("ntoskrnl.exe" "system" fn IoSynchronousPageWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, memorydescriptorlist : *const super::super::Foundation:: MDL, startingoffset : *const i64, event : *const super::super::Foundation:: KEVENT, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS);
525 #[cfg(feature = "Wdk_Foundation")]
526 windows_link::link!("ntoskrnl.exe" "system" fn IoThreadToProcess(thread : super::super::Foundation:: PETHREAD) -> super::super::Foundation:: PEPROCESS);
527 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
528 windows_link::link!("ntoskrnl.exe" "system" fn IoUnregisterFileSystem(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT));
529 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
530 windows_link::link!("ntoskrnl.exe" "system" fn IoUnregisterFsRegistrationChange(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, drivernotificationroutine : super::super::Foundation:: DRIVER_FS_NOTIFICATION));
531 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
532 windows_link::link!("ntoskrnl.exe" "system" fn IoVerifyVolume(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, allowrawmount : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
533 #[cfg(feature = "Wdk_Foundation")]
534 windows_link::link!("ntoskrnl.exe" "system" fn KeAcquireQueuedSpinLock(number : super::super::Foundation:: KSPIN_LOCK_QUEUE_NUMBER) -> u8);
535 windows_link::link!("ntoskrnl.exe" "system" fn KeAcquireSpinLockRaiseToSynch(spinlock : *mut usize) -> u8);
536 #[cfg(feature = "Wdk_Foundation")]
537 windows_link::link!("ntoskrnl.exe" "system" fn KeAttachProcess(process : super::super::Foundation:: PRKPROCESS));
538 windows_link::link!("ntoskrnl.exe" "system" fn KeDetachProcess());
539 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
540 windows_link::link!("ntoskrnl.exe" "system" fn KeInitializeMutant(mutant : *mut super::super::Foundation:: KMUTANT, initialowner : bool));
541 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
542 windows_link::link!("ntoskrnl.exe" "system" fn KeInitializeQueue(queue : *mut super::super::Foundation:: KQUEUE, count : u32));
543 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
544 windows_link::link!("ntoskrnl.exe" "system" fn KeInsertHeadQueue(queue : *mut super::super::Foundation:: KQUEUE, entry : *mut super::super::super::Win32::System::Kernel:: LIST_ENTRY) -> i32);
545 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
546 windows_link::link!("ntoskrnl.exe" "system" fn KeInsertQueue(queue : *mut super::super::Foundation:: KQUEUE, entry : *mut super::super::super::Win32::System::Kernel:: LIST_ENTRY) -> i32);
547 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
548 windows_link::link!("ntoskrnl.exe" "system" fn KeReadStateMutant(mutant : *const super::super::Foundation:: KMUTANT) -> i32);
549 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
550 windows_link::link!("ntoskrnl.exe" "system" fn KeReadStateQueue(queue : *const super::super::Foundation:: KQUEUE) -> i32);
551 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
552 windows_link::link!("ntoskrnl.exe" "system" fn KeReleaseMutant(mutant : *mut super::super::Foundation:: KMUTANT, increment : i32, abandoned : bool, wait : bool) -> i32);
553 #[cfg(feature = "Wdk_Foundation")]
554 windows_link::link!("ntoskrnl.exe" "system" fn KeReleaseQueuedSpinLock(number : super::super::Foundation:: KSPIN_LOCK_QUEUE_NUMBER, oldirql : u8));
555 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
556 windows_link::link!("ntoskrnl.exe" "system" fn KeRemoveQueue(queue : *mut super::super::Foundation:: KQUEUE, waitmode : i8, timeout : *const i64) -> *mut super::super::super::Win32::System::Kernel:: LIST_ENTRY);
557 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
558 windows_link::link!("ntoskrnl.exe" "system" fn KeRemoveQueueEx(queue : *mut super::super::Foundation:: KQUEUE, waitmode : i8, alertable : bool, timeout : *const i64, entryarray : *mut *mut super::super::super::Win32::System::Kernel:: LIST_ENTRY, count : u32) -> u32);
559 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
560 windows_link::link!("ntoskrnl.exe" "system" fn KeRundownQueue(queue : *mut super::super::Foundation:: KQUEUE) -> *mut super::super::super::Win32::System::Kernel:: LIST_ENTRY);
561 #[cfg(feature = "Wdk_Foundation")]
562 windows_link::link!("ntoskrnl.exe" "system" fn KeSetIdealProcessorThread(thread : super::super::Foundation:: PKTHREAD, processor : u8) -> u8);
563 windows_link::link!("ntoskrnl.exe" "system" fn KeSetKernelStackSwapEnable(enable : bool) -> bool);
564 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
565 windows_link::link!("ntoskrnl.exe" "system" fn KeStackAttachProcess(process : super::super::Foundation:: PRKPROCESS, apcstate : *mut KAPC_STATE));
566 #[cfg(feature = "Wdk_Foundation")]
567 windows_link::link!("ntoskrnl.exe" "system" fn KeTryToAcquireQueuedSpinLock(number : super::super::Foundation:: KSPIN_LOCK_QUEUE_NUMBER, oldirql : *mut u8) -> u32);
568 #[cfg(feature = "Win32_System_Kernel")]
569 windows_link::link!("ntoskrnl.exe" "system" fn KeUnstackDetachProcess(apcstate : *const KAPC_STATE));
570 windows_link::link!("secur32.dll" "system" fn MakeSignature(phcontext : *const SecHandle, fqop : u32, pmessage : *const SecBufferDesc, messageseqno : u32) -> windows_sys::core::HRESULT);
571 windows_link::link!("ksecdd.sys" "system" fn MapSecurityError(secstatus : windows_sys::core::HRESULT) -> super::super::super::Win32::Foundation:: NTSTATUS);
572 #[cfg(feature = "Wdk_Foundation")]
573 windows_link::link!("ntoskrnl.exe" "system" fn MmCanFileBeTruncated(sectionpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, newfilesize : *const i64) -> bool);
574 #[cfg(feature = "Wdk_Foundation")]
575 windows_link::link!("ntoskrnl.exe" "system" fn MmDoesFileHaveUserWritableReferences(sectionpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS) -> u32);
576 #[cfg(feature = "Wdk_Foundation")]
577 windows_link::link!("ntoskrnl.exe" "system" fn MmFlushImageSection(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, flushtype : MMFLUSH_TYPE) -> bool);
578 #[cfg(feature = "Wdk_Foundation")]
579 windows_link::link!("ntoskrnl.exe" "system" fn MmForceSectionClosed(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, delayclose : bool) -> bool);
580 #[cfg(feature = "Wdk_Foundation")]
581 windows_link::link!("ntoskrnl.exe" "system" fn MmForceSectionClosedEx(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, forcecloseflags : u32) -> bool);
582 windows_link::link!("ntoskrnl.exe" "system" fn MmGetMaximumFileSectionSize() -> u64);
583 #[cfg(feature = "Wdk_Foundation")]
584 windows_link::link!("ntoskrnl.exe" "system" fn MmIsFileSectionActive(fssectionpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, flags : u32, sectionisactive : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
585 windows_link::link!("ntoskrnl.exe" "system" fn MmIsRecursiveIoFault() -> bool);
586 #[cfg(feature = "Wdk_Foundation")]
587 windows_link::link!("ntoskrnl.exe" "system" fn MmMdlPagesAreZero(mdl : *const super::super::Foundation:: MDL) -> u32);
588 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
589 windows_link::link!("ntoskrnl.exe" "system" fn MmPrefetchPages(numberoflists : u32, readlists : *const *const READ_LIST) -> super::super::super::Win32::Foundation:: NTSTATUS);
590 windows_link::link!("ntoskrnl.exe" "system" fn MmSetAddressRangeModified(address : *const core::ffi::c_void, length : usize) -> bool);
591 #[cfg(feature = "Win32_Security")]
592 windows_link::link!("ntdll.dll" "system" fn NtAccessCheckAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
593 #[cfg(feature = "Win32_Security")]
594 windows_link::link!("ntdll.dll" "system" fn NtAccessCheckByTypeAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
595 #[cfg(feature = "Win32_Security")]
596 windows_link::link!("ntdll.dll" "system" fn NtAccessCheckByTypeResultListAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
597 #[cfg(feature = "Win32_Security")]
598 windows_link::link!("ntdll.dll" "system" fn NtAccessCheckByTypeResultListAndAuditAlarmByHandle(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
599 #[cfg(feature = "Win32_Security")]
600 windows_link::link!("ntdll.dll" "system" fn NtAdjustGroupsToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, resettodefault : bool, newstate : *const super::super::super::Win32::Security:: TOKEN_GROUPS, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_GROUPS, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
601 #[cfg(feature = "Win32_Security")]
602 windows_link::link!("ntdll.dll" "system" fn NtAdjustPrivilegesToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, disableallprivileges : bool, newstate : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_PRIVILEGES, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
603 windows_link::link!("ntdll.dll" "system" fn NtAllocateVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, zerobits : usize, regionsize : *mut usize, allocationtype : u32, protect : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
604 #[cfg(feature = "Win32_System_Memory")]
605 windows_link::link!("ntdll.dll" "system" fn NtAllocateVirtualMemoryEx(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, regionsize : *mut usize, allocationtype : u32, pageprotection : u32, extendedparameters : *mut super::super::super::Win32::System::Memory:: MEM_EXTENDED_PARAMETER, extendedparametercount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
606 #[cfg(feature = "Win32_System_IO")]
607 windows_link::link!("ntdll.dll" "system" fn NtCancelIoFileEx(filehandle : super::super::super::Win32::Foundation:: HANDLE, iorequesttocancel : *const super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS);
608 windows_link::link!("ntdll.dll" "system" fn NtCloseObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
609 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
610 windows_link::link!("ntdll.dll" "system" fn NtCreateDirectoryObject(directoryhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS);
611 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Kernel"))]
612 windows_link::link!("ntdll.dll" "system" fn NtCreateEvent(eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, eventtype : super::super::super::Win32::System::Kernel:: EVENT_TYPE, initialstate : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
613 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO"))]
614 windows_link::link!("ntdll.dll" "system" fn NtCreateFile(filehandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : super::super::super::Win32::Storage::FileSystem:: FILE_ACCESS_RIGHTS, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, allocationsize : *const i64, fileattributes : super::super::super::Win32::Storage::FileSystem:: FILE_FLAGS_AND_ATTRIBUTES, shareaccess : super::super::super::Win32::Storage::FileSystem:: FILE_SHARE_MODE, createdisposition : NTCREATEFILE_CREATE_DISPOSITION, createoptions : NTCREATEFILE_CREATE_OPTIONS, eabuffer : *const core::ffi::c_void, ealength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
615 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
616 windows_link::link!("ntdll.dll" "system" fn NtCreateSection(sectionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, maximumsize : *const i64, sectionpageprotection : u32, allocationattributes : u32, filehandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
617 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Memory"))]
618 windows_link::link!("ntdll.dll" "system" fn NtCreateSectionEx(sectionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, maximumsize : *const i64, sectionpageprotection : u32, allocationattributes : u32, filehandle : super::super::super::Win32::Foundation:: HANDLE, extendedparameters : *mut super::super::super::Win32::System::Memory:: MEM_EXTENDED_PARAMETER, extendedparametercount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
619 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
620 windows_link::link!("ntdll.dll" "system" fn NtDeleteFile(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS);
621 windows_link::link!("ntdll.dll" "system" fn NtDeleteObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
622 windows_link::link!("ntdll.dll" "system" fn NtDuplicateObject(sourceprocesshandle : super::super::super::Win32::Foundation:: HANDLE, sourcehandle : super::super::super::Win32::Foundation:: HANDLE, targetprocesshandle : super::super::super::Win32::Foundation:: HANDLE, targethandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, handleattributes : u32, options : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
623 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
624 windows_link::link!("ntdll.dll" "system" fn NtDuplicateToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, effectiveonly : bool, tokentype : super::super::super::Win32::Security:: TOKEN_TYPE, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
625 #[cfg(feature = "Win32_Security")]
626 windows_link::link!("ntdll.dll" "system" fn NtFilterToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, sidstodisable : *const super::super::super::Win32::Security:: TOKEN_GROUPS, privilegestodelete : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, restrictedsids : *const super::super::super::Win32::Security:: TOKEN_GROUPS, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
627 #[cfg(feature = "Win32_System_IO")]
628 windows_link::link!("ntdll.dll" "system" fn NtFlushBuffersFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS);
629 #[cfg(feature = "Win32_System_IO")]
630 windows_link::link!("ntdll.dll" "system" fn NtFlushBuffersFileEx(filehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, parameters : *const core::ffi::c_void, parameterssize : u32, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS);
631 #[cfg(feature = "Win32_System_IO")]
632 windows_link::link!("ntdll.dll" "system" fn NtFlushVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, regionsize : *mut usize, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS);
633 windows_link::link!("ntdll.dll" "system" fn NtFreeVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, regionsize : *mut usize, freetype : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
634 #[cfg(feature = "Win32_System_IO")]
635 windows_link::link!("ntdll.dll" "system" fn NtFsControlFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fscontrolcode : u32, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
636 windows_link::link!("ntdll.dll" "system" fn NtImpersonateAnonymousToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
637 #[cfg(feature = "Win32_System_IO")]
638 windows_link::link!("ntdll.dll" "system" fn NtLockFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, byteoffset : *const i64, length : *const i64, key : u32, failimmediately : bool, exclusivelock : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
639 #[cfg(feature = "Win32_System_IO")]
640 windows_link::link!("ntdll.dll" "system" fn NtNotifyChangeKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : bool, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
641 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
642 windows_link::link!("ntdll.dll" "system" fn NtOpenDirectoryObject(directoryhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS);
643 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))]
644 windows_link::link!("ntdll.dll" "system" fn NtOpenFile(filehandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, shareaccess : u32, openoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
645 #[cfg(feature = "Win32_Security")]
646 windows_link::link!("ntdll.dll" "system" fn NtOpenObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, objectcreation : bool, accessgranted : bool, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
647 windows_link::link!("ntdll.dll" "system" fn NtOpenProcessToken(processhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
648 windows_link::link!("ntdll.dll" "system" fn NtOpenProcessTokenEx(processhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
649 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
650 windows_link::link!("ntdll.dll" "system" fn NtOpenSymbolicLinkObject(linkhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS);
651 windows_link::link!("ntdll.dll" "system" fn NtOpenThreadToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : bool, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
652 windows_link::link!("ntdll.dll" "system" fn NtOpenThreadTokenEx(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : bool, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
653 #[cfg(feature = "Win32_Security")]
654 windows_link::link!("ntdll.dll" "system" fn NtPrivilegeCheck(clienttoken : super::super::super::Win32::Foundation:: HANDLE, requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, result : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
655 #[cfg(feature = "Win32_Security")]
656 windows_link::link!("ntdll.dll" "system" fn NtPrivilegeObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
657 #[cfg(feature = "Win32_Security")]
658 windows_link::link!("ntdll.dll" "system" fn NtPrivilegedServiceAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, clienttoken : super::super::super::Win32::Foundation:: HANDLE, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
659 #[cfg(feature = "Win32_System_IO")]
660 windows_link::link!("ntdll.dll" "system" fn NtQueryDirectoryFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, returnsingleentry : bool, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
661 #[cfg(feature = "Win32_System_IO")]
662 windows_link::link!("ntdll.dll" "system" fn NtQueryDirectoryFileEx(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, queryflags : u32, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS);
663 windows_link::link!("ntdll.dll" "system" fn NtQueryDirectoryObject(directoryhandle : super::super::super::Win32::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, restartscan : bool, context : *mut u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
664 #[cfg(feature = "Win32_System_IO")]
665 windows_link::link!("ntdll.dll" "system" fn NtQueryEaFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
666 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
667 windows_link::link!("ntdll.dll" "system" fn NtQueryFullAttributesFile(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, fileinformation : *mut FILE_NETWORK_OPEN_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS);
668 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))]
669 windows_link::link!("ntdll.dll" "system" fn NtQueryInformationByName(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS) -> super::super::super::Win32::Foundation:: NTSTATUS);
670 #[cfg(feature = "Win32_System_IO")]
671 windows_link::link!("ntdll.dll" "system" fn NtQueryInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS) -> super::super::super::Win32::Foundation:: NTSTATUS);
672 #[cfg(feature = "Win32_Security")]
673 windows_link::link!("ntdll.dll" "system" fn NtQueryInformationToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, tokeninformationclass : super::super::super::Win32::Security:: TOKEN_INFORMATION_CLASS, tokeninformation : *mut core::ffi::c_void, tokeninformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
674 #[cfg(all(feature = "Win32_Security", feature = "Win32_System_IO"))]
675 windows_link::link!("ntdll.dll" "system" fn NtQueryQuotaInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : super::super::super::Win32::Security:: PSID, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
676 #[cfg(feature = "Win32_Security")]
677 windows_link::link!("ntdll.dll" "system" fn NtQuerySecurityObject(handle : super::super::super::Win32::Foundation:: HANDLE, securityinformation : u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, length : u32, lengthneeded : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
678 windows_link::link!("ntdll.dll" "system" fn NtQuerySymbolicLinkObject(linkhandle : super::super::super::Win32::Foundation:: HANDLE, linktarget : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, returnedlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
679 windows_link::link!("ntdll.dll" "system" fn NtQueryVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *const core::ffi::c_void, memoryinformationclass : MEMORY_INFORMATION_CLASS, memoryinformation : *mut core::ffi::c_void, memoryinformationlength : usize, returnlength : *mut usize) -> super::super::super::Win32::Foundation:: NTSTATUS);
680 #[cfg(feature = "Win32_System_IO")]
681 windows_link::link!("ntdll.dll" "system" fn NtQueryVolumeInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fsinformation : *mut core::ffi::c_void, length : u32, fsinformationclass : FS_INFORMATION_CLASS) -> super::super::super::Win32::Foundation:: NTSTATUS);
682 #[cfg(feature = "Win32_System_IO")]
683 windows_link::link!("ntdll.dll" "system" fn NtReadFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, byteoffset : *const i64, key : *const u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
684 #[cfg(feature = "Win32_System_IO")]
685 windows_link::link!("ntdll.dll" "system" fn NtSetEaFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *const core::ffi::c_void, length : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
686 windows_link::link!("ntdll.dll" "system" fn NtSetEvent(eventhandle : super::super::super::Win32::Foundation:: HANDLE, previousstate : *mut i32) -> super::super::super::Win32::Foundation:: NTSTATUS);
687 #[cfg(feature = "Win32_System_IO")]
688 windows_link::link!("ntdll.dll" "system" fn NtSetInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *const core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS) -> super::super::super::Win32::Foundation:: NTSTATUS);
689 #[cfg(feature = "Win32_Security")]
690 windows_link::link!("ntdll.dll" "system" fn NtSetInformationToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, tokeninformationclass : super::super::super::Win32::Security:: TOKEN_INFORMATION_CLASS, tokeninformation : *const core::ffi::c_void, tokeninformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
691 windows_link::link!("ntdll.dll" "system" fn NtSetInformationVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, vminformationclass : VIRTUAL_MEMORY_INFORMATION_CLASS, numberofentries : usize, virtualaddresses : *const MEMORY_RANGE_ENTRY, vminformation : *const core::ffi::c_void, vminformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
692 #[cfg(feature = "Win32_System_IO")]
693 windows_link::link!("ntdll.dll" "system" fn NtSetQuotaInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *const core::ffi::c_void, length : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
694 #[cfg(feature = "Win32_Security")]
695 windows_link::link!("ntdll.dll" "system" fn NtSetSecurityObject(handle : super::super::super::Win32::Foundation:: HANDLE, securityinformation : u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
696 #[cfg(feature = "Win32_System_IO")]
697 windows_link::link!("ntdll.dll" "system" fn NtSetVolumeInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fsinformation : *const core::ffi::c_void, length : u32, fsinformationclass : FS_INFORMATION_CLASS) -> super::super::super::Win32::Foundation:: NTSTATUS);
698 #[cfg(feature = "Win32_System_IO")]
699 windows_link::link!("ntdll.dll" "system" fn NtUnlockFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, byteoffset : *const i64, length : *const i64, key : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
700 #[cfg(feature = "Win32_System_IO")]
701 windows_link::link!("ntdll.dll" "system" fn NtWriteFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *const core::ffi::c_void, length : u32, byteoffset : *const i64, key : *const u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
702 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))]
703 windows_link::link!("ntoskrnl.exe" "system" fn ObInsertObject(object : *const core::ffi::c_void, passedaccessstate : *mut super::super::Foundation:: ACCESS_STATE, desiredaccess : u32, objectpointerbias : u32, newobject : *mut *mut core::ffi::c_void, handle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
704 windows_link::link!("ntoskrnl.exe" "system" fn ObIsKernelHandle(handle : super::super::super::Win32::Foundation:: HANDLE) -> bool);
705 windows_link::link!("ntoskrnl.exe" "system" fn ObMakeTemporaryObject(object : *const core::ffi::c_void));
706 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))]
707 windows_link::link!("ntoskrnl.exe" "system" fn ObOpenObjectByPointer(object : *const core::ffi::c_void, handleattributes : u32, passedaccessstate : *const super::super::Foundation:: ACCESS_STATE, desiredaccess : u32, objecttype : super::super::Foundation:: POBJECT_TYPE, accessmode : i8, handle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
708 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))]
709 windows_link::link!("ntoskrnl.exe" "system" fn ObOpenObjectByPointerWithTag(object : *const core::ffi::c_void, handleattributes : u32, passedaccessstate : *const super::super::Foundation:: ACCESS_STATE, desiredaccess : u32, objecttype : super::super::Foundation:: POBJECT_TYPE, accessmode : i8, tag : u32, handle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
710 #[cfg(feature = "Wdk_Foundation")]
711 windows_link::link!("ntoskrnl.exe" "system" fn ObQueryNameString(object : *const core::ffi::c_void, objectnameinfo : *mut super::super::Foundation:: OBJECT_NAME_INFORMATION, length : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
712 windows_link::link!("ntoskrnl.exe" "system" fn ObQueryObjectAuditingByHandle(handle : super::super::super::Win32::Foundation:: HANDLE, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
713 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
714 windows_link::link!("ntdll.dll" "system" fn PfxFindPrefix(prefixtable : *const PREFIX_TABLE, fullname : *const super::super::super::Win32::System::Kernel:: STRING) -> *mut PREFIX_TABLE_ENTRY);
715 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
716 windows_link::link!("ntdll.dll" "system" fn PfxInitialize(prefixtable : *mut PREFIX_TABLE));
717 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
718 windows_link::link!("ntdll.dll" "system" fn PfxInsertPrefix(prefixtable : *const PREFIX_TABLE, prefix : *const super::super::super::Win32::System::Kernel:: STRING, prefixtableentry : *mut PREFIX_TABLE_ENTRY) -> bool);
719 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
720 windows_link::link!("ntdll.dll" "system" fn PfxRemovePrefix(prefixtable : *const PREFIX_TABLE, prefixtableentry : *const PREFIX_TABLE_ENTRY));
721 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
722 windows_link::link!("ntoskrnl.exe" "system" fn PoQueueShutdownWorkItem(workitem : *mut super::super::Foundation:: WORK_QUEUE_ITEM) -> super::super::super::Win32::Foundation:: NTSTATUS);
723 #[cfg(feature = "Wdk_Foundation")]
724 windows_link::link!("ntoskrnl.exe" "system" fn PsAssignImpersonationToken(thread : super::super::Foundation:: PETHREAD, token : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
725 #[cfg(feature = "Wdk_Foundation")]
726 windows_link::link!("ntoskrnl.exe" "system" fn PsChargePoolQuota(process : super::super::Foundation:: PEPROCESS, pooltype : super::super::Foundation:: POOL_TYPE, amount : usize));
727 #[cfg(feature = "Wdk_Foundation")]
728 windows_link::link!("ntoskrnl.exe" "system" fn PsChargeProcessPoolQuota(process : super::super::Foundation:: PEPROCESS, pooltype : super::super::Foundation:: POOL_TYPE, amount : usize) -> super::super::super::Win32::Foundation:: NTSTATUS);
729 windows_link::link!("ntoskrnl.exe" "system" fn PsDereferenceImpersonationToken(impersonationtoken : *const core::ffi::c_void));
730 windows_link::link!("ntoskrnl.exe" "system" fn PsDereferencePrimaryToken(primarytoken : *const core::ffi::c_void));
731 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
732 windows_link::link!("ntoskrnl.exe" "system" fn PsDisableImpersonation(thread : super::super::Foundation:: PETHREAD, impersonationstate : *mut super::super::super::Win32::Security:: SE_IMPERSONATION_STATE) -> bool);
733 windows_link::link!("ntoskrnl.exe" "system" fn PsGetProcessExitTime() -> i64);
734 #[cfg(feature = "Wdk_Foundation")]
735 windows_link::link!("ntoskrnl.exe" "system" fn PsGetThreadProcess(thread : super::super::Foundation:: PETHREAD) -> super::super::Foundation:: PEPROCESS);
736 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
737 windows_link::link!("ntoskrnl.exe" "system" fn PsImpersonateClient(thread : super::super::Foundation:: PETHREAD, token : *const core::ffi::c_void, copyonopen : bool, effectiveonly : bool, impersonationlevel : super::super::super::Win32::Security:: SECURITY_IMPERSONATION_LEVEL) -> super::super::super::Win32::Foundation:: NTSTATUS);
738 windows_link::link!("ntoskrnl.exe" "system" fn PsIsDiskCountersEnabled() -> bool);
739 #[cfg(feature = "Wdk_Foundation")]
740 windows_link::link!("ntoskrnl.exe" "system" fn PsIsSystemThread(thread : super::super::Foundation:: PETHREAD) -> bool);
741 #[cfg(feature = "Wdk_Foundation")]
742 windows_link::link!("ntoskrnl.exe" "system" fn PsIsThreadTerminating(thread : super::super::Foundation:: PETHREAD) -> bool);
743 #[cfg(feature = "Wdk_Foundation")]
744 windows_link::link!("ntoskrnl.exe" "system" fn PsLookupProcessByProcessId(processid : super::super::super::Win32::Foundation:: HANDLE, process : *mut super::super::Foundation:: PEPROCESS) -> super::super::super::Win32::Foundation:: NTSTATUS);
745 #[cfg(feature = "Wdk_Foundation")]
746 windows_link::link!("ntoskrnl.exe" "system" fn PsLookupThreadByThreadId(threadid : super::super::super::Win32::Foundation:: HANDLE, thread : *mut super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: NTSTATUS);
747 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
748 windows_link::link!("ntoskrnl.exe" "system" fn PsReferenceImpersonationToken(thread : super::super::Foundation:: PETHREAD, copyonopen : *mut bool, effectiveonly : *mut bool, impersonationlevel : *mut super::super::super::Win32::Security:: SECURITY_IMPERSONATION_LEVEL) -> *mut core::ffi::c_void);
749 #[cfg(feature = "Wdk_Foundation")]
750 windows_link::link!("ntoskrnl.exe" "system" fn PsReferencePrimaryToken(process : super::super::Foundation:: PEPROCESS) -> *mut core::ffi::c_void);
751 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
752 windows_link::link!("ntoskrnl.exe" "system" fn PsRestoreImpersonation(thread : super::super::Foundation:: PETHREAD, impersonationstate : *const super::super::super::Win32::Security:: SE_IMPERSONATION_STATE));
753 #[cfg(feature = "Wdk_Foundation")]
754 windows_link::link!("ntoskrnl.exe" "system" fn PsReturnPoolQuota(process : super::super::Foundation:: PEPROCESS, pooltype : super::super::Foundation:: POOL_TYPE, amount : usize));
755 windows_link::link!("ntoskrnl.exe" "system" fn PsRevertToSelf());
756 #[cfg(feature = "Wdk_Foundation")]
757 windows_link::link!("ntoskrnl.exe" "system" fn PsUpdateDiskCounters(process : super::super::Foundation:: PEPROCESS, bytesread : u64, byteswritten : u64, readoperationcount : u32, writeoperationcount : u32, flushoperationcount : u32));
758 windows_link::link!("secur32.dll" "system" fn QuerySecurityContextToken(phcontext : *const SecHandle, token : *mut *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
759 #[cfg(feature = "Win32_Security")]
760 windows_link::link!("ntdll.dll" "system" fn RtlAbsoluteToSelfRelativeSD(absolutesecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, selfrelativesecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, bufferlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
761 #[cfg(feature = "Win32_Security")]
762 windows_link::link!("ntdll.dll" "system" fn RtlAddAccessAllowedAce(acl : *mut super::super::super::Win32::Security:: ACL, acerevision : u32, accessmask : u32, sid : super::super::super::Win32::Security:: PSID) -> super::super::super::Win32::Foundation:: NTSTATUS);
763 #[cfg(feature = "Win32_Security")]
764 windows_link::link!("ntdll.dll" "system" fn RtlAddAccessAllowedAceEx(acl : *mut super::super::super::Win32::Security:: ACL, acerevision : u32, aceflags : u32, accessmask : u32, sid : super::super::super::Win32::Security:: PSID) -> super::super::super::Win32::Foundation:: NTSTATUS);
765 #[cfg(feature = "Win32_Security")]
766 windows_link::link!("ntdll.dll" "system" fn RtlAddAce(acl : *mut super::super::super::Win32::Security:: ACL, acerevision : u32, startingaceindex : u32, acelist : *const core::ffi::c_void, acelistlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
767 #[cfg(feature = "Win32_Security")]
768 windows_link::link!("ntdll.dll" "system" fn RtlAllocateAndInitializeSid(identifierauthority : *const super::super::super::Win32::Security:: SID_IDENTIFIER_AUTHORITY, subauthoritycount : u8, subauthority0 : u32, subauthority1 : u32, subauthority2 : u32, subauthority3 : u32, subauthority4 : u32, subauthority5 : u32, subauthority6 : u32, subauthority7 : u32, sid : *mut super::super::super::Win32::Security:: PSID) -> super::super::super::Win32::Foundation:: NTSTATUS);
769 #[cfg(feature = "Win32_Security")]
770 windows_link::link!("ntdll.dll" "system" fn RtlAllocateAndInitializeSidEx(identifierauthority : *const super::super::super::Win32::Security:: SID_IDENTIFIER_AUTHORITY, subauthoritycount : u8, subauthorities : *const u32, sid : *mut super::super::super::Win32::Security:: PSID) -> super::super::super::Win32::Foundation:: NTSTATUS);
771 windows_link::link!("ntdll.dll" "system" fn RtlAllocateHeap(heaphandle : *const core::ffi::c_void, flags : u32, size : usize) -> *mut core::ffi::c_void);
772 #[cfg(feature = "Win32_System_Kernel")]
773 windows_link::link!("ntdll.dll" "system" fn RtlAppendStringToString(destination : *mut super::super::super::Win32::System::Kernel:: STRING, source : *const super::super::super::Win32::System::Kernel:: STRING) -> super::super::super::Win32::Foundation:: NTSTATUS);
774 windows_link::link!("ntdll.dll" "system" fn RtlCompareAltitudes(altitude1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, altitude2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> i32);
775 windows_link::link!("ntdll.dll" "system" fn RtlCompareMemoryUlong(source : *const core::ffi::c_void, length : usize, pattern : u32) -> usize);
776 windows_link::link!("ntdll.dll" "system" fn RtlCompressBuffer(compressionformatandengine : u16, uncompressedbuffer : *const u8, uncompressedbuffersize : u32, compressedbuffer : *mut u8, compressedbuffersize : u32, uncompressedchunksize : u32, finalcompressedsize : *mut u32, workspace : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
777 windows_link::link!("ntoskrnl.exe" "system" fn RtlCompressChunks(uncompressedbuffer : *const u8, uncompressedbuffersize : u32, compressedbuffer : *mut u8, compressedbuffersize : u32, compresseddatainfo : *mut COMPRESSED_DATA_INFO, compresseddatainfolength : u32, workspace : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
778 windows_link::link!("ntdll.dll" "system" fn RtlCopyLuid(destinationluid : *mut super::super::super::Win32::Foundation:: LUID, sourceluid : *const super::super::super::Win32::Foundation:: LUID));
779 #[cfg(feature = "Win32_Security")]
780 windows_link::link!("ntdll.dll" "system" fn RtlCopySid(destinationsidlength : u32, destinationsid : super::super::super::Win32::Security:: PSID, sourcesid : super::super::super::Win32::Security:: PSID) -> super::super::super::Win32::Foundation:: NTSTATUS);
781 #[cfg(feature = "Win32_Security")]
782 windows_link::link!("ntdll.dll" "system" fn RtlCreateAcl(acl : *mut super::super::super::Win32::Security:: ACL, acllength : u32, aclrevision : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
783 windows_link::link!("ntdll.dll" "system" fn RtlCreateHeap(flags : u32, heapbase : *const core::ffi::c_void, reservesize : usize, commitsize : usize, lock : *const core::ffi::c_void, parameters : *const RTL_HEAP_PARAMETERS) -> *mut core::ffi::c_void);
784 #[cfg(feature = "Win32_Security")]
785 windows_link::link!("ntdll.dll" "system" fn RtlCreateServiceSid(servicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, servicesid : super::super::super::Win32::Security:: PSID, servicesidlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
786 windows_link::link!("ntdll.dll" "system" fn RtlCreateSystemVolumeInformationFolder(volumerootpath : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS);
787 windows_link::link!("ntdll.dll" "system" fn RtlCreateUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : windows_sys::core::PCWSTR) -> bool);
788 #[cfg(feature = "Win32_Security")]
789 windows_link::link!("ntdll.dll" "system" fn RtlCreateVirtualAccountSid(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, basesubauthority : u32, sid : super::super::super::Win32::Security:: PSID, sidlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
790 windows_link::link!("ntdll.dll" "system" fn RtlCustomCPToUnicodeN(customcp : *const CPTABLEINFO, unicodestring : windows_sys::core::PWSTR, maxbytesinunicodestring : u32, bytesinunicodestring : *mut u32, customcpstring : windows_sys::core::PCSTR, bytesincustomcpstring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
791 windows_link::link!("ntdll.dll" "system" fn RtlDecompressBuffer(compressionformat : u16, uncompressedbuffer : *mut u8, uncompressedbuffersize : u32, compressedbuffer : *const u8, compressedbuffersize : u32, finaluncompressedsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
792 windows_link::link!("ntdll.dll" "system" fn RtlDecompressBufferEx(compressionformat : u16, uncompressedbuffer : *mut u8, uncompressedbuffersize : u32, compressedbuffer : *const u8, compressedbuffersize : u32, finaluncompressedsize : *mut u32, workspace : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
793 windows_link::link!("ntoskrnl.exe" "system" fn RtlDecompressBufferEx2(compressionformat : u16, uncompressedbuffer : *mut u8, uncompressedbuffersize : u32, compressedbuffer : *const u8, compressedbuffersize : u32, uncompressedchunksize : u32, finaluncompressedsize : *mut u32, workspace : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
794 windows_link::link!("ntoskrnl.exe" "system" fn RtlDecompressChunks(uncompressedbuffer : *mut u8, uncompressedbuffersize : u32, compressedbuffer : *const u8, compressedbuffersize : u32, compressedtail : *const u8, compressedtailsize : u32, compresseddatainfo : *const COMPRESSED_DATA_INFO) -> super::super::super::Win32::Foundation:: NTSTATUS);
795 windows_link::link!("ntdll.dll" "system" fn RtlDecompressFragment(compressionformat : u16, uncompressedfragment : *mut u8, uncompressedfragmentsize : u32, compressedbuffer : *const u8, compressedbuffersize : u32, fragmentoffset : u32, finaluncompressedsize : *mut u32, workspace : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
796 windows_link::link!("ntoskrnl.exe" "system" fn RtlDecompressFragmentEx(compressionformat : u16, uncompressedfragment : *mut u8, uncompressedfragmentsize : u32, compressedbuffer : *const u8, compressedbuffersize : u32, fragmentoffset : u32, uncompressedchunksize : u32, finaluncompressedsize : *mut u32, workspace : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
797 #[cfg(feature = "Win32_Security")]
798 windows_link::link!("ntdll.dll" "system" fn RtlDeleteAce(acl : *mut super::super::super::Win32::Security:: ACL, aceindex : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
799 windows_link::link!("ntoskrnl.exe" "system" fn RtlDescribeChunk(compressionformat : u16, compressedbuffer : *mut *mut u8, endofcompressedbufferplus1 : *const u8, chunkbuffer : *mut *mut u8, chunksize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
800 windows_link::link!("ntdll.dll" "system" fn RtlDestroyHeap(heaphandle : *const core::ffi::c_void) -> *mut core::ffi::c_void);
801 windows_link::link!("ntdll.dll" "system" fn RtlDosPathNameToNtPathName_U_WithStatus(dosfilename : windows_sys::core::PCWSTR, ntfilename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, filepart : *mut windows_sys::core::PWSTR, reserved : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
802 windows_link::link!("ntdll.dll" "system" fn RtlDowncaseUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
803 windows_link::link!("ntdll.dll" "system" fn RtlDuplicateUnicodeString(flags : u32, stringin : *const super::super::super::Win32::Foundation:: UNICODE_STRING, stringout : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS);
804 #[cfg(feature = "Win32_Security")]
805 windows_link::link!("ntdll.dll" "system" fn RtlEqualPrefixSid(sid1 : super::super::super::Win32::Security:: PSID, sid2 : super::super::super::Win32::Security:: PSID) -> bool);
806 #[cfg(feature = "Win32_Security")]
807 windows_link::link!("ntdll.dll" "system" fn RtlEqualSid(sid1 : super::super::super::Win32::Security:: PSID, sid2 : super::super::super::Win32::Security:: PSID) -> bool);
808 #[cfg(feature = "Wdk_Foundation")]
809 windows_link::link!("ntoskrnl.exe" "system" fn RtlFindUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, fullname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitiveindex : u32) -> *mut UNICODE_PREFIX_TABLE_ENTRY);
810 windows_link::link!("ntdll.dll" "system" fn RtlFreeHeap(heaphandle : *const core::ffi::c_void, flags : u32, baseaddress : *const core::ffi::c_void) -> u32);
811 #[cfg(feature = "Win32_Security")]
812 windows_link::link!("ntdll.dll" "system" fn RtlFreeSid(sid : super::super::super::Win32::Security:: PSID) -> *mut core::ffi::c_void);
813 windows_link::link!("ntdll.dll" "system" fn RtlGenerate8dot3Name(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allowextendedcharacters : bool, context : *mut GENERATE_NAME_CONTEXT, name8dot3 : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS);
814 #[cfg(feature = "Win32_Security")]
815 windows_link::link!("ntdll.dll" "system" fn RtlGetAce(acl : *const super::super::super::Win32::Security:: ACL, aceindex : u32, ace : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
816 windows_link::link!("ntdll.dll" "system" fn RtlGetCompressionWorkSpaceSize(compressionformatandengine : u16, compressbufferworkspacesize : *mut u32, compressfragmentworkspacesize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
817 #[cfg(feature = "Win32_Security")]
818 windows_link::link!("ntdll.dll" "system" fn RtlGetDaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, daclpresent : *mut bool, dacl : *mut *mut super::super::super::Win32::Security:: ACL, dacldefaulted : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
819 #[cfg(feature = "Win32_Security")]
820 windows_link::link!("ntdll.dll" "system" fn RtlGetGroupSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, group : *mut super::super::super::Win32::Security:: PSID, groupdefaulted : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
821 #[cfg(feature = "Win32_Security")]
822 windows_link::link!("ntdll.dll" "system" fn RtlGetOwnerSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, owner : *mut super::super::super::Win32::Security:: PSID, ownerdefaulted : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
823 #[cfg(feature = "Win32_Security")]
824 windows_link::link!("ntdll.dll" "system" fn RtlGetSaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, saclpresent : *mut bool, sacl : *mut *mut super::super::super::Win32::Security:: ACL, sacldefaulted : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
825 #[cfg(feature = "Win32_Security")]
826 windows_link::link!("ntdll.dll" "system" fn RtlIdentifierAuthoritySid(sid : super::super::super::Win32::Security:: PSID) -> *mut super::super::super::Win32::Security:: SID_IDENTIFIER_AUTHORITY);
827 windows_link::link!("ntdll.dll" "system" fn RtlIdnToAscii(flags : u32, sourcestring : windows_sys::core::PCWSTR, sourcestringlength : i32, destinationstring : windows_sys::core::PWSTR, destinationstringlength : *mut i32) -> super::super::super::Win32::Foundation:: NTSTATUS);
828 windows_link::link!("ntdll.dll" "system" fn RtlIdnToNameprepUnicode(flags : u32, sourcestring : windows_sys::core::PCWSTR, sourcestringlength : i32, destinationstring : windows_sys::core::PWSTR, destinationstringlength : *mut i32) -> super::super::super::Win32::Foundation:: NTSTATUS);
829 windows_link::link!("ntdll.dll" "system" fn RtlIdnToUnicode(flags : u32, sourcestring : windows_sys::core::PCWSTR, sourcestringlength : i32, destinationstring : windows_sys::core::PWSTR, destinationstringlength : *mut i32) -> super::super::super::Win32::Foundation:: NTSTATUS);
830 windows_link::link!("ntdll.dll" "system" fn RtlInitCodePageTable(tablebase : *const u16, codepagetable : *mut CPTABLEINFO));
831 windows_link::link!("ntdll.dll" "system" fn RtlInitUnicodeStringEx(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : windows_sys::core::PCWSTR) -> super::super::super::Win32::Foundation:: NTSTATUS);
832 #[cfg(feature = "Win32_Security")]
833 windows_link::link!("ntdll.dll" "system" fn RtlInitializeSid(sid : super::super::super::Win32::Security:: PSID, identifierauthority : *const super::super::super::Win32::Security:: SID_IDENTIFIER_AUTHORITY, subauthoritycount : u8) -> super::super::super::Win32::Foundation:: NTSTATUS);
834 #[cfg(feature = "Win32_Security")]
835 windows_link::link!("ntdll.dll" "C" fn RtlInitializeSidEx(sid : super::super::super::Win32::Security:: PSID, identifierauthority : *const super::super::super::Win32::Security:: SID_IDENTIFIER_AUTHORITY, subauthoritycount : u8, ...) -> super::super::super::Win32::Foundation:: NTSTATUS);
836 #[cfg(feature = "Wdk_Foundation")]
837 windows_link::link!("ntoskrnl.exe" "system" fn RtlInitializeUnicodePrefix(prefixtable : *mut UNICODE_PREFIX_TABLE));
838 #[cfg(feature = "Wdk_Foundation")]
839 windows_link::link!("ntoskrnl.exe" "system" fn RtlInsertUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, prefix : *const super::super::super::Win32::Foundation:: UNICODE_STRING, prefixtableentry : *mut UNICODE_PREFIX_TABLE_ENTRY) -> bool);
840 windows_link::link!("ntdll.dll" "system" fn RtlIsCloudFilesPlaceholder(fileattributes : u32, reparsetag : u32) -> bool);
841 windows_link::link!("ntdll.dll" "system" fn RtlIsDosDeviceName_U(dosfilename : windows_sys::core::PCWSTR) -> u32);
842 windows_link::link!("ntdll.dll" "system" fn RtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag : u32) -> bool);
843 windows_link::link!("ntdll.dll" "system" fn RtlIsNormalizedString(normform : u32, sourcestring : windows_sys::core::PCWSTR, sourcestringlength : i32, normalized : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
844 windows_link::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholder(fileattributes : u32, reparsetag : u32) -> bool);
845 windows_link::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholderFileHandle(filehandle : super::super::super::Win32::Foundation:: HANDLE, ispartialplaceholder : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
846 windows_link::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholderFileInfo(infobuffer : *const core::ffi::c_void, infoclass : FILE_INFORMATION_CLASS, ispartialplaceholder : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
847 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
848 windows_link::link!("ntoskrnl.exe" "system" fn RtlIsSandboxedToken(context : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, previousmode : i8) -> bool);
849 windows_link::link!("ntoskrnl.exe" "system" fn RtlIsValidOemCharacter(char : windows_sys::core::PWSTR) -> bool);
850 windows_link::link!("ntdll.dll" "system" fn RtlLengthRequiredSid(subauthoritycount : u32) -> u32);
851 #[cfg(feature = "Win32_Security")]
852 windows_link::link!("ntdll.dll" "system" fn RtlLengthSid(sid : super::super::super::Win32::Security:: PSID) -> u32);
853 windows_link::link!("ntdll.dll" "system" fn RtlMultiByteToUnicodeN(unicodestring : windows_sys::core::PWSTR, maxbytesinunicodestring : u32, bytesinunicodestring : *mut u32, multibytestring : windows_sys::core::PCSTR, bytesinmultibytestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
854 windows_link::link!("ntdll.dll" "system" fn RtlMultiByteToUnicodeSize(bytesinunicodestring : *mut u32, multibytestring : windows_sys::core::PCSTR, bytesinmultibytestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
855 #[cfg(feature = "Wdk_Foundation")]
856 windows_link::link!("ntoskrnl.exe" "system" fn RtlNextUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, restart : bool) -> *mut UNICODE_PREFIX_TABLE_ENTRY);
857 windows_link::link!("ntdll.dll" "system" fn RtlNormalizeString(normform : u32, sourcestring : windows_sys::core::PCWSTR, sourcestringlength : i32, destinationstring : windows_sys::core::PWSTR, destinationstringlength : *mut i32) -> super::super::super::Win32::Foundation:: NTSTATUS);
858 windows_link::link!("ntdll.dll" "system" fn RtlNtStatusToDosErrorNoTeb(status : super::super::super::Win32::Foundation:: NTSTATUS) -> u32);
859 #[cfg(feature = "Win32_System_Kernel")]
860 windows_link::link!("ntoskrnl.exe" "system" fn RtlOemStringToCountedUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
861 #[cfg(feature = "Win32_System_Kernel")]
862 windows_link::link!("ntdll.dll" "system" fn RtlOemStringToUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
863 windows_link::link!("ntdll.dll" "system" fn RtlOemToUnicodeN(unicodestring : windows_sys::core::PWSTR, maxbytesinunicodestring : u32, bytesinunicodestring : *mut u32, oemstring : windows_sys::core::PCSTR, bytesinoemstring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
864 #[cfg(feature = "Win32_System_Kernel")]
865 windows_link::link!("ntdll.dll" "system" fn RtlPrefixString(string1 : *const super::super::super::Win32::System::Kernel:: STRING, string2 : *const super::super::super::Win32::System::Kernel:: STRING, caseinsensitive : bool) -> bool);
866 windows_link::link!("ntdll.dll" "system" fn RtlQueryPackageIdentity(tokenobject : *const core::ffi::c_void, packagefullname : windows_sys::core::PWSTR, packagesize : *mut usize, appid : windows_sys::core::PWSTR, appidsize : *mut usize, packaged : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
867 windows_link::link!("ntdll.dll" "system" fn RtlQueryPackageIdentityEx(tokenobject : *const core::ffi::c_void, packagefullname : windows_sys::core::PWSTR, packagesize : *mut usize, appid : windows_sys::core::PWSTR, appidsize : *mut usize, dynamicid : *mut windows_sys::core::GUID, flags : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS);
868 windows_link::link!("ntdll.dll" "system" fn RtlQueryProcessPlaceholderCompatibilityMode() -> i8);
869 windows_link::link!("ntdll.dll" "system" fn RtlQueryThreadPlaceholderCompatibilityMode() -> i8);
870 windows_link::link!("ntdll.dll" "system" fn RtlRandom(seed : *mut u32) -> u32);
871 windows_link::link!("ntdll.dll" "system" fn RtlRandomEx(seed : *mut u32) -> u32);
872 #[cfg(feature = "Wdk_Foundation")]
873 windows_link::link!("ntoskrnl.exe" "system" fn RtlRemoveUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, prefixtableentry : *const UNICODE_PREFIX_TABLE_ENTRY));
874 #[cfg(feature = "Win32_Security")]
875 windows_link::link!("ntdll.dll" "system" fn RtlReplaceSidInSd(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, oldsid : super::super::super::Win32::Security:: PSID, newsid : super::super::super::Win32::Security:: PSID, numchanges : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
876 windows_link::link!("ntoskrnl.exe" "system" fn RtlReserveChunk(compressionformat : u16, compressedbuffer : *mut *mut u8, endofcompressedbufferplus1 : *const u8, chunkbuffer : *mut *mut u8, chunksize : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
877 windows_link::link!("ntdll.dll" "system" fn RtlSecondsSince1970ToTime(elapsedseconds : u32, time : *mut i64));
878 windows_link::link!("ntdll.dll" "system" fn RtlSecondsSince1980ToTime(elapsedseconds : u32, time : *mut i64));
879 #[cfg(feature = "Win32_Security")]
880 windows_link::link!("ntdll.dll" "system" fn RtlSelfRelativeToAbsoluteSD(selfrelativesecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, absolutesecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, absolutesecuritydescriptorsize : *mut u32, dacl : *mut super::super::super::Win32::Security:: ACL, daclsize : *mut u32, sacl : *mut super::super::super::Win32::Security:: ACL, saclsize : *mut u32, owner : super::super::super::Win32::Security:: PSID, ownersize : *mut u32, primarygroup : super::super::super::Win32::Security:: PSID, primarygroupsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
881 #[cfg(feature = "Win32_Security")]
882 windows_link::link!("ntdll.dll" "system" fn RtlSetGroupSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, group : super::super::super::Win32::Security:: PSID, groupdefaulted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
883 #[cfg(feature = "Win32_Security")]
884 windows_link::link!("ntdll.dll" "system" fn RtlSetOwnerSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, owner : super::super::super::Win32::Security:: PSID, ownerdefaulted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
885 windows_link::link!("ntdll.dll" "system" fn RtlSetProcessPlaceholderCompatibilityMode(mode : i8) -> i8);
886 windows_link::link!("ntdll.dll" "system" fn RtlSetThreadPlaceholderCompatibilityMode(mode : i8) -> i8);
887 #[cfg(feature = "Win32_Security")]
888 windows_link::link!("ntdll.dll" "system" fn RtlSubAuthorityCountSid(sid : super::super::super::Win32::Security:: PSID) -> *mut u8);
889 #[cfg(feature = "Win32_Security")]
890 windows_link::link!("ntdll.dll" "system" fn RtlSubAuthoritySid(sid : super::super::super::Win32::Security:: PSID, subauthority : u32) -> *mut u32);
891 windows_link::link!("ntdll.dll" "system" fn RtlTimeToSecondsSince1980(time : *const i64, elapsedseconds : *mut u32) -> bool);
892 #[cfg(feature = "Win32_System_Kernel")]
893 windows_link::link!("ntdll.dll" "system" fn RtlUnicodeStringToCountedOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
894 windows_link::link!("ntdll.dll" "system" fn RtlUnicodeToCustomCPN(customcp : *const CPTABLEINFO, customcpstring : windows_sys::core::PSTR, maxbytesincustomcpstring : u32, bytesincustomcpstring : *mut u32, unicodestring : windows_sys::core::PCWSTR, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
895 windows_link::link!("ntdll.dll" "system" fn RtlUnicodeToMultiByteN(multibytestring : windows_sys::core::PSTR, maxbytesinmultibytestring : u32, bytesinmultibytestring : *mut u32, unicodestring : *const u16, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
896 windows_link::link!("ntdll.dll" "system" fn RtlUnicodeToOemN(oemstring : windows_sys::core::PSTR, maxbytesinoemstring : u32, bytesinoemstring : *mut u32, unicodestring : *const u16, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
897 #[cfg(feature = "Win32_System_Kernel")]
898 windows_link::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeStringToCountedOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
899 #[cfg(feature = "Win32_System_Kernel")]
900 windows_link::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeStringToOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
901 windows_link::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeToCustomCPN(customcp : *const CPTABLEINFO, customcpstring : windows_sys::core::PSTR, maxbytesincustomcpstring : u32, bytesincustomcpstring : *mut u32, unicodestring : windows_sys::core::PCWSTR, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
902 windows_link::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeToMultiByteN(multibytestring : windows_sys::core::PSTR, maxbytesinmultibytestring : u32, bytesinmultibytestring : *mut u32, unicodestring : *const u16, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
903 windows_link::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeToOemN(oemstring : windows_sys::core::PSTR, maxbytesinoemstring : u32, bytesinoemstring : *mut u32, unicodestring : *const u16, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
904 #[cfg(feature = "Win32_Security")]
905 windows_link::link!("ntdll.dll" "system" fn RtlValidSid(sid : super::super::super::Win32::Security:: PSID) -> bool);
906 windows_link::link!("ntdll.dll" "system" fn RtlValidateUnicodeString(flags : u32, string : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS);
907 #[cfg(feature = "Win32_System_Kernel")]
908 windows_link::link!("ntdll.dll" "system" fn RtlxOemStringToUnicodeSize(oemstring : *const super::super::super::Win32::System::Kernel:: STRING) -> u32);
909 windows_link::link!("ntdll.dll" "system" fn RtlxUnicodeStringToOemSize(unicodestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> u32);
910 #[cfg(feature = "Win32_Security")]
911 windows_link::link!("ntoskrnl.exe" "system" fn SeAccessCheckFromState(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, primarytokeninformation : *const super::super::super::Win32::Security:: TOKEN_ACCESS_INFORMATION, clienttokeninformation : *const super::super::super::Win32::Security:: TOKEN_ACCESS_INFORMATION, desiredaccess : u32, previouslygrantedaccess : u32, privileges : *mut *mut super::super::super::Win32::Security:: PRIVILEGE_SET, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, accessmode : i8, grantedaccess : *mut u32, accessstatus : *mut i32) -> bool);
912 #[cfg(feature = "Win32_Security")]
913 windows_link::link!("ntoskrnl.exe" "system" fn SeAccessCheckFromStateEx(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, primarytoken : *const core::ffi::c_void, clienttoken : *const core::ffi::c_void, desiredaccess : u32, previouslygrantedaccess : u32, privileges : *mut *mut super::super::super::Win32::Security:: PRIVILEGE_SET, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, accessmode : i8, grantedaccess : *mut u32, accessstatus : *mut i32) -> bool);
914 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))]
915 windows_link::link!("ntoskrnl.exe" "system" fn SeAdjustAccessStateForAccessConstraints(objecttype : *const core::ffi::c_void, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *mut super::super::Foundation:: ACCESS_STATE));
916 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))]
917 windows_link::link!("ntoskrnl.exe" "system" fn SeAdjustAccessStateForTrustLabel(objecttype : *const core::ffi::c_void, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *mut super::super::Foundation:: ACCESS_STATE));
918 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
919 windows_link::link!("ntoskrnl.exe" "system" fn SeAdjustObjectSecurity(objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, originaldescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, proposeddescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, adjusteddescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, applyadjusteddescriptor : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
920 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))]
921 windows_link::link!("ntoskrnl.exe" "system" fn SeAppendPrivileges(accessstate : *mut super::super::Foundation:: ACCESS_STATE, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET) -> super::super::super::Win32::Foundation:: NTSTATUS);
922 windows_link::link!("ntoskrnl.exe" "system" fn SeAuditFipsCryptoSelftests(bsuccess : bool, selftestcode : u32));
923 windows_link::link!("ntoskrnl.exe" "system" fn SeAuditHardLinkCreation(filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, linkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, bsuccess : bool));
924 windows_link::link!("ntoskrnl.exe" "system" fn SeAuditHardLinkCreationWithTransaction(filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, linkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, bsuccess : bool, transactionid : *const windows_sys::core::GUID));
925 windows_link::link!("ntoskrnl.exe" "system" fn SeAuditTransactionStateChange(transactionid : *const windows_sys::core::GUID, resourcemanagerid : *const windows_sys::core::GUID, newtransactionstate : u32));
926 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
927 windows_link::link!("ntoskrnl.exe" "system" fn SeAuditingAnyFileEventsWithContext(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> bool);
928 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
929 windows_link::link!("ntoskrnl.exe" "system" fn SeAuditingAnyFileEventsWithContextEx(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, stagingenabled : *mut bool) -> bool);
930 #[cfg(feature = "Win32_Security")]
931 windows_link::link!("ntoskrnl.exe" "system" fn SeAuditingFileEvents(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> bool);
932 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
933 windows_link::link!("ntoskrnl.exe" "system" fn SeAuditingFileEventsWithContext(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> bool);
934 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
935 windows_link::link!("ntoskrnl.exe" "system" fn SeAuditingFileEventsWithContextEx(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, stagingenabled : *mut bool) -> bool);
936 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
937 windows_link::link!("ntoskrnl.exe" "system" fn SeAuditingFileOrGlobalEvents(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> bool);
938 #[cfg(feature = "Win32_Security")]
939 windows_link::link!("ntoskrnl.exe" "system" fn SeAuditingHardLinkEvents(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> bool);
940 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
941 windows_link::link!("ntoskrnl.exe" "system" fn SeAuditingHardLinkEventsWithContext(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> bool);
942 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
943 windows_link::link!("ntoskrnl.exe" "system" fn SeCaptureSubjectContextEx(thread : super::super::Foundation:: PETHREAD, process : super::super::Foundation:: PEPROCESS, subjectcontext : *mut super::super::Foundation:: SECURITY_SUBJECT_CONTEXT));
944 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
945 windows_link::link!("ntoskrnl.exe" "system" fn SeCheckForCriticalAceRemoval(currentdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, aceremoved : *mut bool));
946 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
947 windows_link::link!("ntoskrnl.exe" "system" fn SeCreateClientSecurity(clientthread : super::super::Foundation:: PETHREAD, clientsecurityqos : *const super::super::super::Win32::Security:: SECURITY_QUALITY_OF_SERVICE, remotesession : bool, clientcontext : *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS);
948 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
949 windows_link::link!("ntoskrnl.exe" "system" fn SeCreateClientSecurityFromSubjectContext(subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, clientsecurityqos : *const super::super::super::Win32::Security:: SECURITY_QUALITY_OF_SERVICE, serverisremote : bool, clientcontext : *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS);
950 #[cfg(feature = "Win32_Security")]
951 windows_link::link!("ntoskrnl.exe" "system" fn SeDeleteClientSecurity(clientcontext : *mut SECURITY_CLIENT_CONTEXT));
952 windows_link::link!("ntoskrnl.exe" "system" fn SeDeleteObjectAuditAlarm(object : *const core::ffi::c_void, handle : super::super::super::Win32::Foundation:: HANDLE));
953 windows_link::link!("ntoskrnl.exe" "system" fn SeDeleteObjectAuditAlarmWithTransaction(object : *const core::ffi::c_void, handle : super::super::super::Win32::Foundation:: HANDLE, transactionid : *const windows_sys::core::GUID));
954 #[cfg(feature = "Win32_Security")]
955 windows_link::link!("ntoskrnl.exe" "system" fn SeExamineSacl(sacl : *const super::super::super::Win32::Security:: ACL, resourcesacl : *const super::super::super::Win32::Security:: ACL, token : *const core::ffi::c_void, desiredaccess : u32, accessgranted : bool, generateaudit : *mut bool, generatealarm : *mut bool));
956 #[cfg(feature = "Win32_Security")]
957 windows_link::link!("ntoskrnl.exe" "system" fn SeFilterToken(existingtoken : *const core::ffi::c_void, flags : u32, sidstodisable : *const super::super::super::Win32::Security:: TOKEN_GROUPS, privilegestodelete : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, restrictedsids : *const super::super::super::Win32::Security:: TOKEN_GROUPS, filteredtoken : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
958 #[cfg(feature = "Win32_Security")]
959 windows_link::link!("ntoskrnl.exe" "system" fn SeFreePrivileges(privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET));
960 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
961 windows_link::link!("ntoskrnl.exe" "system" fn SeImpersonateClient(clientcontext : *const SECURITY_CLIENT_CONTEXT, serverthread : super::super::Foundation:: PETHREAD));
962 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
963 windows_link::link!("ntoskrnl.exe" "system" fn SeImpersonateClientEx(clientcontext : *const SECURITY_CLIENT_CONTEXT, serverthread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: NTSTATUS);
964 #[cfg(feature = "Wdk_Foundation")]
965 windows_link::link!("ntoskrnl.exe" "system" fn SeLocateProcessImageName(process : super::super::Foundation:: PEPROCESS, pimagefilename : *mut *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS);
966 windows_link::link!("ntoskrnl.exe" "system" fn SeMarkLogonSessionForTerminationNotification(logonid : *const super::super::super::Win32::Foundation:: LUID) -> super::super::super::Win32::Foundation:: NTSTATUS);
967 #[cfg(feature = "Wdk_Foundation")]
968 windows_link::link!("ntoskrnl.exe" "system" fn SeMarkLogonSessionForTerminationNotificationEx(logonid : *const super::super::super::Win32::Foundation:: LUID, pserversilo : super::super::Foundation:: PESILO) -> super::super::super::Win32::Foundation:: NTSTATUS);
969 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))]
970 windows_link::link!("ntoskrnl.exe" "system" fn SeOpenObjectAuditAlarm(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : bool, accessgranted : bool, accessmode : i8, generateonclose : *mut bool));
971 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))]
972 windows_link::link!("ntoskrnl.exe" "system" fn SeOpenObjectAuditAlarmWithTransaction(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : bool, accessgranted : bool, accessmode : i8, transactionid : *const windows_sys::core::GUID, generateonclose : *mut bool));
973 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))]
974 windows_link::link!("ntoskrnl.exe" "system" fn SeOpenObjectForDeleteAuditAlarm(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : bool, accessgranted : bool, accessmode : i8, generateonclose : *mut bool));
975 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))]
976 windows_link::link!("ntoskrnl.exe" "system" fn SeOpenObjectForDeleteAuditAlarmWithTransaction(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : bool, accessgranted : bool, accessmode : i8, transactionid : *const windows_sys::core::GUID, generateonclose : *mut bool));
977 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
978 windows_link::link!("ntoskrnl.exe" "system" fn SePrivilegeCheck(requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, accessmode : i8) -> bool);
979 windows_link::link!("ntoskrnl.exe" "system" fn SeQueryAuthenticationIdToken(token : *const core::ffi::c_void, authenticationid : *mut super::super::super::Win32::Foundation:: LUID) -> super::super::super::Win32::Foundation:: NTSTATUS);
980 #[cfg(feature = "Win32_Security")]
981 windows_link::link!("ntoskrnl.exe" "system" fn SeQueryInformationToken(token : *const core::ffi::c_void, tokeninformationclass : super::super::super::Win32::Security:: TOKEN_INFORMATION_CLASS, tokeninformation : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
982 #[cfg(feature = "Win32_Security")]
983 windows_link::link!("ntoskrnl.exe" "system" fn SeQuerySecurityDescriptorInfo(securityinformation : *const u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, length : *mut u32, objectssecuritydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
984 #[cfg(feature = "Wdk_Foundation")]
985 windows_link::link!("ntoskrnl.exe" "system" fn SeQueryServerSiloToken(token : *const core::ffi::c_void, pserversilo : *mut super::super::Foundation:: PESILO) -> super::super::super::Win32::Foundation:: NTSTATUS);
986 windows_link::link!("ntoskrnl.exe" "system" fn SeQuerySessionIdToken(token : *const core::ffi::c_void, sessionid : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
987 windows_link::link!("ntoskrnl.exe" "system" fn SeQuerySessionIdTokenEx(token : *const core::ffi::c_void, sessionid : *mut u32, isservicesession : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
988 windows_link::link!("ntoskrnl.exe" "system" fn SeRegisterLogonSessionTerminatedRoutine(callbackroutine : PSE_LOGON_SESSION_TERMINATED_ROUTINE) -> super::super::super::Win32::Foundation:: NTSTATUS);
989 windows_link::link!("ntoskrnl.exe" "system" fn SeRegisterLogonSessionTerminatedRoutineEx(callbackroutine : PSE_LOGON_SESSION_TERMINATED_ROUTINE_EX, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
990 #[cfg(feature = "Win32_Security_Authentication_Identity")]
991 windows_link::link!("ntoskrnl.exe" "system" fn SeReportSecurityEventWithSubCategory(flags : u32, sourcename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, usersid : super::super::super::Win32::Security:: PSID, auditparameters : *const super::super::super::Win32::Security::Authentication::Identity:: SE_ADT_PARAMETER_ARRAY, auditsubcategoryid : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
992 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))]
993 windows_link::link!("ntoskrnl.exe" "system" fn SeSetAccessStateGenericMapping(accessstate : *mut super::super::Foundation:: ACCESS_STATE, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING));
994 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
995 windows_link::link!("ntoskrnl.exe" "system" fn SeSetSecurityDescriptorInfo(object : *const core::ffi::c_void, securityinformation : *const u32, modificationdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, objectssecuritydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, pooltype : super::super::Foundation:: POOL_TYPE, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING) -> super::super::super::Win32::Foundation:: NTSTATUS);
996 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
997 windows_link::link!("ntoskrnl.exe" "system" fn SeSetSecurityDescriptorInfoEx(object : *const core::ffi::c_void, securityinformation : *const u32, modificationdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, objectssecuritydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, autoinheritflags : u32, pooltype : super::super::Foundation:: POOL_TYPE, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING) -> super::super::super::Win32::Foundation:: NTSTATUS);
998 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))]
999 windows_link::link!("ntoskrnl.exe" "system" fn SeShouldCheckForAccessRightsFromParent(objecttype : *const core::ffi::c_void, childdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE) -> bool);
1000 #[cfg(feature = "Win32_Security")]
1001 windows_link::link!("ntoskrnl.exe" "system" fn SeTokenFromAccessInformation(accessinformation : *const super::super::super::Win32::Security:: TOKEN_ACCESS_INFORMATION, token : *mut core::ffi::c_void, length : u32, requiredlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1002 windows_link::link!("ntoskrnl.exe" "system" fn SeTokenIsAdmin(token : *const core::ffi::c_void) -> bool);
1003 windows_link::link!("ntoskrnl.exe" "system" fn SeTokenIsRestricted(token : *const core::ffi::c_void) -> bool);
1004 windows_link::link!("ntoskrnl.exe" "system" fn SeTokenIsWriteRestricted(token : *const core::ffi::c_void) -> bool);
1005 #[cfg(feature = "Win32_Security")]
1006 windows_link::link!("ntoskrnl.exe" "system" fn SeTokenType(token : *const core::ffi::c_void) -> super::super::super::Win32::Security:: TOKEN_TYPE);
1007 windows_link::link!("ntoskrnl.exe" "system" fn SeUnregisterLogonSessionTerminatedRoutine(callbackroutine : PSE_LOGON_SESSION_TERMINATED_ROUTINE) -> super::super::super::Win32::Foundation:: NTSTATUS);
1008 windows_link::link!("ntoskrnl.exe" "system" fn SeUnregisterLogonSessionTerminatedRoutineEx(callbackroutine : PSE_LOGON_SESSION_TERMINATED_ROUTINE_EX, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
1009 #[cfg(feature = "Win32_Security")]
1010 windows_link::link!("ksecdd.sys" "system" fn SecLookupAccountName(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, sidsize : *mut u32, sid : super::super::super::Win32::Security:: PSID, nameuse : *mut super::super::super::Win32::Security:: SID_NAME_USE, domainsize : *mut u32, referenceddomain : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS);
1011 #[cfg(feature = "Win32_Security")]
1012 windows_link::link!("ksecdd.sys" "system" fn SecLookupAccountSid(sid : super::super::super::Win32::Security:: PSID, namesize : *mut u32, namebuffer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, domainsize : *mut u32, domainbuffer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, nameuse : *mut super::super::super::Win32::Security:: SID_NAME_USE) -> super::super::super::Win32::Foundation:: NTSTATUS);
1013 #[cfg(feature = "Win32_Security")]
1014 windows_link::link!("ksecdd.sys" "system" fn SecLookupWellKnownSid(sidtype : super::super::super::Win32::Security:: WELL_KNOWN_SID_TYPE, sid : super::super::super::Win32::Security:: PSID, sidbuffersize : u32, sidsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1015 windows_link::link!("ksecdd.sys" "system" fn SecMakeSPN(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, length : *mut u32, allocate : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1016 windows_link::link!("ksecdd.sys" "system" fn SecMakeSPNEx(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, targetinfo : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, length : *mut u32, allocate : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1017 windows_link::link!("ksecdd.sys" "system" fn SecMakeSPNEx2(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, intargetinfo : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, totalsize : *mut u32, allocate : bool, istargetinfomarshaled : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1018 windows_link::link!("secur32.dll" "system" fn SetContextAttributesW(phcontext : *const SecHandle, ulattribute : u32, pbuffer : *const core::ffi::c_void, cbbuffer : u32) -> windows_sys::core::HRESULT);
1019 #[cfg(feature = "Wdk_Foundation")]
1020 windows_link::link!("ksecdd.sys" "system" fn SspiAcceptSecurityContextAsync(asynccontext : *mut super::super::Foundation:: SspiAsyncContext, phcredential : *const SecHandle, phcontext : *const SecHandle, pinput : *const SecBufferDesc, fcontextreq : u32, targetdatarep : u32, phnewcontext : *const SecHandle, poutput : *const SecBufferDesc, pfcontextattr : *const u32, ptsexpiry : *const i64) -> windows_sys::core::HRESULT);
1021 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security_Authentication_Identity"))]
1022 windows_link::link!("ksecdd.sys" "system" fn SspiAcquireCredentialsHandleAsyncA(asynccontext : *mut super::super::Foundation:: SspiAsyncContext, pszprincipal : windows_sys::core::PCSTR, pszpackage : windows_sys::core::PCSTR, fcredentialuse : u32, pvlogonid : *const core::ffi::c_void, pauthdata : *const core::ffi::c_void, pgetkeyfn : super::super::super::Win32::Security::Authentication::Identity:: SEC_GET_KEY_FN, pvgetkeyargument : *const core::ffi::c_void, phcredential : *const SecHandle, ptsexpiry : *const i64) -> windows_sys::core::HRESULT);
1023 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security_Authentication_Identity"))]
1024 windows_link::link!("ksecdd.sys" "system" fn SspiAcquireCredentialsHandleAsyncW(asynccontext : *mut super::super::Foundation:: SspiAsyncContext, pszprincipal : *const super::super::super::Win32::Foundation:: UNICODE_STRING, pszpackage : *const super::super::super::Win32::Foundation:: UNICODE_STRING, fcredentialuse : u32, pvlogonid : *const core::ffi::c_void, pauthdata : *const core::ffi::c_void, pgetkeyfn : super::super::super::Win32::Security::Authentication::Identity:: SEC_GET_KEY_FN, pvgetkeyargument : *const core::ffi::c_void, phcredential : *const SecHandle, ptsexpiry : *const i64) -> windows_sys::core::HRESULT);
1025 #[cfg(feature = "Wdk_Foundation")]
1026 windows_link::link!("ksecdd.sys" "system" fn SspiCreateAsyncContext() -> *mut super::super::Foundation:: SspiAsyncContext);
1027 #[cfg(feature = "Wdk_Foundation")]
1028 windows_link::link!("ksecdd.sys" "system" fn SspiDeleteSecurityContextAsync(asynccontext : *mut super::super::Foundation:: SspiAsyncContext, phcontext : *const SecHandle) -> windows_sys::core::HRESULT);
1029 #[cfg(feature = "Wdk_Foundation")]
1030 windows_link::link!("ksecdd.sys" "system" fn SspiFreeAsyncContext(handle : *const super::super::Foundation:: SspiAsyncContext));
1031 #[cfg(feature = "Wdk_Foundation")]
1032 windows_link::link!("ksecdd.sys" "system" fn SspiFreeCredentialsHandleAsync(asynccontext : *mut super::super::Foundation:: SspiAsyncContext, phcredential : *const SecHandle) -> windows_sys::core::HRESULT);
1033 #[cfg(feature = "Wdk_Foundation")]
1034 windows_link::link!("ksecdd.sys" "system" fn SspiGetAsyncCallStatus(handle : *const super::super::Foundation:: SspiAsyncContext) -> windows_sys::core::HRESULT);
1035 #[cfg(feature = "Wdk_Foundation")]
1036 windows_link::link!("ksecdd.sys" "system" fn SspiInitializeSecurityContextAsyncA(asynccontext : *mut super::super::Foundation:: SspiAsyncContext, phcredential : *const SecHandle, phcontext : *const SecHandle, psztargetname : windows_sys::core::PCSTR, fcontextreq : u32, reserved1 : u32, targetdatarep : u32, pinput : *const SecBufferDesc, reserved2 : u32, phnewcontext : *const SecHandle, poutput : *const SecBufferDesc, pfcontextattr : *const u32, ptsexpiry : *const i64) -> windows_sys::core::HRESULT);
1037 #[cfg(feature = "Wdk_Foundation")]
1038 windows_link::link!("ksecdd.sys" "system" fn SspiInitializeSecurityContextAsyncW(asynccontext : *mut super::super::Foundation:: SspiAsyncContext, phcredential : *const SecHandle, phcontext : *const SecHandle, psztargetname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, fcontextreq : u32, reserved1 : u32, targetdatarep : u32, pinput : *const SecBufferDesc, reserved2 : u32, phnewcontext : *const SecHandle, poutput : *const SecBufferDesc, pfcontextattr : *const u32, ptsexpiry : *const i64) -> windows_sys::core::HRESULT);
1039 #[cfg(feature = "Wdk_Foundation")]
1040 windows_link::link!("ksecdd.sys" "system" fn SspiReinitAsyncContext(handle : *mut super::super::Foundation:: SspiAsyncContext) -> super::super::super::Win32::Foundation:: NTSTATUS);
1041 #[cfg(feature = "Wdk_Foundation")]
1042 windows_link::link!("ksecdd.sys" "system" fn SspiSetAsyncNotifyCallback(context : *const super::super::Foundation:: SspiAsyncContext, callback : SspiAsyncNotifyCallback, callbackdata : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
1043 windows_link::link!("secur32.dll" "system" fn VerifySignature(phcontext : *const SecHandle, pmessage : *const SecBufferDesc, messageseqno : u32, pfqop : *mut u32) -> windows_sys::core::HRESULT);
1044 #[cfg(feature = "Win32_Security")]
1045 windows_link::link!("ntdll.dll" "system" fn ZwAccessCheckAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1046 #[cfg(feature = "Win32_Security")]
1047 windows_link::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1048 #[cfg(feature = "Win32_Security")]
1049 windows_link::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeResultListAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1050 #[cfg(feature = "Win32_Security")]
1051 windows_link::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeResultListAndAuditAlarmByHandle(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1052 #[cfg(feature = "Win32_Security")]
1053 windows_link::link!("ntdll.dll" "system" fn ZwAdjustGroupsToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, resettodefault : bool, newstate : *const super::super::super::Win32::Security:: TOKEN_GROUPS, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_GROUPS, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1054 #[cfg(feature = "Win32_Security")]
1055 windows_link::link!("ntdll.dll" "system" fn ZwAdjustPrivilegesToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, disableallprivileges : bool, newstate : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_PRIVILEGES, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1056 windows_link::link!("ntdll.dll" "system" fn ZwAllocateVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, zerobits : usize, regionsize : *mut usize, allocationtype : u32, protect : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1057 #[cfg(feature = "Win32_System_Memory")]
1058 windows_link::link!("ntdll.dll" "system" fn ZwAllocateVirtualMemoryEx(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, regionsize : *mut usize, allocationtype : u32, pageprotection : u32, extendedparameters : *mut super::super::super::Win32::System::Memory:: MEM_EXTENDED_PARAMETER, extendedparametercount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1059 #[cfg(feature = "Win32_System_IO")]
1060 windows_link::link!("ntdll.dll" "system" fn ZwCancelIoFileEx(filehandle : super::super::super::Win32::Foundation:: HANDLE, iorequesttocancel : *const super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS);
1061 windows_link::link!("ntdll.dll" "system" fn ZwCloseObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1062 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
1063 windows_link::link!("ntdll.dll" "system" fn ZwCreateDirectoryObject(directoryhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS);
1064 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Kernel"))]
1065 windows_link::link!("ntdll.dll" "system" fn ZwCreateEvent(eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, eventtype : super::super::super::Win32::System::Kernel:: EVENT_TYPE, initialstate : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1066 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Memory"))]
1067 windows_link::link!("ntdll.dll" "system" fn ZwCreateSectionEx(sectionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, maximumsize : *const i64, sectionpageprotection : u32, allocationattributes : u32, filehandle : super::super::super::Win32::Foundation:: HANDLE, extendedparameters : *mut super::super::super::Win32::System::Memory:: MEM_EXTENDED_PARAMETER, extendedparametercount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1068 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
1069 windows_link::link!("ntdll.dll" "system" fn ZwDeleteFile(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS);
1070 windows_link::link!("ntdll.dll" "system" fn ZwDeleteObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1071 windows_link::link!("ntdll.dll" "system" fn ZwDuplicateObject(sourceprocesshandle : super::super::super::Win32::Foundation:: HANDLE, sourcehandle : super::super::super::Win32::Foundation:: HANDLE, targetprocesshandle : super::super::super::Win32::Foundation:: HANDLE, targethandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, handleattributes : u32, options : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1072 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
1073 windows_link::link!("ntdll.dll" "system" fn ZwDuplicateToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, effectiveonly : bool, tokentype : super::super::super::Win32::Security:: TOKEN_TYPE, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
1074 #[cfg(feature = "Win32_Security")]
1075 windows_link::link!("ntdll.dll" "system" fn ZwFilterToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, sidstodisable : *const super::super::super::Win32::Security:: TOKEN_GROUPS, privilegestodelete : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, restrictedsids : *const super::super::super::Win32::Security:: TOKEN_GROUPS, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
1076 #[cfg(feature = "Win32_System_IO")]
1077 windows_link::link!("ntdll.dll" "system" fn ZwFlushBuffersFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS);
1078 #[cfg(feature = "Win32_System_IO")]
1079 windows_link::link!("ntdll.dll" "system" fn ZwFlushBuffersFileEx(filehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, parameters : *const core::ffi::c_void, parameterssize : u32, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS);
1080 #[cfg(feature = "Win32_System_IO")]
1081 windows_link::link!("ntdll.dll" "system" fn ZwFlushVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, regionsize : *mut usize, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS);
1082 windows_link::link!("ntdll.dll" "system" fn ZwFreeVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, regionsize : *mut usize, freetype : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1083 #[cfg(feature = "Win32_System_IO")]
1084 windows_link::link!("ntdll.dll" "system" fn ZwFsControlFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fscontrolcode : u32, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1085 windows_link::link!("ntdll.dll" "system" fn ZwImpersonateAnonymousToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
1086 #[cfg(feature = "Win32_System_IO")]
1087 windows_link::link!("ntdll.dll" "system" fn ZwLockFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, byteoffset : *const i64, length : *const i64, key : u32, failimmediately : bool, exclusivelock : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1088 #[cfg(feature = "Win32_System_IO")]
1089 windows_link::link!("ntdll.dll" "system" fn ZwNotifyChangeKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : bool, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1090 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
1091 windows_link::link!("ntdll.dll" "system" fn ZwOpenDirectoryObject(directoryhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS);
1092 #[cfg(feature = "Win32_Security")]
1093 windows_link::link!("ntdll.dll" "system" fn ZwOpenObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, objectcreation : bool, accessgranted : bool, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1094 windows_link::link!("ntdll.dll" "system" fn ZwOpenProcessToken(processhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
1095 windows_link::link!("ntdll.dll" "system" fn ZwOpenProcessTokenEx(processhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
1096 windows_link::link!("ntdll.dll" "system" fn ZwOpenThreadToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : bool, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
1097 windows_link::link!("ntdll.dll" "system" fn ZwOpenThreadTokenEx(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : bool, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
1098 #[cfg(feature = "Win32_Security")]
1099 windows_link::link!("ntdll.dll" "system" fn ZwPrivilegeCheck(clienttoken : super::super::super::Win32::Foundation:: HANDLE, requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, result : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1100 #[cfg(feature = "Win32_Security")]
1101 windows_link::link!("ntdll.dll" "system" fn ZwPrivilegeObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1102 #[cfg(feature = "Win32_Security")]
1103 windows_link::link!("ntdll.dll" "system" fn ZwPrivilegedServiceAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, clienttoken : super::super::super::Win32::Foundation:: HANDLE, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1104 #[cfg(feature = "Win32_System_IO")]
1105 windows_link::link!("ntdll.dll" "system" fn ZwQueryDirectoryFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, returnsingleentry : bool, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1106 #[cfg(feature = "Win32_System_IO")]
1107 windows_link::link!("ntdll.dll" "system" fn ZwQueryDirectoryFileEx(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, queryflags : u32, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS);
1108 windows_link::link!("ntdll.dll" "system" fn ZwQueryDirectoryObject(directoryhandle : super::super::super::Win32::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, restartscan : bool, context : *mut u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1109 #[cfg(feature = "Win32_System_IO")]
1110 windows_link::link!("ntdll.dll" "system" fn ZwQueryEaFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1111 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
1112 windows_link::link!("ntdll.dll" "system" fn ZwQueryFullAttributesFile(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, fileinformation : *mut FILE_NETWORK_OPEN_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS);
1113 #[cfg(feature = "Win32_Security")]
1114 windows_link::link!("ntdll.dll" "system" fn ZwQueryInformationToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, tokeninformationclass : super::super::super::Win32::Security:: TOKEN_INFORMATION_CLASS, tokeninformation : *mut core::ffi::c_void, tokeninformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1115 #[cfg(feature = "Wdk_Foundation")]
1116 windows_link::link!("ntdll.dll" "system" fn ZwQueryObject(handle : super::super::super::Win32::Foundation:: HANDLE, objectinformationclass : super::super::Foundation:: OBJECT_INFORMATION_CLASS, objectinformation : *mut core::ffi::c_void, objectinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1117 #[cfg(all(feature = "Win32_Security", feature = "Win32_System_IO"))]
1118 windows_link::link!("ntdll.dll" "system" fn ZwQueryQuotaInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : super::super::super::Win32::Security:: PSID, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
1119 #[cfg(feature = "Win32_Security")]
1120 windows_link::link!("ntdll.dll" "system" fn ZwQuerySecurityObject(handle : super::super::super::Win32::Foundation:: HANDLE, securityinformation : u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, length : u32, lengthneeded : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1121 windows_link::link!("ntdll.dll" "system" fn ZwQueryVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *const core::ffi::c_void, memoryinformationclass : MEMORY_INFORMATION_CLASS, memoryinformation : *mut core::ffi::c_void, memoryinformationlength : usize, returnlength : *mut usize) -> super::super::super::Win32::Foundation:: NTSTATUS);
1122 #[cfg(feature = "Win32_System_IO")]
1123 windows_link::link!("ntdll.dll" "system" fn ZwQueryVolumeInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fsinformation : *mut core::ffi::c_void, length : u32, fsinformationclass : FS_INFORMATION_CLASS) -> super::super::super::Win32::Foundation:: NTSTATUS);
1124 #[cfg(feature = "Win32_System_IO")]
1125 windows_link::link!("ntdll.dll" "system" fn ZwSetEaFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *const core::ffi::c_void, length : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1126 windows_link::link!("ntdll.dll" "system" fn ZwSetEvent(eventhandle : super::super::super::Win32::Foundation:: HANDLE, previousstate : *mut i32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1127 #[cfg(feature = "Win32_Security")]
1128 windows_link::link!("ntdll.dll" "system" fn ZwSetInformationToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, tokeninformationclass : super::super::super::Win32::Security:: TOKEN_INFORMATION_CLASS, tokeninformation : *const core::ffi::c_void, tokeninformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1129 windows_link::link!("ntdll.dll" "system" fn ZwSetInformationVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, vminformationclass : VIRTUAL_MEMORY_INFORMATION_CLASS, numberofentries : usize, virtualaddresses : *const MEMORY_RANGE_ENTRY, vminformation : *const core::ffi::c_void, vminformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1130 #[cfg(feature = "Win32_System_IO")]
1131 windows_link::link!("ntdll.dll" "system" fn ZwSetQuotaInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *const core::ffi::c_void, length : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1132 #[cfg(feature = "Win32_Security")]
1133 windows_link::link!("ntdll.dll" "system" fn ZwSetSecurityObject(handle : super::super::super::Win32::Foundation:: HANDLE, securityinformation : u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
1134 #[cfg(feature = "Win32_System_IO")]
1135 windows_link::link!("ntdll.dll" "system" fn ZwSetVolumeInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fsinformation : *const core::ffi::c_void, length : u32, fsinformationclass : FS_INFORMATION_CLASS) -> super::super::super::Win32::Foundation:: NTSTATUS);
1136 #[cfg(feature = "Win32_System_IO")]
1137 windows_link::link!("ntdll.dll" "system" fn ZwUnlockFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, byteoffset : *const i64, length : *const i64, key : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
1138 #[repr(C)]
1139 #[derive(Clone, Copy, Default)]
1140 pub struct ACE_HEADER {
1141 pub AceType: u8,
1142 pub AceFlags: u8,
1143 pub AceSize: u16,
1144 }
1145 #[cfg(feature = "Win32_System_Memory")]
1146 pub type ALLOCATE_VIRTUAL_MEMORY_EX_CALLBACK = Option<unsafe extern "system" fn(callbackcontext: super::super::super::Win32::Foundation::HANDLE, processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: *mut *mut core::ffi::c_void, regionsize: *mut usize, allocationtype: u32, pageprotection: u32, extendedparameters: *mut super::super::super::Win32::System::Memory::MEM_EXTENDED_PARAMETER, extendedparametercount: u32) -> super::super::super::Win32::Foundation::NTSTATUS>;
1147 #[repr(C)]
1148 #[derive(Clone, Copy)]
1149 pub struct ATOMIC_CREATE_ECP_CONTEXT {
1150 pub Size: u16,
1151 pub InFlags: u16,
1152 pub OutFlags: u16,
1153 pub ReparseBufferLength: u16,
1154 pub ReparseBuffer: *mut REPARSE_DATA_BUFFER,
1155 pub FileSize: i64,
1156 pub ValidDataLength: i64,
1157 pub FileTimestamps: *mut FILE_TIMESTAMPS,
1158 pub FileAttributes: u32,
1159 pub UsnSourceInfo: u32,
1160 pub Usn: i64,
1161 pub SuppressFileAttributeInheritanceMask: u32,
1162 pub InOpFlags: u32,
1163 pub OutOpFlags: u32,
1164 pub InGenFlags: u32,
1165 pub OutGenFlags: u32,
1166 pub CaseSensitiveFlagsMask: u32,
1167 pub InCaseSensitiveFlags: u32,
1168 pub OutCaseSensitiveFlags: u32,
1169 }
1170 impl Default for ATOMIC_CREATE_ECP_CONTEXT {
1171 fn default() -> Self {
1172 unsafe { core::mem::zeroed() }
1173 }
1174 }
1175 pub const ATOMIC_CREATE_ECP_IN_FLAG_BEST_EFFORT: u32 = 256u32;
1176 pub const ATOMIC_CREATE_ECP_IN_FLAG_EOF_SPECIFIED: u32 = 4u32;
1177 pub const ATOMIC_CREATE_ECP_IN_FLAG_FILE_ATTRIBUTES_SPECIFIED: u32 = 32u32;
1178 pub const ATOMIC_CREATE_ECP_IN_FLAG_GEN_FLAGS_SPECIFIED: u32 = 32768u32;
1179 pub const ATOMIC_CREATE_ECP_IN_FLAG_MARK_USN_SOURCE_INFO: u32 = 2048u32;
1180 pub const ATOMIC_CREATE_ECP_IN_FLAG_OPERATION_MASK: u32 = 255u32;
1181 pub const ATOMIC_CREATE_ECP_IN_FLAG_OP_FLAGS_SPECIFIED: u32 = 128u32;
1182 pub const ATOMIC_CREATE_ECP_IN_FLAG_REPARSE_POINT_SPECIFIED: u32 = 2u32;
1183 pub const ATOMIC_CREATE_ECP_IN_FLAG_SPARSE_SPECIFIED: u32 = 1u32;
1184 pub const ATOMIC_CREATE_ECP_IN_FLAG_SUPPRESS_DIR_CHANGE_NOTIFY: u32 = 1024u32;
1185 pub const ATOMIC_CREATE_ECP_IN_FLAG_SUPPRESS_FILE_ATTRIBUTE_INHERITANCE: u32 = 64u32;
1186 pub const ATOMIC_CREATE_ECP_IN_FLAG_SUPPRESS_PARENT_TIMESTAMPS_UPDATE: u32 = 512u32;
1187 pub const ATOMIC_CREATE_ECP_IN_FLAG_TIMESTAMPS_SPECIFIED: u32 = 16u32;
1188 pub const ATOMIC_CREATE_ECP_IN_FLAG_VDL_SPECIFIED: u32 = 8u32;
1189 pub const ATOMIC_CREATE_ECP_IN_FLAG_WRITE_USN_CLOSE_RECORD: u32 = 4096u32;
1190 pub const ATOMIC_CREATE_ECP_IN_OP_FLAG_CASE_SENSITIVE_FLAGS_SPECIFIED: u32 = 1u32;
1191 pub const ATOMIC_CREATE_ECP_OUT_FLAG_EOF_SET: u32 = 4u32;
1192 pub const ATOMIC_CREATE_ECP_OUT_FLAG_FILE_ATTRIBUTES_RETURNED: u32 = 512u32;
1193 pub const ATOMIC_CREATE_ECP_OUT_FLAG_FILE_ATTRIBUTES_SET: u32 = 32u32;
1194 pub const ATOMIC_CREATE_ECP_OUT_FLAG_FILE_ATTRIBUTE_INHERITANCE_SUPPRESSED: u32 = 64u32;
1195 pub const ATOMIC_CREATE_ECP_OUT_FLAG_OPERATION_MASK: u32 = 255u32;
1196 pub const ATOMIC_CREATE_ECP_OUT_FLAG_OP_FLAGS_HONORED: u32 = 128u32;
1197 pub const ATOMIC_CREATE_ECP_OUT_FLAG_REPARSE_POINT_SET: u32 = 2u32;
1198 pub const ATOMIC_CREATE_ECP_OUT_FLAG_SPARSE_SET: u32 = 1u32;
1199 pub const ATOMIC_CREATE_ECP_OUT_FLAG_TIMESTAMPS_RETURNED: u32 = 256u32;
1200 pub const ATOMIC_CREATE_ECP_OUT_FLAG_TIMESTAMPS_SET: u32 = 16u32;
1201 pub const ATOMIC_CREATE_ECP_OUT_FLAG_USN_CLOSE_RECORD_WRITTEN: u32 = 2048u32;
1202 pub const ATOMIC_CREATE_ECP_OUT_FLAG_USN_RETURNED: u32 = 4096u32;
1203 pub const ATOMIC_CREATE_ECP_OUT_FLAG_USN_SOURCE_INFO_MARKED: u32 = 1024u32;
1204 pub const ATOMIC_CREATE_ECP_OUT_FLAG_VDL_SET: u32 = 8u32;
1205 pub const ATOMIC_CREATE_ECP_OUT_OP_FLAG_CASE_SENSITIVE_FLAGS_SET: u32 = 1u32;
1206 pub const AuditAccessCheck: SE_AUDIT_OPERATION = 2i32;
1207 pub const AuditCloseNonObject: SE_AUDIT_OPERATION = 9i32;
1208 pub const AuditCloseObject: SE_AUDIT_OPERATION = 5i32;
1209 pub const AuditDeleteObject: SE_AUDIT_OPERATION = 6i32;
1210 pub const AuditHandleCreation: SE_AUDIT_OPERATION = 12i32;
1211 pub const AuditObjectReference: SE_AUDIT_OPERATION = 11i32;
1212 pub const AuditOpenNonObject: SE_AUDIT_OPERATION = 10i32;
1213 pub const AuditOpenObject: SE_AUDIT_OPERATION = 3i32;
1214 pub const AuditOpenObjectForDelete: SE_AUDIT_OPERATION = 7i32;
1215 pub const AuditOpenObjectForDeleteWithTransaction: SE_AUDIT_OPERATION = 8i32;
1216 pub const AuditOpenObjectWithTransaction: SE_AUDIT_OPERATION = 4i32;
1217 pub const AuditPrivilegeObject: SE_AUDIT_OPERATION = 0i32;
1218 pub const AuditPrivilegeService: SE_AUDIT_OPERATION = 1i32;
1219 #[repr(C)]
1220 #[derive(Clone, Copy)]
1221 pub struct BASE_MCB {
1222 pub MaximumPairCount: u32,
1223 pub PairCount: u32,
1224 pub PoolType: u16,
1225 pub Flags: u16,
1226 pub Mapping: *mut core::ffi::c_void,
1227 }
1228 impl Default for BASE_MCB {
1229 fn default() -> Self {
1230 unsafe { core::mem::zeroed() }
1231 }
1232 }
1233 #[repr(C)]
1234 #[derive(Clone, Copy)]
1235 pub struct BOOT_AREA_INFO {
1236 pub BootSectorCount: u32,
1237 pub BootSectors: [BOOT_AREA_INFO_0; 2],
1238 }
1239 impl Default for BOOT_AREA_INFO {
1240 fn default() -> Self {
1241 unsafe { core::mem::zeroed() }
1242 }
1243 }
1244 #[repr(C)]
1245 #[derive(Clone, Copy, Default)]
1246 pub struct BOOT_AREA_INFO_0 {
1247 pub Offset: i64,
1248 }
1249 #[repr(C)]
1250 #[derive(Clone, Copy, Default)]
1251 pub struct CACHE_MANAGER_CALLBACKS {
1252 pub AcquireForLazyWrite: PACQUIRE_FOR_LAZY_WRITE,
1253 pub ReleaseFromLazyWrite: PRELEASE_FROM_LAZY_WRITE,
1254 pub AcquireForReadAhead: PACQUIRE_FOR_READ_AHEAD,
1255 pub ReleaseFromReadAhead: PRELEASE_FROM_READ_AHEAD,
1256 }
1257 #[repr(C)]
1258 #[derive(Clone, Copy, Default)]
1259 pub struct CACHE_MANAGER_CALLBACKS_EX {
1260 pub Version: u16,
1261 pub Size: u16,
1262 pub Functions: CACHE_MANAGER_CALLBACK_FUNCTIONS,
1263 }
1264 pub const CACHE_MANAGER_CALLBACKS_EX_V1: u32 = 1u32;
1265 #[repr(C)]
1266 #[derive(Clone, Copy, Default)]
1267 pub struct CACHE_MANAGER_CALLBACK_FUNCTIONS {
1268 pub AcquireForLazyWriteEx: PACQUIRE_FOR_LAZY_WRITE_EX,
1269 pub ReleaseFromLazyWrite: PRELEASE_FROM_LAZY_WRITE,
1270 pub AcquireForReadAhead: PACQUIRE_FOR_READ_AHEAD,
1271 pub ReleaseFromReadAhead: PRELEASE_FROM_READ_AHEAD,
1272 }
1273 #[repr(C)]
1274 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
1275 #[derive(Clone, Copy)]
1276 pub struct CACHE_UNINITIALIZE_EVENT {
1277 pub Next: *mut CACHE_UNINITIALIZE_EVENT,
1278 pub Event: super::super::Foundation::KEVENT,
1279 }
1280 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
1281 impl Default for CACHE_UNINITIALIZE_EVENT {
1282 fn default() -> Self {
1283 unsafe { core::mem::zeroed() }
1284 }
1285 }
1286 pub const CACHE_USE_DIRECT_ACCESS_MAPPING: u32 = 1u32;
1287 pub const CACHE_VALID_FLAGS: u32 = 1u32;
1288 pub const CC_ACQUIRE_DONT_WAIT: u32 = 1u32;
1289 pub const CC_ACQUIRE_SUPPORTS_ASYNC_LAZYWRITE: u32 = 1u32;
1290 pub const CC_AGGRESSIVE_UNMAP_BEHIND: u32 = 1u32;
1291 #[repr(C)]
1292 #[cfg(feature = "Wdk_Foundation")]
1293 #[derive(Clone, Copy)]
1294 pub struct CC_ASYNC_READ_CONTEXT {
1295 pub CompletionRoutine: PASYNC_READ_COMPLETION_CALLBACK,
1296 pub Context: *mut core::ffi::c_void,
1297 pub Mdl: *mut super::super::Foundation::MDL,
1298 pub RequestorMode: i8,
1299 pub NestingLevel: u32,
1300 }
1301 #[cfg(feature = "Wdk_Foundation")]
1302 impl Default for CC_ASYNC_READ_CONTEXT {
1303 fn default() -> Self {
1304 unsafe { core::mem::zeroed() }
1305 }
1306 }
1307 pub const CC_DISABLE_DIRTY_PAGE_TRACKING: u32 = 8u32;
1308 pub const CC_DISABLE_READ_AHEAD: u32 = 2u32;
1309 pub const CC_DISABLE_UNMAP_BEHIND: u32 = 32u32;
1310 pub const CC_DISABLE_WRITE_BEHIND: u32 = 4u32;
1311 pub const CC_ENABLE_CPU_CACHE: u32 = 268435456u32;
1312 pub const CC_ENABLE_DISK_IO_ACCOUNTING: u32 = 16u32;
1313 #[repr(C)]
1314 #[derive(Clone, Copy, Default)]
1315 pub struct CC_ERROR_CALLBACK_CONTEXT {
1316 pub NodeByteSize: i16,
1317 pub ErrorCode: super::super::super::Win32::Foundation::NTSTATUS,
1318 }
1319 #[repr(C)]
1320 #[derive(Clone, Copy, Default)]
1321 pub struct CC_FILE_SIZES {
1322 pub AllocationSize: i64,
1323 pub FileSize: i64,
1324 pub ValidDataLength: i64,
1325 }
1326 pub const CC_FLUSH_AND_PURGE_GATHER_DIRTY_BITS: u32 = 2u32;
1327 pub const CC_FLUSH_AND_PURGE_NO_PURGE: u32 = 1u32;
1328 pub const CC_FLUSH_AND_PURGE_WRITEABLE_VIEWS_NOTSEEN: u32 = 4u32;
1329 #[repr(C)]
1330 #[derive(Clone, Copy)]
1331 pub struct COMPRESSED_DATA_INFO {
1332 pub CompressionFormatAndEngine: u16,
1333 pub CompressionUnitShift: u8,
1334 pub ChunkShift: u8,
1335 pub ClusterShift: u8,
1336 pub Reserved: u8,
1337 pub NumberOfChunks: u16,
1338 pub CompressedChunkSizes: [u32; 1],
1339 }
1340 impl Default for COMPRESSED_DATA_INFO {
1341 fn default() -> Self {
1342 unsafe { core::mem::zeroed() }
1343 }
1344 }
1345 pub const COMPRESSION_ENGINE_MASK: u32 = 65280u32;
1346 pub const COMPRESSION_ENGINE_MAX: u32 = 512u32;
1347 pub const COMPRESSION_FORMAT_MASK: u32 = 255u32;
1348 pub const COMPRESSION_FORMAT_MAX: u32 = 5u32;
1349 #[repr(C)]
1350 #[derive(Clone, Copy, Default)]
1351 pub struct CONTAINER_ROOT_INFO_INPUT {
1352 pub Flags: u32,
1353 }
1354 #[repr(C)]
1355 #[derive(Clone, Copy)]
1356 pub struct CONTAINER_ROOT_INFO_OUTPUT {
1357 pub ContainerRootIdLength: u16,
1358 pub ContainerRootId: [u8; 1],
1359 }
1360 impl Default for CONTAINER_ROOT_INFO_OUTPUT {
1361 fn default() -> Self {
1362 unsafe { core::mem::zeroed() }
1363 }
1364 }
1365 #[repr(C)]
1366 #[derive(Clone, Copy, Default)]
1367 pub struct CONTAINER_VOLUME_STATE {
1368 pub Flags: u32,
1369 }
1370 #[repr(C)]
1371 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
1372 #[derive(Clone, Copy)]
1373 pub struct COPY_INFORMATION {
1374 pub SourceFileObject: *mut super::super::Foundation::FILE_OBJECT,
1375 pub SourceFileOffset: i64,
1376 }
1377 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
1378 impl Default for COPY_INFORMATION {
1379 fn default() -> Self {
1380 unsafe { core::mem::zeroed() }
1381 }
1382 }
1383 #[repr(C)]
1384 #[derive(Clone, Copy)]
1385 pub struct CPTABLEINFO {
1386 pub CodePage: u16,
1387 pub MaximumCharacterSize: u16,
1388 pub DefaultChar: u16,
1389 pub UniDefaultChar: u16,
1390 pub TransDefaultChar: u16,
1391 pub TransUniDefaultChar: u16,
1392 pub DBCSCodePage: u16,
1393 pub LeadByte: [u8; 12],
1394 pub MultiByteTable: *mut u16,
1395 pub WideCharTable: *mut core::ffi::c_void,
1396 pub DBCSRanges: *mut u16,
1397 pub DBCSOffsets: *mut u16,
1398 }
1399 impl Default for CPTABLEINFO {
1400 fn default() -> Self {
1401 unsafe { core::mem::zeroed() }
1402 }
1403 }
1404 #[repr(C)]
1405 #[cfg(feature = "Win32_Storage_FileSystem")]
1406 #[derive(Clone, Copy, Default)]
1407 pub struct CREATE_REDIRECTION_ECP_CONTEXT {
1408 pub Size: u16,
1409 pub Flags: u16,
1410 pub FileId: super::super::super::Win32::Storage::FileSystem::FILE_ID_128,
1411 pub VolumeGuid: windows_sys::core::GUID,
1412 }
1413 pub const CREATE_REDIRECTION_FLAGS_SERVICED_FROM_LAYER: u32 = 1u32;
1414 pub const CREATE_REDIRECTION_FLAGS_SERVICED_FROM_REGISTERED_LAYER: u32 = 4u32;
1415 pub const CREATE_REDIRECTION_FLAGS_SERVICED_FROM_REMOTE_LAYER: u32 = 8u32;
1416 pub const CREATE_REDIRECTION_FLAGS_SERVICED_FROM_SCRATCH: u32 = 2u32;
1417 pub const CREATE_REDIRECTION_FLAGS_SERVICED_FROM_USER_MODE: u32 = 16u32;
1418 #[repr(C)]
1419 #[derive(Clone, Copy, Default)]
1420 pub struct CREATE_USN_JOURNAL_DATA {
1421 pub MaximumSize: u64,
1422 pub AllocationDelta: u64,
1423 }
1424 pub type CSV_DOWN_LEVEL_FILE_TYPE = i32;
1425 #[repr(C)]
1426 #[derive(Clone, Copy, Default)]
1427 pub struct CSV_DOWN_LEVEL_OPEN_ECP_CONTEXT {
1428 pub Version: u32,
1429 pub IsResume: bool,
1430 pub FileType: CSV_DOWN_LEVEL_FILE_TYPE,
1431 pub SourceNodeId: u32,
1432 pub DestinationNodeId: u32,
1433 }
1434 #[repr(C)]
1435 #[derive(Clone, Copy)]
1436 pub struct CSV_QUERY_FILE_REVISION_ECP_CONTEXT {
1437 pub FileId: i64,
1438 pub FileRevision: [i64; 3],
1439 }
1440 impl Default for CSV_QUERY_FILE_REVISION_ECP_CONTEXT {
1441 fn default() -> Self {
1442 unsafe { core::mem::zeroed() }
1443 }
1444 }
1445 #[repr(C)]
1446 #[cfg(feature = "Win32_Storage_FileSystem")]
1447 #[derive(Clone, Copy)]
1448 pub struct CSV_QUERY_FILE_REVISION_ECP_CONTEXT_FILE_ID_128 {
1449 pub FileId: super::super::super::Win32::Storage::FileSystem::FILE_ID_128,
1450 pub FileRevision: [i64; 3],
1451 }
1452 #[cfg(feature = "Win32_Storage_FileSystem")]
1453 impl Default for CSV_QUERY_FILE_REVISION_ECP_CONTEXT_FILE_ID_128 {
1454 fn default() -> Self {
1455 unsafe { core::mem::zeroed() }
1456 }
1457 }
1458 #[repr(C)]
1459 #[derive(Clone, Copy, Default)]
1460 pub struct CSV_SET_HANDLE_PROPERTIES_ECP_CONTEXT {
1461 pub Size: usize,
1462 pub PauseTimeoutInSeconds: u32,
1463 pub Flags: u32,
1464 }
1465 pub const CSV_SET_HANDLE_PROPERTIES_ECP_CONTEXT_FLAGS_VALID_ONLY_IF_CSV_COORDINATOR: u32 = 1u32;
1466 pub const ChangeDataControlArea: FSRTL_CHANGE_BACKING_TYPE = 0i32;
1467 pub const ChangeImageControlArea: FSRTL_CHANGE_BACKING_TYPE = 1i32;
1468 pub const ChangeSharedCacheMap: FSRTL_CHANGE_BACKING_TYPE = 2i32;
1469 pub const CsvCsvFsInternalFileObject: CSV_DOWN_LEVEL_FILE_TYPE = 1i32;
1470 pub const CsvDownLevelFileObject: CSV_DOWN_LEVEL_FILE_TYPE = 0i32;
1471 pub const DD_MUP_DEVICE_NAME: windows_sys::core::PCWSTR = windows_sys::core::w!("\\Device\\Mup");
1472 pub const DEVICE_RESET_KEEP_STACK: u32 = 4u32;
1473 pub const DEVICE_RESET_RESERVED_0: u32 = 1u32;
1474 pub const DEVICE_RESET_RESERVED_1: u32 = 2u32;
1475 pub const DO_BOOT_CRITICAL: u32 = 536870912u32;
1476 pub const DO_BUFFERED_IO: u32 = 4u32;
1477 pub const DO_BUS_ENUMERATED_DEVICE: u32 = 4096u32;
1478 pub const DO_DAX_VOLUME: u32 = 268435456u32;
1479 pub const DO_DEVICE_HAS_NAME: u32 = 64u32;
1480 pub const DO_DEVICE_INITIALIZING: u32 = 128u32;
1481 pub const DO_DEVICE_IRP_REQUIRES_EXTENSION: u32 = 134217728u32;
1482 pub const DO_DEVICE_TO_BE_RESET: u32 = 67108864u32;
1483 pub const DO_DIRECT_IO: u32 = 16u32;
1484 pub const DO_DISALLOW_EXECUTE: u32 = 8388608u32;
1485 pub const DO_EXCLUSIVE: u32 = 8u32;
1486 pub const DO_FORCE_NEITHER_IO: u32 = 524288u32;
1487 pub const DO_LONG_TERM_REQUESTS: u32 = 512u32;
1488 pub const DO_LOW_PRIORITY_FILESYSTEM: u32 = 65536u32;
1489 pub const DO_MAP_IO_BUFFER: u32 = 32u32;
1490 pub const DO_NEVER_LAST_DEVICE: u32 = 1024u32;
1491 pub const DO_NOT_PURGE_DIRTY_PAGES: u32 = 4u32;
1492 pub const DO_NOT_RETRY_PURGE: u32 = 2u32;
1493 pub const DO_POWER_INRUSH: u32 = 16384u32;
1494 pub const DO_POWER_PAGABLE: u32 = 8192u32;
1495 pub const DO_SHUTDOWN_REGISTERED: u32 = 2048u32;
1496 pub const DO_SUPPORTS_PERSISTENT_ACLS: u32 = 131072u32;
1497 pub const DO_SUPPORTS_TRANSACTIONS: u32 = 262144u32;
1498 pub const DO_SYSTEM_BOOT_PARTITION: u32 = 256u32;
1499 pub const DO_SYSTEM_CRITICAL_PARTITION: u32 = 4194304u32;
1500 pub const DO_SYSTEM_SYSTEM_PARTITION: u32 = 2097152u32;
1501 pub const DO_VERIFY_VOLUME: u32 = 2u32;
1502 pub const DO_VOLUME_DEVICE_OBJECT: u32 = 1048576u32;
1503 #[repr(C)]
1504 #[derive(Clone, Copy, Default)]
1505 pub struct DUAL_OPLOCK_KEY_ECP_CONTEXT {
1506 pub ParentOplockKey: windows_sys::core::GUID,
1507 pub TargetOplockKey: windows_sys::core::GUID,
1508 pub ParentOplockKeySet: bool,
1509 pub TargetOplockKeySet: bool,
1510 }
1511 #[repr(C)]
1512 #[derive(Clone, Copy, Default)]
1513 pub struct DUPLICATE_CLUSTER_DATA {
1514 pub SourceLcn: i64,
1515 pub TargetFileOffset: i64,
1516 pub DuplicationLimit: u32,
1517 pub Reserved: u32,
1518 }
1519 pub const DfsLinkTrackingInformation: LINK_TRACKING_INFORMATION_TYPE = 1i32;
1520 pub const EA_NAME_NETWORK_OPEN_ECP_INTEGRITY: windows_sys::core::PCSTR = windows_sys::core::s!("ECP{c584edbf-00df-4d28-00b8-8435baca8911e8}-INTEGRITY");
1521 pub const EA_NAME_NETWORK_OPEN_ECP_INTEGRITY_U: windows_sys::core::PCWSTR = windows_sys::core::w!("ECP{c584edbf-00df-4d28-00b8-8435baca8911e8}-INTEGRITY");
1522 pub const EA_NAME_NETWORK_OPEN_ECP_PRIVACY: windows_sys::core::PCSTR = windows_sys::core::s!("ECP{c584edbf-00df-4d28-00b8-8435baca8911e8}-PRIVACY");
1523 pub const EA_NAME_NETWORK_OPEN_ECP_PRIVACY_U: windows_sys::core::PCWSTR = windows_sys::core::w!("ECP{c584edbf-00df-4d28-00b8-8435baca8911e8}-PRIVACY");
1524 #[repr(C)]
1525 #[derive(Clone, Copy, Default)]
1526 pub struct ECP_OPEN_PARAMETERS {
1527 pub Size: u16,
1528 pub Reserved: u16,
1529 pub Flags: u32,
1530 }
1531 pub const ECP_OPEN_PARAMETERS_FLAG_FAIL_ON_CASE_SENSITIVE_DIR: u32 = 16u32;
1532 pub const ECP_OPEN_PARAMETERS_FLAG_IGNORE_DIR_CASE_SENSITIVITY: u32 = 8u32;
1533 pub const ECP_OPEN_PARAMETERS_FLAG_OPEN_FOR_DELETE: u32 = 4u32;
1534 pub const ECP_OPEN_PARAMETERS_FLAG_OPEN_FOR_READ: u32 = 1u32;
1535 pub const ECP_OPEN_PARAMETERS_FLAG_OPEN_FOR_WRITE: u32 = 2u32;
1536 pub const ECP_TYPE_CLFS_CREATE_CONTAINER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x8650c9fe_0cec_8bf6_bd1e_835956541090);
1537 pub const ECP_TYPE_IO_STOP_ON_SYMLINK_FILTER_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x940e5d56_1646_4d3c_87b6_577ec36a1466);
1538 pub const ECP_TYPE_OPEN_REPARSE_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x323eb6a8_affd_4d95_8230_863bce09d37a);
1539 #[repr(C)]
1540 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
1541 #[derive(Clone, Copy)]
1542 pub struct EOF_WAIT_BLOCK {
1543 pub EofWaitLinks: super::super::super::Win32::System::Kernel::LIST_ENTRY,
1544 pub Event: super::super::Foundation::KEVENT,
1545 }
1546 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
1547 impl Default for EOF_WAIT_BLOCK {
1548 fn default() -> Self {
1549 unsafe { core::mem::zeroed() }
1550 }
1551 }
1552 pub const EVENT_INCREMENT: u32 = 1u32;
1553 #[repr(C)]
1554 #[derive(Clone, Copy, Default)]
1555 pub struct EXTENT_READ_CACHE_INFO_BUFFER {
1556 pub AllocatedCache: i64,
1557 pub PopulatedCache: i64,
1558 pub InErrorCache: i64,
1559 }
1560 pub const EqualTo: FSRTL_COMPARISON_RESULT = 0i32;
1561 pub type FAST_IO_POSSIBLE = i32;
1562 #[repr(C)]
1563 #[derive(Clone, Copy, Default)]
1564 pub struct FILE_ACCESS_INFORMATION {
1565 pub AccessFlags: u32,
1566 }
1567 pub const FILE_ACTION_ADDED_STREAM: u32 = 6u32;
1568 pub const FILE_ACTION_ID_NOT_TUNNELLED: u32 = 10u32;
1569 pub const FILE_ACTION_MODIFIED_STREAM: u32 = 8u32;
1570 pub const FILE_ACTION_REMOVED_BY_DELETE: u32 = 9u32;
1571 pub const FILE_ACTION_REMOVED_STREAM: u32 = 7u32;
1572 pub const FILE_ACTION_TUNNELLED_ID_COLLISION: u32 = 11u32;
1573 #[repr(C)]
1574 #[derive(Clone, Copy, Default)]
1575 pub struct FILE_ALIGNMENT_INFORMATION {
1576 pub AlignmentRequirement: u32,
1577 }
1578 #[repr(C)]
1579 #[derive(Clone, Copy, Default)]
1580 pub struct FILE_ALLOCATION_INFORMATION {
1581 pub AllocationSize: i64,
1582 }
1583 #[repr(C)]
1584 #[derive(Clone, Copy, Default)]
1585 pub struct FILE_ALL_INFORMATION {
1586 pub BasicInformation: FILE_BASIC_INFORMATION,
1587 pub StandardInformation: FILE_STANDARD_INFORMATION,
1588 pub InternalInformation: FILE_INTERNAL_INFORMATION,
1589 pub EaInformation: FILE_EA_INFORMATION,
1590 pub AccessInformation: FILE_ACCESS_INFORMATION,
1591 pub PositionInformation: FILE_POSITION_INFORMATION,
1592 pub ModeInformation: FILE_MODE_INFORMATION,
1593 pub AlignmentInformation: FILE_ALIGNMENT_INFORMATION,
1594 pub NameInformation: FILE_NAME_INFORMATION,
1595 }
1596 #[repr(C)]
1597 #[derive(Clone, Copy, Default)]
1598 pub struct FILE_BASIC_INFORMATION {
1599 pub CreationTime: i64,
1600 pub LastAccessTime: i64,
1601 pub LastWriteTime: i64,
1602 pub ChangeTime: i64,
1603 pub FileAttributes: u32,
1604 }
1605 #[repr(C)]
1606 #[derive(Clone, Copy)]
1607 pub struct FILE_BOTH_DIR_INFORMATION {
1608 pub NextEntryOffset: u32,
1609 pub FileIndex: u32,
1610 pub CreationTime: i64,
1611 pub LastAccessTime: i64,
1612 pub LastWriteTime: i64,
1613 pub ChangeTime: i64,
1614 pub EndOfFile: i64,
1615 pub AllocationSize: i64,
1616 pub FileAttributes: u32,
1617 pub FileNameLength: u32,
1618 pub EaSize: u32,
1619 pub ShortNameLength: i8,
1620 pub ShortName: [u16; 12],
1621 pub FileName: [u16; 1],
1622 }
1623 impl Default for FILE_BOTH_DIR_INFORMATION {
1624 fn default() -> Self {
1625 unsafe { core::mem::zeroed() }
1626 }
1627 }
1628 #[repr(C)]
1629 #[derive(Clone, Copy, Default)]
1630 pub struct FILE_CASE_SENSITIVE_INFORMATION {
1631 pub Flags: u32,
1632 }
1633 pub const FILE_CLEANUP_FILE_DELETED: u32 = 4u32;
1634 pub const FILE_CLEANUP_FILE_REMAINS: u32 = 2u32;
1635 pub const FILE_CLEANUP_LINK_DELETED: u32 = 8u32;
1636 pub const FILE_CLEANUP_POSIX_STYLE_DELETE: u32 = 32u32;
1637 pub const FILE_CLEANUP_STREAM_DELETED: u32 = 16u32;
1638 pub const FILE_CLEANUP_UNKNOWN: u32 = 0u32;
1639 pub const FILE_CLEANUP_WRONG_DEVICE: u32 = 1u32;
1640 pub const FILE_COMPLETE_IF_OPLOCKED: NTCREATEFILE_CREATE_OPTIONS = 256u32;
1641 #[repr(C)]
1642 #[derive(Clone, Copy)]
1643 pub struct FILE_COMPLETION_INFORMATION {
1644 pub Port: super::super::super::Win32::Foundation::HANDLE,
1645 pub Key: *mut core::ffi::c_void,
1646 }
1647 impl Default for FILE_COMPLETION_INFORMATION {
1648 fn default() -> Self {
1649 unsafe { core::mem::zeroed() }
1650 }
1651 }
1652 #[repr(C)]
1653 #[derive(Clone, Copy)]
1654 pub struct FILE_COMPRESSION_INFORMATION {
1655 pub CompressedFileSize: i64,
1656 pub CompressionFormat: u16,
1657 pub CompressionUnitShift: u8,
1658 pub ChunkShift: u8,
1659 pub ClusterShift: u8,
1660 pub Reserved: [u8; 3],
1661 }
1662 impl Default for FILE_COMPRESSION_INFORMATION {
1663 fn default() -> Self {
1664 unsafe { core::mem::zeroed() }
1665 }
1666 }
1667 pub const FILE_CONTAINS_EXTENDED_CREATE_INFORMATION: NTCREATEFILE_CREATE_OPTIONS = 268435456u32;
1668 pub const FILE_CREATE: NTCREATEFILE_CREATE_DISPOSITION = 2u32;
1669 pub const FILE_CREATE_TREE_CONNECTION: NTCREATEFILE_CREATE_OPTIONS = 128u32;
1670 pub const FILE_DELETE_ON_CLOSE: NTCREATEFILE_CREATE_OPTIONS = 4096u32;
1671 pub const FILE_DIRECTORY_FILE: NTCREATEFILE_CREATE_OPTIONS = 1u32;
1672 #[repr(C)]
1673 #[derive(Clone, Copy)]
1674 pub struct FILE_DIRECTORY_INFORMATION {
1675 pub NextEntryOffset: u32,
1676 pub FileIndex: u32,
1677 pub CreationTime: i64,
1678 pub LastAccessTime: i64,
1679 pub LastWriteTime: i64,
1680 pub ChangeTime: i64,
1681 pub EndOfFile: i64,
1682 pub AllocationSize: i64,
1683 pub FileAttributes: u32,
1684 pub FileNameLength: u32,
1685 pub FileName: [u16; 1],
1686 }
1687 impl Default for FILE_DIRECTORY_INFORMATION {
1688 fn default() -> Self {
1689 unsafe { core::mem::zeroed() }
1690 }
1691 }
1692 pub const FILE_DISALLOW_EXCLUSIVE: NTCREATEFILE_CREATE_OPTIONS = 131072u32;
1693 pub const FILE_DISPOSITION_DELETE: FILE_DISPOSITION_INFORMATION_EX_FLAGS = 1u32;
1694 pub const FILE_DISPOSITION_DO_NOT_DELETE: FILE_DISPOSITION_INFORMATION_EX_FLAGS = 0u32;
1695 pub const FILE_DISPOSITION_FORCE_IMAGE_SECTION_CHECK: FILE_DISPOSITION_INFORMATION_EX_FLAGS = 4u32;
1696 pub const FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE: FILE_DISPOSITION_INFORMATION_EX_FLAGS = 16u32;
1697 #[repr(C)]
1698 #[derive(Clone, Copy, Default)]
1699 pub struct FILE_DISPOSITION_INFORMATION {
1700 pub DeleteFile: bool,
1701 }
1702 #[repr(C)]
1703 #[derive(Clone, Copy, Default)]
1704 pub struct FILE_DISPOSITION_INFORMATION_EX {
1705 pub Flags: FILE_DISPOSITION_INFORMATION_EX_FLAGS,
1706 }
1707 pub type FILE_DISPOSITION_INFORMATION_EX_FLAGS = u32;
1708 pub const FILE_DISPOSITION_ON_CLOSE: FILE_DISPOSITION_INFORMATION_EX_FLAGS = 8u32;
1709 pub const FILE_DISPOSITION_POSIX_SEMANTICS: FILE_DISPOSITION_INFORMATION_EX_FLAGS = 2u32;
1710 #[repr(C)]
1711 #[derive(Clone, Copy, Default)]
1712 pub struct FILE_EA_INFORMATION {
1713 pub EaSize: u32,
1714 }
1715 pub const FILE_EA_TYPE_ASCII: u32 = 65533u32;
1716 pub const FILE_EA_TYPE_ASN1: u32 = 65501u32;
1717 pub const FILE_EA_TYPE_BINARY: u32 = 65534u32;
1718 pub const FILE_EA_TYPE_BITMAP: u32 = 65531u32;
1719 pub const FILE_EA_TYPE_EA: u32 = 65518u32;
1720 pub const FILE_EA_TYPE_FAMILY_IDS: u32 = 65281u32;
1721 pub const FILE_EA_TYPE_ICON: u32 = 65529u32;
1722 pub const FILE_EA_TYPE_METAFILE: u32 = 65530u32;
1723 pub const FILE_EA_TYPE_MVMT: u32 = 65503u32;
1724 pub const FILE_EA_TYPE_MVST: u32 = 65502u32;
1725 #[repr(C)]
1726 #[derive(Clone, Copy, Default)]
1727 pub struct FILE_END_OF_FILE_INFORMATION_EX {
1728 pub EndOfFile: i64,
1729 pub PagingFileSizeInMM: i64,
1730 pub PagingFileMaxSize: i64,
1731 pub Flags: u32,
1732 }
1733 #[repr(C)]
1734 #[derive(Clone, Copy)]
1735 pub struct FILE_FS_ATTRIBUTE_INFORMATION {
1736 pub FileSystemAttributes: u32,
1737 pub MaximumComponentNameLength: i32,
1738 pub FileSystemNameLength: u32,
1739 pub FileSystemName: [u16; 1],
1740 }
1741 impl Default for FILE_FS_ATTRIBUTE_INFORMATION {
1742 fn default() -> Self {
1743 unsafe { core::mem::zeroed() }
1744 }
1745 }
1746 #[repr(C)]
1747 #[derive(Clone, Copy, Default)]
1748 pub struct FILE_FS_CONTROL_INFORMATION {
1749 pub FreeSpaceStartFiltering: i64,
1750 pub FreeSpaceThreshold: i64,
1751 pub FreeSpaceStopFiltering: i64,
1752 pub DefaultQuotaThreshold: i64,
1753 pub DefaultQuotaLimit: i64,
1754 pub FileSystemControlFlags: u32,
1755 }
1756 #[repr(C)]
1757 #[derive(Clone, Copy, Default)]
1758 pub struct FILE_FS_DATA_COPY_INFORMATION {
1759 pub NumberOfCopies: u32,
1760 }
1761 #[repr(C)]
1762 #[derive(Clone, Copy)]
1763 pub struct FILE_FS_DRIVER_PATH_INFORMATION {
1764 pub DriverInPath: bool,
1765 pub DriverNameLength: u32,
1766 pub DriverName: [u16; 1],
1767 }
1768 impl Default for FILE_FS_DRIVER_PATH_INFORMATION {
1769 fn default() -> Self {
1770 unsafe { core::mem::zeroed() }
1771 }
1772 }
1773 #[repr(C)]
1774 #[derive(Clone, Copy, Default)]
1775 pub struct FILE_FS_SECTOR_SIZE_INFORMATION {
1776 pub LogicalBytesPerSector: u32,
1777 pub PhysicalBytesPerSectorForAtomicity: u32,
1778 pub PhysicalBytesPerSectorForPerformance: u32,
1779 pub FileSystemEffectivePhysicalBytesPerSectorForAtomicity: u32,
1780 pub Flags: u32,
1781 pub ByteOffsetForSectorAlignment: u32,
1782 pub ByteOffsetForPartitionAlignment: u32,
1783 }
1784 #[repr(C)]
1785 #[derive(Clone, Copy, Default)]
1786 pub struct FILE_FS_VOLUME_FLAGS_INFORMATION {
1787 pub Flags: u32,
1788 }
1789 #[repr(C)]
1790 #[derive(Clone, Copy)]
1791 pub struct FILE_FULL_DIR_INFORMATION {
1792 pub NextEntryOffset: u32,
1793 pub FileIndex: u32,
1794 pub CreationTime: i64,
1795 pub LastAccessTime: i64,
1796 pub LastWriteTime: i64,
1797 pub ChangeTime: i64,
1798 pub EndOfFile: i64,
1799 pub AllocationSize: i64,
1800 pub FileAttributes: u32,
1801 pub FileNameLength: u32,
1802 pub EaSize: u32,
1803 pub FileName: [u16; 1],
1804 }
1805 impl Default for FILE_FULL_DIR_INFORMATION {
1806 fn default() -> Self {
1807 unsafe { core::mem::zeroed() }
1808 }
1809 }
1810 #[repr(C)]
1811 #[derive(Clone, Copy)]
1812 pub struct FILE_FULL_EA_INFORMATION {
1813 pub NextEntryOffset: u32,
1814 pub Flags: u8,
1815 pub EaNameLength: u8,
1816 pub EaValueLength: u16,
1817 pub EaName: [i8; 1],
1818 }
1819 impl Default for FILE_FULL_EA_INFORMATION {
1820 fn default() -> Self {
1821 unsafe { core::mem::zeroed() }
1822 }
1823 }
1824 #[repr(C)]
1825 #[derive(Clone, Copy)]
1826 pub struct FILE_GET_EA_INFORMATION {
1827 pub NextEntryOffset: u32,
1828 pub EaNameLength: u8,
1829 pub EaName: [i8; 1],
1830 }
1831 impl Default for FILE_GET_EA_INFORMATION {
1832 fn default() -> Self {
1833 unsafe { core::mem::zeroed() }
1834 }
1835 }
1836 #[repr(C)]
1837 #[cfg(feature = "Win32_Security")]
1838 #[derive(Clone, Copy, Default)]
1839 pub struct FILE_GET_QUOTA_INFORMATION {
1840 pub NextEntryOffset: u32,
1841 pub SidLength: u32,
1842 pub Sid: super::super::super::Win32::Security::SID,
1843 }
1844 #[repr(C)]
1845 #[derive(Clone, Copy)]
1846 pub struct FILE_ID_BOTH_DIR_INFORMATION {
1847 pub NextEntryOffset: u32,
1848 pub FileIndex: u32,
1849 pub CreationTime: i64,
1850 pub LastAccessTime: i64,
1851 pub LastWriteTime: i64,
1852 pub ChangeTime: i64,
1853 pub EndOfFile: i64,
1854 pub AllocationSize: i64,
1855 pub FileAttributes: u32,
1856 pub FileNameLength: u32,
1857 pub EaSize: u32,
1858 pub ShortNameLength: i8,
1859 pub ShortName: [u16; 12],
1860 pub FileId: i64,
1861 pub FileName: [u16; 1],
1862 }
1863 impl Default for FILE_ID_BOTH_DIR_INFORMATION {
1864 fn default() -> Self {
1865 unsafe { core::mem::zeroed() }
1866 }
1867 }
1868 #[repr(C)]
1869 #[cfg(feature = "Win32_Storage_FileSystem")]
1870 #[derive(Clone, Copy)]
1871 pub struct FILE_ID_EXTD_BOTH_DIR_INFORMATION {
1872 pub NextEntryOffset: u32,
1873 pub FileIndex: u32,
1874 pub CreationTime: i64,
1875 pub LastAccessTime: i64,
1876 pub LastWriteTime: i64,
1877 pub ChangeTime: i64,
1878 pub EndOfFile: i64,
1879 pub AllocationSize: i64,
1880 pub FileAttributes: u32,
1881 pub FileNameLength: u32,
1882 pub EaSize: u32,
1883 pub ReparsePointTag: u32,
1884 pub FileId: super::super::super::Win32::Storage::FileSystem::FILE_ID_128,
1885 pub ShortNameLength: i8,
1886 pub ShortName: [u16; 12],
1887 pub FileName: [u16; 1],
1888 }
1889 #[cfg(feature = "Win32_Storage_FileSystem")]
1890 impl Default for FILE_ID_EXTD_BOTH_DIR_INFORMATION {
1891 fn default() -> Self {
1892 unsafe { core::mem::zeroed() }
1893 }
1894 }
1895 #[repr(C)]
1896 #[cfg(feature = "Win32_Storage_FileSystem")]
1897 #[derive(Clone, Copy)]
1898 pub struct FILE_ID_EXTD_DIR_INFORMATION {
1899 pub NextEntryOffset: u32,
1900 pub FileIndex: u32,
1901 pub CreationTime: i64,
1902 pub LastAccessTime: i64,
1903 pub LastWriteTime: i64,
1904 pub ChangeTime: i64,
1905 pub EndOfFile: i64,
1906 pub AllocationSize: i64,
1907 pub FileAttributes: u32,
1908 pub FileNameLength: u32,
1909 pub EaSize: u32,
1910 pub ReparsePointTag: u32,
1911 pub FileId: super::super::super::Win32::Storage::FileSystem::FILE_ID_128,
1912 pub FileName: [u16; 1],
1913 }
1914 #[cfg(feature = "Win32_Storage_FileSystem")]
1915 impl Default for FILE_ID_EXTD_DIR_INFORMATION {
1916 fn default() -> Self {
1917 unsafe { core::mem::zeroed() }
1918 }
1919 }
1920 #[repr(C)]
1921 #[derive(Clone, Copy)]
1922 pub struct FILE_ID_FULL_DIR_INFORMATION {
1923 pub NextEntryOffset: u32,
1924 pub FileIndex: u32,
1925 pub CreationTime: i64,
1926 pub LastAccessTime: i64,
1927 pub LastWriteTime: i64,
1928 pub ChangeTime: i64,
1929 pub EndOfFile: i64,
1930 pub AllocationSize: i64,
1931 pub FileAttributes: u32,
1932 pub FileNameLength: u32,
1933 pub EaSize: u32,
1934 pub FileId: i64,
1935 pub FileName: [u16; 1],
1936 }
1937 impl Default for FILE_ID_FULL_DIR_INFORMATION {
1938 fn default() -> Self {
1939 unsafe { core::mem::zeroed() }
1940 }
1941 }
1942 #[repr(C)]
1943 #[derive(Clone, Copy)]
1944 pub struct FILE_ID_GLOBAL_TX_DIR_INFORMATION {
1945 pub NextEntryOffset: u32,
1946 pub FileIndex: u32,
1947 pub CreationTime: i64,
1948 pub LastAccessTime: i64,
1949 pub LastWriteTime: i64,
1950 pub ChangeTime: i64,
1951 pub EndOfFile: i64,
1952 pub AllocationSize: i64,
1953 pub FileAttributes: u32,
1954 pub FileNameLength: u32,
1955 pub FileId: i64,
1956 pub LockingTransactionId: windows_sys::core::GUID,
1957 pub TxInfoFlags: u32,
1958 pub FileName: [u16; 1],
1959 }
1960 impl Default for FILE_ID_GLOBAL_TX_DIR_INFORMATION {
1961 fn default() -> Self {
1962 unsafe { core::mem::zeroed() }
1963 }
1964 }
1965 pub const FILE_ID_GLOBAL_TX_DIR_INFO_FLAG_VISIBLE_OUTSIDE_TX: u32 = 4u32;
1966 pub const FILE_ID_GLOBAL_TX_DIR_INFO_FLAG_VISIBLE_TO_TX: u32 = 2u32;
1967 pub const FILE_ID_GLOBAL_TX_DIR_INFO_FLAG_WRITELOCKED: u32 = 1u32;
1968 #[repr(C)]
1969 #[cfg(feature = "Win32_Storage_FileSystem")]
1970 #[derive(Clone, Copy, Default)]
1971 pub struct FILE_ID_INFORMATION {
1972 pub VolumeSerialNumber: u64,
1973 pub FileId: super::super::super::Win32::Storage::FileSystem::FILE_ID_128,
1974 }
1975 pub type FILE_INFORMATION_CLASS = i32;
1976 #[repr(C)]
1977 #[derive(Clone, Copy, Default)]
1978 pub struct FILE_INFORMATION_DEFINITION {
1979 pub Class: FILE_INFORMATION_CLASS,
1980 pub NextEntryOffset: u32,
1981 pub FileNameLengthOffset: u32,
1982 pub FileNameOffset: u32,
1983 }
1984 #[repr(C)]
1985 #[derive(Clone, Copy, Default)]
1986 pub struct FILE_INTERNAL_INFORMATION {
1987 pub IndexNumber: i64,
1988 }
1989 #[repr(C)]
1990 #[derive(Clone, Copy, Default)]
1991 pub struct FILE_KNOWN_FOLDER_INFORMATION {
1992 pub Type: FILE_KNOWN_FOLDER_TYPE,
1993 }
1994 pub type FILE_KNOWN_FOLDER_TYPE = i32;
1995 #[repr(C)]
1996 #[cfg(feature = "Win32_Storage_FileSystem")]
1997 #[derive(Clone, Copy, Default)]
1998 pub struct FILE_LINKS_FULL_ID_INFORMATION {
1999 pub BytesNeeded: u32,
2000 pub EntriesReturned: u32,
2001 pub Entry: FILE_LINK_ENTRY_FULL_ID_INFORMATION,
2002 }
2003 #[repr(C)]
2004 #[derive(Clone, Copy, Default)]
2005 pub struct FILE_LINKS_INFORMATION {
2006 pub BytesNeeded: u32,
2007 pub EntriesReturned: u32,
2008 pub Entry: FILE_LINK_ENTRY_INFORMATION,
2009 }
2010 #[repr(C)]
2011 #[cfg(feature = "Win32_Storage_FileSystem")]
2012 #[derive(Clone, Copy)]
2013 pub struct FILE_LINK_ENTRY_FULL_ID_INFORMATION {
2014 pub NextEntryOffset: u32,
2015 pub ParentFileId: super::super::super::Win32::Storage::FileSystem::FILE_ID_128,
2016 pub FileNameLength: u32,
2017 pub FileName: [u16; 1],
2018 }
2019 #[cfg(feature = "Win32_Storage_FileSystem")]
2020 impl Default for FILE_LINK_ENTRY_FULL_ID_INFORMATION {
2021 fn default() -> Self {
2022 unsafe { core::mem::zeroed() }
2023 }
2024 }
2025 #[repr(C)]
2026 #[derive(Clone, Copy)]
2027 pub struct FILE_LINK_ENTRY_INFORMATION {
2028 pub NextEntryOffset: u32,
2029 pub ParentFileId: i64,
2030 pub FileNameLength: u32,
2031 pub FileName: [u16; 1],
2032 }
2033 impl Default for FILE_LINK_ENTRY_INFORMATION {
2034 fn default() -> Self {
2035 unsafe { core::mem::zeroed() }
2036 }
2037 }
2038 pub const FILE_LINK_FORCE_RESIZE_SOURCE_SR: u32 = 256u32;
2039 pub const FILE_LINK_FORCE_RESIZE_SR: u32 = 384u32;
2040 pub const FILE_LINK_FORCE_RESIZE_TARGET_SR: u32 = 128u32;
2041 pub const FILE_LINK_IGNORE_READONLY_ATTRIBUTE: u32 = 64u32;
2042 #[repr(C)]
2043 #[derive(Clone, Copy)]
2044 pub struct FILE_LINK_INFORMATION {
2045 pub Anonymous: FILE_LINK_INFORMATION_0,
2046 pub RootDirectory: super::super::super::Win32::Foundation::HANDLE,
2047 pub FileNameLength: u32,
2048 pub FileName: [u16; 1],
2049 }
2050 impl Default for FILE_LINK_INFORMATION {
2051 fn default() -> Self {
2052 unsafe { core::mem::zeroed() }
2053 }
2054 }
2055 #[repr(C)]
2056 #[derive(Clone, Copy)]
2057 pub union FILE_LINK_INFORMATION_0 {
2058 pub ReplaceIfExists: bool,
2059 pub Flags: u32,
2060 }
2061 impl Default for FILE_LINK_INFORMATION_0 {
2062 fn default() -> Self {
2063 unsafe { core::mem::zeroed() }
2064 }
2065 }
2066 pub const FILE_LINK_NO_DECREASE_AVAILABLE_SPACE: u32 = 32u32;
2067 pub const FILE_LINK_NO_INCREASE_AVAILABLE_SPACE: u32 = 16u32;
2068 pub const FILE_LINK_POSIX_SEMANTICS: u32 = 2u32;
2069 pub const FILE_LINK_PRESERVE_AVAILABLE_SPACE: u32 = 48u32;
2070 pub const FILE_LINK_REPLACE_IF_EXISTS: u32 = 1u32;
2071 pub const FILE_LINK_SUPPRESS_STORAGE_RESERVE_INHERITANCE: u32 = 8u32;
2072 #[repr(C)]
2073 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
2074 #[derive(Clone, Copy)]
2075 pub struct FILE_LOCK {
2076 pub CompleteLockIrpRoutine: PCOMPLETE_LOCK_IRP_ROUTINE,
2077 pub UnlockRoutine: PUNLOCK_ROUTINE,
2078 pub FastIoIsQuestionable: bool,
2079 pub SpareC: [bool; 3],
2080 pub LockInformation: *mut core::ffi::c_void,
2081 pub LastReturnedLockInfo: FILE_LOCK_INFO,
2082 pub LastReturnedLock: *mut core::ffi::c_void,
2083 pub LockRequestsInProgress: i32,
2084 }
2085 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
2086 impl Default for FILE_LOCK {
2087 fn default() -> Self {
2088 unsafe { core::mem::zeroed() }
2089 }
2090 }
2091 #[repr(C)]
2092 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
2093 #[derive(Clone, Copy)]
2094 pub struct FILE_LOCK_INFO {
2095 pub StartingByte: i64,
2096 pub Length: i64,
2097 pub ExclusiveLock: bool,
2098 pub Key: u32,
2099 pub FileObject: *mut super::super::Foundation::FILE_OBJECT,
2100 pub ProcessId: *mut core::ffi::c_void,
2101 pub EndingByte: i64,
2102 }
2103 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
2104 impl Default for FILE_LOCK_INFO {
2105 fn default() -> Self {
2106 unsafe { core::mem::zeroed() }
2107 }
2108 }
2109 #[repr(C)]
2110 #[derive(Clone, Copy, Default)]
2111 pub struct FILE_MAILSLOT_QUERY_INFORMATION {
2112 pub MaximumMessageSize: u32,
2113 pub MailslotQuota: u32,
2114 pub NextMessageSize: u32,
2115 pub MessagesAvailable: u32,
2116 pub ReadTimeout: i64,
2117 }
2118 #[repr(C)]
2119 #[derive(Clone, Copy)]
2120 pub struct FILE_MAILSLOT_SET_INFORMATION {
2121 pub ReadTimeout: *mut i64,
2122 }
2123 impl Default for FILE_MAILSLOT_SET_INFORMATION {
2124 fn default() -> Self {
2125 unsafe { core::mem::zeroed() }
2126 }
2127 }
2128 #[repr(C)]
2129 #[derive(Clone, Copy, Default)]
2130 pub struct FILE_MODE_INFORMATION {
2131 pub Mode: u32,
2132 }
2133 #[repr(C)]
2134 #[derive(Clone, Copy)]
2135 pub struct FILE_MOVE_CLUSTER_INFORMATION {
2136 pub ClusterCount: u32,
2137 pub RootDirectory: super::super::super::Win32::Foundation::HANDLE,
2138 pub FileNameLength: u32,
2139 pub FileName: [u16; 1],
2140 }
2141 impl Default for FILE_MOVE_CLUSTER_INFORMATION {
2142 fn default() -> Self {
2143 unsafe { core::mem::zeroed() }
2144 }
2145 }
2146 #[repr(C)]
2147 #[derive(Clone, Copy)]
2148 pub struct FILE_NAMES_INFORMATION {
2149 pub NextEntryOffset: u32,
2150 pub FileIndex: u32,
2151 pub FileNameLength: u32,
2152 pub FileName: [u16; 1],
2153 }
2154 impl Default for FILE_NAMES_INFORMATION {
2155 fn default() -> Self {
2156 unsafe { core::mem::zeroed() }
2157 }
2158 }
2159 #[repr(C)]
2160 #[derive(Clone, Copy)]
2161 pub struct FILE_NAME_INFORMATION {
2162 pub FileNameLength: u32,
2163 pub FileName: [u16; 1],
2164 }
2165 impl Default for FILE_NAME_INFORMATION {
2166 fn default() -> Self {
2167 unsafe { core::mem::zeroed() }
2168 }
2169 }
2170 pub const FILE_NEED_EA: u32 = 128u32;
2171 #[repr(C)]
2172 #[derive(Clone, Copy, Default)]
2173 pub struct FILE_NETWORK_OPEN_INFORMATION {
2174 pub CreationTime: i64,
2175 pub LastAccessTime: i64,
2176 pub LastWriteTime: i64,
2177 pub ChangeTime: i64,
2178 pub AllocationSize: i64,
2179 pub EndOfFile: i64,
2180 pub FileAttributes: u32,
2181 }
2182 #[repr(C)]
2183 #[derive(Clone, Copy)]
2184 pub struct FILE_NETWORK_PHYSICAL_NAME_INFORMATION {
2185 pub FileNameLength: u32,
2186 pub FileName: [u16; 1],
2187 }
2188 impl Default for FILE_NETWORK_PHYSICAL_NAME_INFORMATION {
2189 fn default() -> Self {
2190 unsafe { core::mem::zeroed() }
2191 }
2192 }
2193 pub const FILE_NON_DIRECTORY_FILE: NTCREATEFILE_CREATE_OPTIONS = 64u32;
2194 pub const FILE_NOTIFY_CHANGE_EA: u32 = 128u32;
2195 pub const FILE_NOTIFY_CHANGE_NAME: u32 = 3u32;
2196 pub const FILE_NOTIFY_CHANGE_STREAM_NAME: u32 = 512u32;
2197 pub const FILE_NOTIFY_CHANGE_STREAM_SIZE: u32 = 1024u32;
2198 pub const FILE_NOTIFY_CHANGE_STREAM_WRITE: u32 = 2048u32;
2199 pub const FILE_NOTIFY_VALID_MASK: u32 = 4095u32;
2200 pub const FILE_NO_COMPRESSION: NTCREATEFILE_CREATE_OPTIONS = 32768u32;
2201 pub const FILE_NO_EA_KNOWLEDGE: NTCREATEFILE_CREATE_OPTIONS = 512u32;
2202 pub const FILE_NO_INTERMEDIATE_BUFFERING: NTCREATEFILE_CREATE_OPTIONS = 8u32;
2203 #[repr(C)]
2204 #[derive(Clone, Copy)]
2205 pub struct FILE_OBJECTID_INFORMATION {
2206 pub FileReference: i64,
2207 pub ObjectId: [u8; 16],
2208 pub Anonymous: FILE_OBJECTID_INFORMATION_0,
2209 }
2210 impl Default for FILE_OBJECTID_INFORMATION {
2211 fn default() -> Self {
2212 unsafe { core::mem::zeroed() }
2213 }
2214 }
2215 #[repr(C)]
2216 #[derive(Clone, Copy)]
2217 pub union FILE_OBJECTID_INFORMATION_0 {
2218 pub Anonymous: FILE_OBJECTID_INFORMATION_0_0,
2219 pub ExtendedInfo: [u8; 48],
2220 }
2221 impl Default for FILE_OBJECTID_INFORMATION_0 {
2222 fn default() -> Self {
2223 unsafe { core::mem::zeroed() }
2224 }
2225 }
2226 #[repr(C)]
2227 #[derive(Clone, Copy)]
2228 pub struct FILE_OBJECTID_INFORMATION_0_0 {
2229 pub BirthVolumeId: [u8; 16],
2230 pub BirthObjectId: [u8; 16],
2231 pub DomainId: [u8; 16],
2232 }
2233 impl Default for FILE_OBJECTID_INFORMATION_0_0 {
2234 fn default() -> Self {
2235 unsafe { core::mem::zeroed() }
2236 }
2237 }
2238 pub const FILE_OPBATCH_BREAK_UNDERWAY: u32 = 9u32;
2239 pub const FILE_OPEN: NTCREATEFILE_CREATE_DISPOSITION = 1u32;
2240 pub const FILE_OPEN_BY_FILE_ID: NTCREATEFILE_CREATE_OPTIONS = 8192u32;
2241 pub const FILE_OPEN_FOR_BACKUP_INTENT: NTCREATEFILE_CREATE_OPTIONS = 16384u32;
2242 pub const FILE_OPEN_FOR_FREE_SPACE_QUERY: NTCREATEFILE_CREATE_OPTIONS = 8388608u32;
2243 pub const FILE_OPEN_IF: NTCREATEFILE_CREATE_DISPOSITION = 3u32;
2244 pub const FILE_OPEN_NO_RECALL: NTCREATEFILE_CREATE_OPTIONS = 4194304u32;
2245 pub const FILE_OPEN_REPARSE_POINT: NTCREATEFILE_CREATE_OPTIONS = 2097152u32;
2246 pub const FILE_OPEN_REQUIRING_OPLOCK: NTCREATEFILE_CREATE_OPTIONS = 65536u32;
2247 pub const FILE_OPLOCK_BROKEN_TO_LEVEL_2: u32 = 7u32;
2248 pub const FILE_OPLOCK_BROKEN_TO_NONE: u32 = 8u32;
2249 pub const FILE_OVERWRITE: NTCREATEFILE_CREATE_DISPOSITION = 4u32;
2250 pub const FILE_OVERWRITE_IF: NTCREATEFILE_CREATE_DISPOSITION = 5u32;
2251 pub const FILE_PIPE_ACCEPT_REMOTE_CLIENTS: u32 = 0u32;
2252 #[repr(C)]
2253 #[derive(Clone, Copy)]
2254 pub struct FILE_PIPE_ASSIGN_EVENT_BUFFER {
2255 pub EventHandle: super::super::super::Win32::Foundation::HANDLE,
2256 pub KeyValue: u32,
2257 }
2258 impl Default for FILE_PIPE_ASSIGN_EVENT_BUFFER {
2259 fn default() -> Self {
2260 unsafe { core::mem::zeroed() }
2261 }
2262 }
2263 pub const FILE_PIPE_BYTE_STREAM_MODE: u32 = 0u32;
2264 pub const FILE_PIPE_BYTE_STREAM_TYPE: u32 = 0u32;
2265 pub const FILE_PIPE_CLIENT_END: u32 = 0u32;
2266 #[repr(C)]
2267 #[derive(Clone, Copy)]
2268 pub struct FILE_PIPE_CLIENT_PROCESS_BUFFER {
2269 pub ClientSession: *mut core::ffi::c_void,
2270 pub ClientProcess: *mut core::ffi::c_void,
2271 }
2272 impl Default for FILE_PIPE_CLIENT_PROCESS_BUFFER {
2273 fn default() -> Self {
2274 unsafe { core::mem::zeroed() }
2275 }
2276 }
2277 #[repr(C)]
2278 #[derive(Clone, Copy)]
2279 pub struct FILE_PIPE_CLIENT_PROCESS_BUFFER_EX {
2280 pub ClientSession: *mut core::ffi::c_void,
2281 pub ClientProcess: *mut core::ffi::c_void,
2282 pub ClientComputerNameLength: u16,
2283 pub ClientComputerBuffer: [u16; 16],
2284 }
2285 impl Default for FILE_PIPE_CLIENT_PROCESS_BUFFER_EX {
2286 fn default() -> Self {
2287 unsafe { core::mem::zeroed() }
2288 }
2289 }
2290 #[repr(C)]
2291 #[derive(Clone, Copy)]
2292 pub struct FILE_PIPE_CLIENT_PROCESS_BUFFER_V2 {
2293 pub ClientSession: u64,
2294 pub ClientProcess: *mut core::ffi::c_void,
2295 }
2296 impl Default for FILE_PIPE_CLIENT_PROCESS_BUFFER_V2 {
2297 fn default() -> Self {
2298 unsafe { core::mem::zeroed() }
2299 }
2300 }
2301 pub const FILE_PIPE_CLOSING_STATE: u32 = 4u32;
2302 pub const FILE_PIPE_COMPLETE_OPERATION: u32 = 1u32;
2303 pub const FILE_PIPE_COMPUTER_NAME_LENGTH: u32 = 15u32;
2304 pub const FILE_PIPE_CONNECTED_STATE: u32 = 3u32;
2305 #[repr(C)]
2306 #[derive(Clone, Copy, Default)]
2307 pub struct FILE_PIPE_CREATE_SYMLINK_INPUT {
2308 pub NameOffset: u16,
2309 pub NameLength: u16,
2310 pub SubstituteNameOffset: u16,
2311 pub SubstituteNameLength: u16,
2312 pub Flags: u32,
2313 }
2314 #[repr(C)]
2315 #[derive(Clone, Copy, Default)]
2316 pub struct FILE_PIPE_DELETE_SYMLINK_INPUT {
2317 pub NameOffset: u16,
2318 pub NameLength: u16,
2319 }
2320 pub const FILE_PIPE_DISCONNECTED_STATE: u32 = 1u32;
2321 #[repr(C)]
2322 #[derive(Clone, Copy, Default)]
2323 pub struct FILE_PIPE_EVENT_BUFFER {
2324 pub NamedPipeState: u32,
2325 pub EntryType: u32,
2326 pub ByteCount: u32,
2327 pub KeyValue: u32,
2328 pub NumberRequests: u32,
2329 }
2330 pub const FILE_PIPE_FULL_DUPLEX: u32 = 2u32;
2331 pub const FILE_PIPE_INBOUND: u32 = 0u32;
2332 #[repr(C)]
2333 #[derive(Clone, Copy, Default)]
2334 pub struct FILE_PIPE_INFORMATION {
2335 pub ReadMode: u32,
2336 pub CompletionMode: u32,
2337 }
2338 pub const FILE_PIPE_LISTENING_STATE: u32 = 2u32;
2339 #[repr(C)]
2340 #[derive(Clone, Copy, Default)]
2341 pub struct FILE_PIPE_LOCAL_INFORMATION {
2342 pub NamedPipeType: u32,
2343 pub NamedPipeConfiguration: u32,
2344 pub MaximumInstances: u32,
2345 pub CurrentInstances: u32,
2346 pub InboundQuota: u32,
2347 pub ReadDataAvailable: u32,
2348 pub OutboundQuota: u32,
2349 pub WriteQuotaAvailable: u32,
2350 pub NamedPipeState: u32,
2351 pub NamedPipeEnd: u32,
2352 }
2353 pub const FILE_PIPE_MESSAGE_MODE: u32 = 1u32;
2354 pub const FILE_PIPE_MESSAGE_TYPE: u32 = 1u32;
2355 pub const FILE_PIPE_OUTBOUND: u32 = 1u32;
2356 #[repr(C)]
2357 #[derive(Clone, Copy)]
2358 pub struct FILE_PIPE_PEEK_BUFFER {
2359 pub NamedPipeState: u32,
2360 pub ReadDataAvailable: u32,
2361 pub NumberOfMessages: u32,
2362 pub MessageLength: u32,
2363 pub Data: [i8; 1],
2364 }
2365 impl Default for FILE_PIPE_PEEK_BUFFER {
2366 fn default() -> Self {
2367 unsafe { core::mem::zeroed() }
2368 }
2369 }
2370 pub const FILE_PIPE_QUEUE_OPERATION: u32 = 0u32;
2371 pub const FILE_PIPE_READ_DATA: u32 = 0u32;
2372 pub const FILE_PIPE_REJECT_REMOTE_CLIENTS: u32 = 2u32;
2373 #[repr(C)]
2374 #[derive(Clone, Copy, Default)]
2375 pub struct FILE_PIPE_REMOTE_INFORMATION {
2376 pub CollectDataTime: i64,
2377 pub MaximumCollectionCount: u32,
2378 }
2379 pub const FILE_PIPE_SERVER_END: u32 = 1u32;
2380 #[repr(C)]
2381 #[derive(Clone, Copy)]
2382 pub struct FILE_PIPE_SILO_ARRIVAL_INPUT {
2383 pub JobHandle: super::super::super::Win32::Foundation::HANDLE,
2384 }
2385 impl Default for FILE_PIPE_SILO_ARRIVAL_INPUT {
2386 fn default() -> Self {
2387 unsafe { core::mem::zeroed() }
2388 }
2389 }
2390 pub const FILE_PIPE_SYMLINK_FLAG_GLOBAL: u32 = 1u32;
2391 pub const FILE_PIPE_SYMLINK_FLAG_RELATIVE: u32 = 2u32;
2392 pub const FILE_PIPE_TYPE_VALID_MASK: u32 = 3u32;
2393 #[repr(C)]
2394 #[derive(Clone, Copy)]
2395 pub struct FILE_PIPE_WAIT_FOR_BUFFER {
2396 pub Timeout: i64,
2397 pub NameLength: u32,
2398 pub TimeoutSpecified: bool,
2399 pub Name: [u16; 1],
2400 }
2401 impl Default for FILE_PIPE_WAIT_FOR_BUFFER {
2402 fn default() -> Self {
2403 unsafe { core::mem::zeroed() }
2404 }
2405 }
2406 pub const FILE_PIPE_WRITE_SPACE: u32 = 1u32;
2407 #[repr(C)]
2408 #[derive(Clone, Copy, Default)]
2409 pub struct FILE_POSITION_INFORMATION {
2410 pub CurrentByteOffset: i64,
2411 }
2412 #[repr(C)]
2413 #[cfg(feature = "Win32_Security")]
2414 #[derive(Clone, Copy, Default)]
2415 pub struct FILE_QUOTA_INFORMATION {
2416 pub NextEntryOffset: u32,
2417 pub SidLength: u32,
2418 pub ChangeTime: i64,
2419 pub QuotaUsed: i64,
2420 pub QuotaThreshold: i64,
2421 pub QuotaLimit: i64,
2422 pub Sid: super::super::super::Win32::Security::SID,
2423 }
2424 pub const FILE_RANDOM_ACCESS: NTCREATEFILE_CREATE_OPTIONS = 2048u32;
2425 #[repr(C)]
2426 #[derive(Clone, Copy)]
2427 pub struct FILE_REMOTE_PROTOCOL_INFORMATION {
2428 pub StructureVersion: u16,
2429 pub StructureSize: u16,
2430 pub Protocol: u32,
2431 pub ProtocolMajorVersion: u16,
2432 pub ProtocolMinorVersion: u16,
2433 pub ProtocolRevision: u16,
2434 pub Reserved: u16,
2435 pub Flags: u32,
2436 pub GenericReserved: FILE_REMOTE_PROTOCOL_INFORMATION_0,
2437 pub ProtocolSpecific: FILE_REMOTE_PROTOCOL_INFORMATION_1,
2438 }
2439 impl Default for FILE_REMOTE_PROTOCOL_INFORMATION {
2440 fn default() -> Self {
2441 unsafe { core::mem::zeroed() }
2442 }
2443 }
2444 #[repr(C)]
2445 #[derive(Clone, Copy)]
2446 pub struct FILE_REMOTE_PROTOCOL_INFORMATION_0 {
2447 pub Reserved: [u32; 8],
2448 }
2449 impl Default for FILE_REMOTE_PROTOCOL_INFORMATION_0 {
2450 fn default() -> Self {
2451 unsafe { core::mem::zeroed() }
2452 }
2453 }
2454 #[repr(C)]
2455 #[derive(Clone, Copy)]
2456 pub union FILE_REMOTE_PROTOCOL_INFORMATION_1 {
2457 pub Smb2: FILE_REMOTE_PROTOCOL_INFORMATION_1_0,
2458 pub Reserved: [u32; 16],
2459 }
2460 impl Default for FILE_REMOTE_PROTOCOL_INFORMATION_1 {
2461 fn default() -> Self {
2462 unsafe { core::mem::zeroed() }
2463 }
2464 }
2465 #[repr(C)]
2466 #[derive(Clone, Copy, Default)]
2467 pub struct FILE_REMOTE_PROTOCOL_INFORMATION_1_0 {
2468 pub Server: FILE_REMOTE_PROTOCOL_INFORMATION_1_0_0,
2469 pub Share: FILE_REMOTE_PROTOCOL_INFORMATION_1_0_1,
2470 }
2471 #[repr(C)]
2472 #[derive(Clone, Copy, Default)]
2473 pub struct FILE_REMOTE_PROTOCOL_INFORMATION_1_0_0 {
2474 pub Capabilities: u32,
2475 }
2476 #[repr(C)]
2477 #[derive(Clone, Copy)]
2478 pub struct FILE_REMOTE_PROTOCOL_INFORMATION_1_0_1 {
2479 pub Capabilities: u32,
2480 pub ShareFlags: u32,
2481 pub ShareType: u8,
2482 pub Reserved0: [u8; 3],
2483 pub Reserved1: u32,
2484 }
2485 impl Default for FILE_REMOTE_PROTOCOL_INFORMATION_1_0_1 {
2486 fn default() -> Self {
2487 unsafe { core::mem::zeroed() }
2488 }
2489 }
2490 pub const FILE_RENAME_FORCE_RESIZE_SOURCE_SR: u32 = 256u32;
2491 pub const FILE_RENAME_FORCE_RESIZE_SR: u32 = 384u32;
2492 pub const FILE_RENAME_FORCE_RESIZE_TARGET_SR: u32 = 128u32;
2493 pub const FILE_RENAME_IGNORE_READONLY_ATTRIBUTE: u32 = 64u32;
2494 #[repr(C)]
2495 #[derive(Clone, Copy)]
2496 pub struct FILE_RENAME_INFORMATION {
2497 pub Anonymous: FILE_RENAME_INFORMATION_0,
2498 pub RootDirectory: super::super::super::Win32::Foundation::HANDLE,
2499 pub FileNameLength: u32,
2500 pub FileName: [u16; 1],
2501 }
2502 impl Default for FILE_RENAME_INFORMATION {
2503 fn default() -> Self {
2504 unsafe { core::mem::zeroed() }
2505 }
2506 }
2507 #[repr(C)]
2508 #[derive(Clone, Copy)]
2509 pub union FILE_RENAME_INFORMATION_0 {
2510 pub ReplaceIfExists: bool,
2511 pub Flags: u32,
2512 }
2513 impl Default for FILE_RENAME_INFORMATION_0 {
2514 fn default() -> Self {
2515 unsafe { core::mem::zeroed() }
2516 }
2517 }
2518 pub const FILE_RENAME_NO_DECREASE_AVAILABLE_SPACE: u32 = 32u32;
2519 pub const FILE_RENAME_NO_INCREASE_AVAILABLE_SPACE: u32 = 16u32;
2520 pub const FILE_RENAME_POSIX_SEMANTICS: u32 = 2u32;
2521 pub const FILE_RENAME_PRESERVE_AVAILABLE_SPACE: u32 = 48u32;
2522 pub const FILE_RENAME_REPLACE_IF_EXISTS: u32 = 1u32;
2523 pub const FILE_RENAME_SUPPRESS_PIN_STATE_INHERITANCE: u32 = 4u32;
2524 pub const FILE_RENAME_SUPPRESS_STORAGE_RESERVE_INHERITANCE: u32 = 8u32;
2525 #[repr(C)]
2526 #[derive(Clone, Copy, Default)]
2527 pub struct FILE_REPARSE_POINT_INFORMATION {
2528 pub FileReference: i64,
2529 pub Tag: u32,
2530 }
2531 pub const FILE_RESERVE_OPFILTER: NTCREATEFILE_CREATE_OPTIONS = 1048576u32;
2532 pub const FILE_SEQUENTIAL_ONLY: NTCREATEFILE_CREATE_OPTIONS = 4u32;
2533 pub const FILE_SESSION_AWARE: NTCREATEFILE_CREATE_OPTIONS = 262144u32;
2534 #[repr(C)]
2535 #[derive(Clone, Copy, Default)]
2536 pub struct FILE_STANDARD_INFORMATION {
2537 pub AllocationSize: i64,
2538 pub EndOfFile: i64,
2539 pub NumberOfLinks: u32,
2540 pub DeletePending: bool,
2541 pub Directory: bool,
2542 }
2543 #[repr(C)]
2544 #[derive(Clone, Copy, Default)]
2545 pub struct FILE_STANDARD_LINK_INFORMATION {
2546 pub NumberOfAccessibleLinks: u32,
2547 pub TotalNumberOfLinks: u32,
2548 pub DeletePending: bool,
2549 pub Directory: bool,
2550 }
2551 #[repr(C)]
2552 #[derive(Clone, Copy, Default)]
2553 pub struct FILE_STAT_INFORMATION {
2554 pub FileId: i64,
2555 pub CreationTime: i64,
2556 pub LastAccessTime: i64,
2557 pub LastWriteTime: i64,
2558 pub ChangeTime: i64,
2559 pub AllocationSize: i64,
2560 pub EndOfFile: i64,
2561 pub FileAttributes: u32,
2562 pub ReparseTag: u32,
2563 pub NumberOfLinks: u32,
2564 pub EffectiveAccess: u32,
2565 }
2566 #[repr(C)]
2567 #[derive(Clone, Copy, Default)]
2568 pub struct FILE_STAT_LX_INFORMATION {
2569 pub FileId: i64,
2570 pub CreationTime: i64,
2571 pub LastAccessTime: i64,
2572 pub LastWriteTime: i64,
2573 pub ChangeTime: i64,
2574 pub AllocationSize: i64,
2575 pub EndOfFile: i64,
2576 pub FileAttributes: u32,
2577 pub ReparseTag: u32,
2578 pub NumberOfLinks: u32,
2579 pub EffectiveAccess: u32,
2580 pub LxFlags: u32,
2581 pub LxUid: u32,
2582 pub LxGid: u32,
2583 pub LxMode: u32,
2584 pub LxDeviceIdMajor: u32,
2585 pub LxDeviceIdMinor: u32,
2586 }
2587 #[repr(C)]
2588 #[cfg(feature = "Win32_System_Ioctl")]
2589 #[derive(Clone, Copy, Default)]
2590 pub struct FILE_STORAGE_RESERVE_ID_INFORMATION {
2591 pub StorageReserveId: super::super::super::Win32::System::Ioctl::STORAGE_RESERVE_ID,
2592 }
2593 #[repr(C)]
2594 #[derive(Clone, Copy)]
2595 pub struct FILE_STREAM_INFORMATION {
2596 pub NextEntryOffset: u32,
2597 pub StreamNameLength: u32,
2598 pub StreamSize: i64,
2599 pub StreamAllocationSize: i64,
2600 pub StreamName: [u16; 1],
2601 }
2602 impl Default for FILE_STREAM_INFORMATION {
2603 fn default() -> Self {
2604 unsafe { core::mem::zeroed() }
2605 }
2606 }
2607 pub const FILE_SUPERSEDE: NTCREATEFILE_CREATE_DISPOSITION = 0u32;
2608 pub const FILE_SYNCHRONOUS_IO_ALERT: NTCREATEFILE_CREATE_OPTIONS = 16u32;
2609 pub const FILE_SYNCHRONOUS_IO_NONALERT: NTCREATEFILE_CREATE_OPTIONS = 32u32;
2610 #[repr(C)]
2611 #[derive(Clone, Copy, Default)]
2612 pub struct FILE_TIMESTAMPS {
2613 pub CreationTime: i64,
2614 pub LastAccessTime: i64,
2615 pub LastWriteTime: i64,
2616 pub ChangeTime: i64,
2617 }
2618 #[repr(C)]
2619 #[derive(Clone, Copy)]
2620 pub struct FILE_TRACKING_INFORMATION {
2621 pub DestinationFile: super::super::super::Win32::Foundation::HANDLE,
2622 pub ObjectInformationLength: u32,
2623 pub ObjectInformation: [i8; 1],
2624 }
2625 impl Default for FILE_TRACKING_INFORMATION {
2626 fn default() -> Self {
2627 unsafe { core::mem::zeroed() }
2628 }
2629 }
2630 pub const FILE_VC_CONTENT_INDEX_DISABLED: u32 = 8u32;
2631 pub const FILE_VC_LOG_QUOTA_LIMIT: u32 = 32u32;
2632 pub const FILE_VC_LOG_QUOTA_THRESHOLD: u32 = 16u32;
2633 pub const FILE_VC_LOG_VOLUME_LIMIT: u32 = 128u32;
2634 pub const FILE_VC_LOG_VOLUME_THRESHOLD: u32 = 64u32;
2635 pub const FILE_VC_QUOTAS_INCOMPLETE: u32 = 256u32;
2636 pub const FILE_VC_QUOTAS_REBUILDING: u32 = 512u32;
2637 pub const FILE_VC_QUOTA_ENFORCE: u32 = 2u32;
2638 pub const FILE_VC_QUOTA_MASK: u32 = 3u32;
2639 pub const FILE_VC_QUOTA_NONE: u32 = 0u32;
2640 pub const FILE_VC_QUOTA_TRACK: u32 = 1u32;
2641 pub const FILE_VC_VALID_MASK: u32 = 1023u32;
2642 #[repr(C)]
2643 #[derive(Clone, Copy)]
2644 pub struct FILE_VOLUME_NAME_INFORMATION {
2645 pub DeviceNameLength: u32,
2646 pub DeviceName: [u16; 1],
2647 }
2648 impl Default for FILE_VOLUME_NAME_INFORMATION {
2649 fn default() -> Self {
2650 unsafe { core::mem::zeroed() }
2651 }
2652 }
2653 pub const FILE_WRITE_THROUGH: NTCREATEFILE_CREATE_OPTIONS = 2u32;
2654 pub const FLAGS_DELAY_REASONS_BITMAP_SCANNED: u32 = 2u32;
2655 pub const FLAGS_DELAY_REASONS_LOG_FILE_FULL: u32 = 1u32;
2656 pub const FLAGS_END_OF_FILE_INFO_EX_EXTEND_PAGING: u32 = 1u32;
2657 pub const FLAGS_END_OF_FILE_INFO_EX_NO_EXTRA_PAGING_EXTEND: u32 = 2u32;
2658 pub const FLAGS_END_OF_FILE_INFO_EX_TIME_CONSTRAINED: u32 = 4u32;
2659 pub type FREE_VIRTUAL_MEMORY_EX_CALLBACK = Option<unsafe extern "system" fn(callbackcontext: super::super::super::Win32::Foundation::HANDLE, processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: *mut *mut core::ffi::c_void, regionsize: *mut usize, freetype: u32) -> super::super::super::Win32::Foundation::NTSTATUS>;
2660 #[repr(C)]
2661 #[derive(Clone, Copy)]
2662 pub struct FSCTL_GHOST_FILE_EXTENTS_INPUT_BUFFER {
2663 pub FileOffset: i64,
2664 pub ByteCount: i64,
2665 pub RecallOwnerGuid: windows_sys::core::GUID,
2666 pub RecallMetadataBufferSize: u32,
2667 pub RecallMetadataBuffer: [u8; 1],
2668 }
2669 impl Default for FSCTL_GHOST_FILE_EXTENTS_INPUT_BUFFER {
2670 fn default() -> Self {
2671 unsafe { core::mem::zeroed() }
2672 }
2673 }
2674 pub const FSCTL_LMR_GET_LINK_TRACKING_INFORMATION: u32 = 1310952u32;
2675 pub const FSCTL_LMR_SET_LINK_TRACKING_INFORMATION: u32 = 1310956u32;
2676 pub const FSCTL_MAILSLOT_PEEK: u32 = 802819u32;
2677 pub const FSCTL_PIPE_ASSIGN_EVENT: u32 = 1114112u32;
2678 pub const FSCTL_PIPE_CREATE_SYMLINK: u32 = 1114188u32;
2679 pub const FSCTL_PIPE_DELETE_SYMLINK: u32 = 1114192u32;
2680 pub const FSCTL_PIPE_DISABLE_IMPERSONATE: u32 = 1114180u32;
2681 pub const FSCTL_PIPE_DISCONNECT: u32 = 1114116u32;
2682 pub const FSCTL_PIPE_FLUSH: u32 = 1146944u32;
2683 pub const FSCTL_PIPE_GET_CONNECTION_ATTRIBUTE: u32 = 1114160u32;
2684 pub const FSCTL_PIPE_GET_HANDLE_ATTRIBUTE: u32 = 1114168u32;
2685 pub const FSCTL_PIPE_GET_PIPE_ATTRIBUTE: u32 = 1114152u32;
2686 pub const FSCTL_PIPE_IMPERSONATE: u32 = 1114140u32;
2687 pub const FSCTL_PIPE_INTERNAL_READ: u32 = 1138676u32;
2688 pub const FSCTL_PIPE_INTERNAL_READ_OVFLOW: u32 = 1138688u32;
2689 pub const FSCTL_PIPE_INTERNAL_TRANSCEIVE: u32 = 1171455u32;
2690 pub const FSCTL_PIPE_INTERNAL_WRITE: u32 = 1155064u32;
2691 pub const FSCTL_PIPE_LISTEN: u32 = 1114120u32;
2692 pub const FSCTL_PIPE_PEEK: u32 = 1130508u32;
2693 pub const FSCTL_PIPE_QUERY_CLIENT_PROCESS: u32 = 1114148u32;
2694 pub const FSCTL_PIPE_QUERY_CLIENT_PROCESS_V2: u32 = 1114196u32;
2695 pub const FSCTL_PIPE_QUERY_EVENT: u32 = 1114128u32;
2696 pub const FSCTL_PIPE_SET_CLIENT_PROCESS: u32 = 1114144u32;
2697 pub const FSCTL_PIPE_SET_CONNECTION_ATTRIBUTE: u32 = 1114164u32;
2698 pub const FSCTL_PIPE_SET_HANDLE_ATTRIBUTE: u32 = 1114172u32;
2699 pub const FSCTL_PIPE_SET_PIPE_ATTRIBUTE: u32 = 1114156u32;
2700 pub const FSCTL_PIPE_SILO_ARRIVAL: u32 = 1146952u32;
2701 pub const FSCTL_PIPE_TRANSCEIVE: u32 = 1163287u32;
2702 pub const FSCTL_PIPE_WAIT: u32 = 1114136u32;
2703 #[repr(C)]
2704 #[derive(Clone, Copy, Default)]
2705 pub struct FSCTL_QUERY_GHOSTED_FILE_EXTENTS_INPUT_RANGE {
2706 pub FileOffset: i64,
2707 pub ByteCount: i64,
2708 }
2709 #[repr(C)]
2710 #[derive(Clone, Copy)]
2711 pub struct FSCTL_QUERY_GHOSTED_FILE_EXTENTS_OUTPUT {
2712 pub ExtentCount: u32,
2713 pub TotalExtentCount: u32,
2714 pub Extents: [u8; 1],
2715 }
2716 impl Default for FSCTL_QUERY_GHOSTED_FILE_EXTENTS_OUTPUT {
2717 fn default() -> Self {
2718 unsafe { core::mem::zeroed() }
2719 }
2720 }
2721 #[repr(C)]
2722 #[derive(Clone, Copy, Default)]
2723 pub struct FSCTL_QUERY_VOLUME_NUMA_INFO_OUTPUT {
2724 pub NumaNode: u32,
2725 }
2726 #[repr(C)]
2727 #[derive(Clone, Copy, Default)]
2728 pub struct FSCTL_UNMAP_SPACE_INPUT_BUFFER {
2729 pub BytesToUnmap: i64,
2730 }
2731 #[repr(C)]
2732 #[derive(Clone, Copy, Default)]
2733 pub struct FSCTL_UNMAP_SPACE_OUTPUT {
2734 pub BytesUnmapped: i64,
2735 }
2736 pub const FSRTL_ADD_TC_CASE_SENSITIVE: u32 = 1u32;
2737 pub const FSRTL_ADD_TC_KEY_BY_SHORT_NAME: u32 = 2u32;
2738 #[repr(C)]
2739 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
2740 #[derive(Clone, Copy)]
2741 pub struct FSRTL_ADVANCED_FCB_HEADER {
2742 pub Base: FSRTL_COMMON_FCB_HEADER,
2743 pub FastMutex: *mut super::super::Foundation::FAST_MUTEX,
2744 pub FilterContexts: super::super::super::Win32::System::Kernel::LIST_ENTRY,
2745 pub PushLock: usize,
2746 pub FileContextSupportPointer: *mut *mut core::ffi::c_void,
2747 pub Anonymous: FSRTL_ADVANCED_FCB_HEADER_0,
2748 pub AePushLock: *mut core::ffi::c_void,
2749 pub BypassIoOpenCount: u32,
2750 }
2751 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
2752 impl Default for FSRTL_ADVANCED_FCB_HEADER {
2753 fn default() -> Self {
2754 unsafe { core::mem::zeroed() }
2755 }
2756 }
2757 #[repr(C)]
2758 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
2759 #[derive(Clone, Copy)]
2760 pub union FSRTL_ADVANCED_FCB_HEADER_0 {
2761 pub Oplock: *mut core::ffi::c_void,
2762 pub ReservedForRemote: *mut core::ffi::c_void,
2763 }
2764 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
2765 impl Default for FSRTL_ADVANCED_FCB_HEADER_0 {
2766 fn default() -> Self {
2767 unsafe { core::mem::zeroed() }
2768 }
2769 }
2770 pub const FSRTL_ALLOCATE_ECPLIST_FLAG_CHARGE_QUOTA: u32 = 1u32;
2771 pub const FSRTL_ALLOCATE_ECP_FLAG_CHARGE_QUOTA: u32 = 1u32;
2772 pub const FSRTL_ALLOCATE_ECP_FLAG_NONPAGED_POOL: u32 = 2u32;
2773 #[repr(C)]
2774 #[cfg(feature = "Wdk_Foundation")]
2775 #[derive(Clone, Copy)]
2776 pub struct FSRTL_AUXILIARY_BUFFER {
2777 pub Buffer: *mut core::ffi::c_void,
2778 pub Length: u32,
2779 pub Flags: u32,
2780 pub Mdl: *mut super::super::Foundation::MDL,
2781 }
2782 #[cfg(feature = "Wdk_Foundation")]
2783 impl Default for FSRTL_AUXILIARY_BUFFER {
2784 fn default() -> Self {
2785 unsafe { core::mem::zeroed() }
2786 }
2787 }
2788 pub const FSRTL_AUXILIARY_FLAG_DEALLOCATE: u32 = 1u32;
2789 pub const FSRTL_CC_FLUSH_ERROR_FLAG_NO_HARD_ERROR: u32 = 1u32;
2790 pub const FSRTL_CC_FLUSH_ERROR_FLAG_NO_LOG_ENTRY: u32 = 2u32;
2791 pub type FSRTL_CHANGE_BACKING_TYPE = i32;
2792 #[repr(C)]
2793 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
2794 #[derive(Clone, Copy)]
2795 pub struct FSRTL_COMMON_FCB_HEADER {
2796 pub NodeTypeCode: i16,
2797 pub NodeByteSize: i16,
2798 pub Flags: u8,
2799 pub IsFastIoPossible: u8,
2800 pub Flags2: u8,
2801 pub _bitfield: u8,
2802 pub Resource: *mut super::super::Foundation::ERESOURCE,
2803 pub PagingIoResource: *mut super::super::Foundation::ERESOURCE,
2804 pub AllocationSize: i64,
2805 pub FileSize: i64,
2806 pub ValidDataLength: i64,
2807 }
2808 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
2809 impl Default for FSRTL_COMMON_FCB_HEADER {
2810 fn default() -> Self {
2811 unsafe { core::mem::zeroed() }
2812 }
2813 }
2814 pub type FSRTL_COMPARISON_RESULT = i32;
2815 pub const FSRTL_DRIVER_BACKING_FLAG_USE_PAGE_FILE: u32 = 1u32;
2816 pub const FSRTL_ECP_LOOKASIDE_FLAG_NONPAGED_POOL: u32 = 2u32;
2817 pub const FSRTL_FAT_LEGAL: u32 = 1u32;
2818 pub const FSRTL_FCB_HEADER_V0: u32 = 0u32;
2819 pub const FSRTL_FCB_HEADER_V1: u32 = 1u32;
2820 pub const FSRTL_FCB_HEADER_V2: u32 = 2u32;
2821 pub const FSRTL_FCB_HEADER_V3: u32 = 3u32;
2822 pub const FSRTL_FCB_HEADER_V4: u32 = 4u32;
2823 pub const FSRTL_FIND_TC_CASE_SENSITIVE: u32 = 1u32;
2824 pub const FSRTL_FLAG2_BYPASSIO_STREAM_PAUSED: u32 = 32u32;
2825 pub const FSRTL_FLAG2_DO_MODIFIED_WRITE: u32 = 1u32;
2826 pub const FSRTL_FLAG2_IS_PAGING_FILE: u32 = 8u32;
2827 pub const FSRTL_FLAG2_PURGE_WHEN_MAPPED: u32 = 4u32;
2828 pub const FSRTL_FLAG2_SUPPORTS_FILTER_CONTEXTS: u32 = 2u32;
2829 pub const FSRTL_FLAG2_WRITABLE_USER_MAPPED_FILE: u32 = 16u32;
2830 pub const FSRTL_FLAG_ACQUIRE_MAIN_RSRC_EX: u32 = 8u32;
2831 pub const FSRTL_FLAG_ACQUIRE_MAIN_RSRC_SH: u32 = 16u32;
2832 pub const FSRTL_FLAG_ADVANCED_HEADER: u32 = 64u32;
2833 pub const FSRTL_FLAG_EOF_ADVANCE_ACTIVE: u32 = 128u32;
2834 pub const FSRTL_FLAG_FILE_LENGTH_CHANGED: u32 = 2u32;
2835 pub const FSRTL_FLAG_FILE_MODIFIED: u32 = 1u32;
2836 pub const FSRTL_FLAG_LIMIT_MODIFIED_PAGES: u32 = 4u32;
2837 pub const FSRTL_FLAG_USER_MAPPED_FILE: u32 = 32u32;
2838 pub const FSRTL_HPFS_LEGAL: u32 = 2u32;
2839 #[repr(C)]
2840 #[derive(Clone, Copy, Default)]
2841 pub struct FSRTL_MUP_PROVIDER_INFO_LEVEL_1 {
2842 pub ProviderId: u32,
2843 }
2844 #[repr(C)]
2845 #[derive(Clone, Copy, Default)]
2846 pub struct FSRTL_MUP_PROVIDER_INFO_LEVEL_2 {
2847 pub ProviderId: u32,
2848 pub ProviderName: super::super::super::Win32::Foundation::UNICODE_STRING,
2849 }
2850 pub const FSRTL_NTFS_LEGAL: u32 = 4u32;
2851 pub const FSRTL_OLE_LEGAL: u32 = 16u32;
2852 #[repr(C)]
2853 #[cfg(feature = "Win32_System_Kernel")]
2854 #[derive(Clone, Copy)]
2855 pub struct FSRTL_PER_FILEOBJECT_CONTEXT {
2856 pub Links: super::super::super::Win32::System::Kernel::LIST_ENTRY,
2857 pub OwnerId: *mut core::ffi::c_void,
2858 pub InstanceId: *mut core::ffi::c_void,
2859 }
2860 #[cfg(feature = "Win32_System_Kernel")]
2861 impl Default for FSRTL_PER_FILEOBJECT_CONTEXT {
2862 fn default() -> Self {
2863 unsafe { core::mem::zeroed() }
2864 }
2865 }
2866 #[repr(C)]
2867 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
2868 #[derive(Clone, Copy)]
2869 pub struct FSRTL_PER_FILE_CONTEXT {
2870 pub Links: super::super::super::Win32::System::Kernel::LIST_ENTRY,
2871 pub OwnerId: *mut core::ffi::c_void,
2872 pub InstanceId: *mut core::ffi::c_void,
2873 pub FreeCallback: super::super::Foundation::PFREE_FUNCTION,
2874 }
2875 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
2876 impl Default for FSRTL_PER_FILE_CONTEXT {
2877 fn default() -> Self {
2878 unsafe { core::mem::zeroed() }
2879 }
2880 }
2881 #[repr(C)]
2882 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
2883 #[derive(Clone, Copy)]
2884 pub struct FSRTL_PER_STREAM_CONTEXT {
2885 pub Links: super::super::super::Win32::System::Kernel::LIST_ENTRY,
2886 pub OwnerId: *mut core::ffi::c_void,
2887 pub InstanceId: *mut core::ffi::c_void,
2888 pub FreeCallback: super::super::Foundation::PFREE_FUNCTION,
2889 }
2890 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
2891 impl Default for FSRTL_PER_STREAM_CONTEXT {
2892 fn default() -> Self {
2893 unsafe { core::mem::zeroed() }
2894 }
2895 }
2896 pub const FSRTL_UNC_HARDENING_CAPABILITIES_INTEGRITY: u32 = 2u32;
2897 pub const FSRTL_UNC_HARDENING_CAPABILITIES_MUTUAL_AUTH: u32 = 1u32;
2898 pub const FSRTL_UNC_HARDENING_CAPABILITIES_PRIVACY: u32 = 4u32;
2899 pub const FSRTL_UNC_PROVIDER_FLAGS_CONTAINER_AWARE: u32 = 8u32;
2900 pub const FSRTL_UNC_PROVIDER_FLAGS_CSC_ENABLED: u32 = 2u32;
2901 pub const FSRTL_UNC_PROVIDER_FLAGS_DOMAIN_SVC_AWARE: u32 = 4u32;
2902 pub const FSRTL_UNC_PROVIDER_FLAGS_MAILSLOTS_SUPPORTED: u32 = 1u32;
2903 #[repr(C)]
2904 #[derive(Clone, Copy)]
2905 pub struct FSRTL_UNC_PROVIDER_REGISTRATION {
2906 pub Size: u16,
2907 pub Version: u16,
2908 pub Anonymous1: FSRTL_UNC_PROVIDER_REGISTRATION_0,
2909 pub Anonymous2: FSRTL_UNC_PROVIDER_REGISTRATION_1,
2910 }
2911 impl Default for FSRTL_UNC_PROVIDER_REGISTRATION {
2912 fn default() -> Self {
2913 unsafe { core::mem::zeroed() }
2914 }
2915 }
2916 #[repr(C)]
2917 #[derive(Clone, Copy)]
2918 pub union FSRTL_UNC_PROVIDER_REGISTRATION_0 {
2919 pub ProviderFlags: u32,
2920 pub Anonymous: FSRTL_UNC_PROVIDER_REGISTRATION_0_0,
2921 }
2922 impl Default for FSRTL_UNC_PROVIDER_REGISTRATION_0 {
2923 fn default() -> Self {
2924 unsafe { core::mem::zeroed() }
2925 }
2926 }
2927 #[repr(C)]
2928 #[derive(Clone, Copy, Default)]
2929 pub struct FSRTL_UNC_PROVIDER_REGISTRATION_0_0 {
2930 pub _bitfield: u32,
2931 }
2932 #[repr(C)]
2933 #[derive(Clone, Copy)]
2934 pub union FSRTL_UNC_PROVIDER_REGISTRATION_1 {
2935 pub HardeningCapabilities: u32,
2936 pub Anonymous: FSRTL_UNC_PROVIDER_REGISTRATION_1_0,
2937 }
2938 impl Default for FSRTL_UNC_PROVIDER_REGISTRATION_1 {
2939 fn default() -> Self {
2940 unsafe { core::mem::zeroed() }
2941 }
2942 }
2943 #[repr(C)]
2944 #[derive(Clone, Copy, Default)]
2945 pub struct FSRTL_UNC_PROVIDER_REGISTRATION_1_0 {
2946 pub _bitfield: u32,
2947 }
2948 pub const FSRTL_UNC_REGISTRATION_CURRENT_VERSION: u32 = 513u32;
2949 pub const FSRTL_UNC_REGISTRATION_VERSION_0200: u32 = 512u32;
2950 pub const FSRTL_UNC_REGISTRATION_VERSION_0201: u32 = 513u32;
2951 pub const FSRTL_VIRTDISK_FULLY_ALLOCATED: u32 = 1u32;
2952 pub const FSRTL_VIRTDISK_NO_DRIVE_LETTER: u32 = 2u32;
2953 pub const FSRTL_VOLUME_BACKGROUND_FORMAT: u32 = 14u32;
2954 pub const FSRTL_VOLUME_CHANGE_SIZE: u32 = 13u32;
2955 pub const FSRTL_VOLUME_DISMOUNT: u32 = 1u32;
2956 pub const FSRTL_VOLUME_DISMOUNT_FAILED: u32 = 2u32;
2957 pub const FSRTL_VOLUME_FORCED_CLOSED: u32 = 10u32;
2958 pub const FSRTL_VOLUME_INFO_MAKE_COMPAT: u32 = 11u32;
2959 pub const FSRTL_VOLUME_LOCK: u32 = 3u32;
2960 pub const FSRTL_VOLUME_LOCK_FAILED: u32 = 4u32;
2961 pub const FSRTL_VOLUME_MOUNT: u32 = 6u32;
2962 pub const FSRTL_VOLUME_NEEDS_CHKDSK: u32 = 7u32;
2963 pub const FSRTL_VOLUME_PREPARING_EJECT: u32 = 12u32;
2964 pub const FSRTL_VOLUME_UNLOCK: u32 = 5u32;
2965 pub const FSRTL_VOLUME_WEARING_OUT: u32 = 9u32;
2966 pub const FSRTL_VOLUME_WORM_NEAR_FULL: u32 = 8u32;
2967 pub const FSRTL_WILD_CHARACTER: u32 = 8u32;
2968 #[repr(C)]
2969 #[derive(Clone, Copy)]
2970 pub struct FS_BPIO_INFO {
2971 pub ActiveBypassIoCount: u32,
2972 pub StorageDriverNameLen: u16,
2973 pub StorageDriverName: [u16; 32],
2974 }
2975 impl Default for FS_BPIO_INFO {
2976 fn default() -> Self {
2977 unsafe { core::mem::zeroed() }
2978 }
2979 }
2980 #[repr(C)]
2981 #[cfg(feature = "Win32_System_Ioctl")]
2982 #[derive(Clone, Copy, Default)]
2983 pub struct FS_BPIO_INPUT {
2984 pub Operation: super::super::super::Win32::System::Ioctl::FS_BPIO_OPERATIONS,
2985 pub InFlags: super::super::super::Win32::System::Ioctl::FS_BPIO_INFLAGS,
2986 pub Reserved1: u64,
2987 pub Reserved2: u64,
2988 }
2989 pub const FS_FILTER_ACQUIRE_FOR_CC_FLUSH: u16 = 65531u16;
2990 pub const FS_FILTER_ACQUIRE_FOR_MOD_WRITE: u16 = 65533u16;
2991 pub const FS_FILTER_ACQUIRE_FOR_SECTION_SYNCHRONIZATION: u16 = 65535u16;
2992 #[repr(C)]
2993 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
2994 #[derive(Clone, Copy, Default)]
2995 pub struct FS_FILTER_CALLBACKS {
2996 pub SizeOfFsFilterCallbacks: u32,
2997 pub Reserved: u32,
2998 pub PreAcquireForSectionSynchronization: PFS_FILTER_CALLBACK,
2999 pub PostAcquireForSectionSynchronization: PFS_FILTER_COMPLETION_CALLBACK,
3000 pub PreReleaseForSectionSynchronization: PFS_FILTER_CALLBACK,
3001 pub PostReleaseForSectionSynchronization: PFS_FILTER_COMPLETION_CALLBACK,
3002 pub PreAcquireForCcFlush: PFS_FILTER_CALLBACK,
3003 pub PostAcquireForCcFlush: PFS_FILTER_COMPLETION_CALLBACK,
3004 pub PreReleaseForCcFlush: PFS_FILTER_CALLBACK,
3005 pub PostReleaseForCcFlush: PFS_FILTER_COMPLETION_CALLBACK,
3006 pub PreAcquireForModifiedPageWriter: PFS_FILTER_CALLBACK,
3007 pub PostAcquireForModifiedPageWriter: PFS_FILTER_COMPLETION_CALLBACK,
3008 pub PreReleaseForModifiedPageWriter: PFS_FILTER_CALLBACK,
3009 pub PostReleaseForModifiedPageWriter: PFS_FILTER_COMPLETION_CALLBACK,
3010 pub PreQueryOpen: PFS_FILTER_CALLBACK,
3011 pub PostQueryOpen: PFS_FILTER_COMPLETION_CALLBACK,
3012 }
3013 #[repr(C)]
3014 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3015 #[derive(Clone, Copy)]
3016 pub struct FS_FILTER_CALLBACK_DATA {
3017 pub SizeOfFsFilterCallbackData: u32,
3018 pub Operation: u8,
3019 pub Reserved: u8,
3020 pub DeviceObject: *mut super::super::Foundation::DEVICE_OBJECT,
3021 pub FileObject: *mut super::super::Foundation::FILE_OBJECT,
3022 pub Parameters: FS_FILTER_PARAMETERS,
3023 }
3024 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3025 impl Default for FS_FILTER_CALLBACK_DATA {
3026 fn default() -> Self {
3027 unsafe { core::mem::zeroed() }
3028 }
3029 }
3030 #[repr(C)]
3031 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3032 #[derive(Clone, Copy)]
3033 pub union FS_FILTER_PARAMETERS {
3034 pub AcquireForModifiedPageWriter: FS_FILTER_PARAMETERS_0,
3035 pub ReleaseForModifiedPageWriter: FS_FILTER_PARAMETERS_1,
3036 pub AcquireForSectionSynchronization: FS_FILTER_PARAMETERS_2,
3037 pub QueryOpen: FS_FILTER_PARAMETERS_3,
3038 pub Others: FS_FILTER_PARAMETERS_4,
3039 }
3040 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3041 impl Default for FS_FILTER_PARAMETERS {
3042 fn default() -> Self {
3043 unsafe { core::mem::zeroed() }
3044 }
3045 }
3046 #[repr(C)]
3047 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3048 #[derive(Clone, Copy)]
3049 pub struct FS_FILTER_PARAMETERS_0 {
3050 pub EndingOffset: *mut i64,
3051 pub ResourceToRelease: *mut *mut super::super::Foundation::ERESOURCE,
3052 }
3053 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3054 impl Default for FS_FILTER_PARAMETERS_0 {
3055 fn default() -> Self {
3056 unsafe { core::mem::zeroed() }
3057 }
3058 }
3059 #[repr(C)]
3060 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3061 #[derive(Clone, Copy)]
3062 pub struct FS_FILTER_PARAMETERS_2 {
3063 pub SyncType: FS_FILTER_SECTION_SYNC_TYPE,
3064 pub PageProtection: u32,
3065 pub OutputInformation: *mut FS_FILTER_SECTION_SYNC_OUTPUT,
3066 pub Flags: u32,
3067 pub AllocationAttributes: u32,
3068 }
3069 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3070 impl Default for FS_FILTER_PARAMETERS_2 {
3071 fn default() -> Self {
3072 unsafe { core::mem::zeroed() }
3073 }
3074 }
3075 #[repr(C)]
3076 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3077 #[derive(Clone, Copy)]
3078 pub struct FS_FILTER_PARAMETERS_4 {
3079 pub Argument1: *mut core::ffi::c_void,
3080 pub Argument2: *mut core::ffi::c_void,
3081 pub Argument3: *mut core::ffi::c_void,
3082 pub Argument4: *mut core::ffi::c_void,
3083 pub Argument5: *mut core::ffi::c_void,
3084 }
3085 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3086 impl Default for FS_FILTER_PARAMETERS_4 {
3087 fn default() -> Self {
3088 unsafe { core::mem::zeroed() }
3089 }
3090 }
3091 #[repr(C)]
3092 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3093 #[derive(Clone, Copy)]
3094 pub struct FS_FILTER_PARAMETERS_3 {
3095 pub Irp: *mut super::super::Foundation::IRP,
3096 pub FileInformation: *mut core::ffi::c_void,
3097 pub Length: *mut u32,
3098 pub FileInformationClass: FILE_INFORMATION_CLASS,
3099 pub CompletionStatus: super::super::super::Win32::Foundation::NTSTATUS,
3100 }
3101 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3102 impl Default for FS_FILTER_PARAMETERS_3 {
3103 fn default() -> Self {
3104 unsafe { core::mem::zeroed() }
3105 }
3106 }
3107 #[repr(C)]
3108 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3109 #[derive(Clone, Copy)]
3110 pub struct FS_FILTER_PARAMETERS_1 {
3111 pub ResourceToRelease: *mut super::super::Foundation::ERESOURCE,
3112 }
3113 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3114 impl Default for FS_FILTER_PARAMETERS_1 {
3115 fn default() -> Self {
3116 unsafe { core::mem::zeroed() }
3117 }
3118 }
3119 pub const FS_FILTER_QUERY_OPEN: u16 = 65529u16;
3120 pub const FS_FILTER_RELEASE_FOR_CC_FLUSH: u16 = 65530u16;
3121 pub const FS_FILTER_RELEASE_FOR_MOD_WRITE: u16 = 65532u16;
3122 pub const FS_FILTER_RELEASE_FOR_SECTION_SYNCHRONIZATION: u16 = 65534u16;
3123 pub const FS_FILTER_SECTION_SYNC_IMAGE_EXTENTS_ARE_NOT_RVA: u32 = 8u32;
3124 pub const FS_FILTER_SECTION_SYNC_IN_FLAG_DONT_UPDATE_LAST_ACCESS: u32 = 1u32;
3125 pub const FS_FILTER_SECTION_SYNC_IN_FLAG_DONT_UPDATE_LAST_WRITE: u32 = 2u32;
3126 #[repr(C)]
3127 #[derive(Clone, Copy, Default)]
3128 pub struct FS_FILTER_SECTION_SYNC_OUTPUT {
3129 pub StructureSize: u32,
3130 pub SizeReturned: u32,
3131 pub Flags: u32,
3132 pub DesiredReadAlignment: u32,
3133 }
3134 pub const FS_FILTER_SECTION_SYNC_SUPPORTS_ASYNC_PARALLEL_IO: u32 = 1u32;
3135 pub const FS_FILTER_SECTION_SYNC_SUPPORTS_DIRECT_MAP_DATA: u32 = 2u32;
3136 pub const FS_FILTER_SECTION_SYNC_SUPPORTS_DIRECT_MAP_IMAGE: u32 = 4u32;
3137 pub type FS_FILTER_SECTION_SYNC_TYPE = i32;
3138 pub type FS_FILTER_STREAM_FO_NOTIFICATION_TYPE = i32;
3139 pub type FS_INFORMATION_CLASS = i32;
3140 pub const FastIoIsNotPossible: FAST_IO_POSSIBLE = 0i32;
3141 pub const FastIoIsPossible: FAST_IO_POSSIBLE = 1i32;
3142 pub const FastIoIsQuestionable: FAST_IO_POSSIBLE = 2i32;
3143 pub const FileAccessInformation: FILE_INFORMATION_CLASS = 8i32;
3144 pub const FileAlignmentInformation: FILE_INFORMATION_CLASS = 17i32;
3145 pub const FileAllInformation: FILE_INFORMATION_CLASS = 18i32;
3146 pub const FileAllocationInformation: FILE_INFORMATION_CLASS = 19i32;
3147 pub const FileAlternateNameInformation: FILE_INFORMATION_CLASS = 21i32;
3148 pub const FileAttributeTagInformation: FILE_INFORMATION_CLASS = 35i32;
3149 pub const FileBasicInformation: FILE_INFORMATION_CLASS = 4i32;
3150 pub const FileBothDirectoryInformation: FILE_INFORMATION_CLASS = 3i32;
3151 pub const FileCaseSensitiveInformation: FILE_INFORMATION_CLASS = 71i32;
3152 pub const FileCaseSensitiveInformationForceAccessCheck: FILE_INFORMATION_CLASS = 75i32;
3153 pub const FileCompletionInformation: FILE_INFORMATION_CLASS = 30i32;
3154 pub const FileCompressionInformation: FILE_INFORMATION_CLASS = 28i32;
3155 pub const FileDesiredStorageClassInformation: FILE_INFORMATION_CLASS = 67i32;
3156 pub const FileDirectoryInformation: FILE_INFORMATION_CLASS = 1i32;
3157 pub const FileDispositionInformation: FILE_INFORMATION_CLASS = 13i32;
3158 pub const FileDispositionInformationEx: FILE_INFORMATION_CLASS = 64i32;
3159 pub const FileEaInformation: FILE_INFORMATION_CLASS = 7i32;
3160 pub const FileEndOfFileInformation: FILE_INFORMATION_CLASS = 20i32;
3161 pub const FileFsAttributeInformation: FS_INFORMATION_CLASS = 5i32;
3162 pub const FileFsControlInformation: FS_INFORMATION_CLASS = 6i32;
3163 pub const FileFsDataCopyInformation: FS_INFORMATION_CLASS = 12i32;
3164 pub const FileFsDeviceInformation: FS_INFORMATION_CLASS = 4i32;
3165 pub const FileFsDriverPathInformation: FS_INFORMATION_CLASS = 9i32;
3166 pub const FileFsFullSizeInformation: FS_INFORMATION_CLASS = 7i32;
3167 pub const FileFsFullSizeInformationEx: FS_INFORMATION_CLASS = 14i32;
3168 pub const FileFsLabelInformation: FS_INFORMATION_CLASS = 2i32;
3169 pub const FileFsMaximumInformation: FS_INFORMATION_CLASS = 15i32;
3170 pub const FileFsMetadataSizeInformation: FS_INFORMATION_CLASS = 13i32;
3171 pub const FileFsObjectIdInformation: FS_INFORMATION_CLASS = 8i32;
3172 pub const FileFsSectorSizeInformation: FS_INFORMATION_CLASS = 11i32;
3173 pub const FileFsSizeInformation: FS_INFORMATION_CLASS = 3i32;
3174 pub const FileFsVolumeFlagsInformation: FS_INFORMATION_CLASS = 10i32;
3175 pub const FileFsVolumeInformation: FS_INFORMATION_CLASS = 1i32;
3176 pub const FileFullDirectoryInformation: FILE_INFORMATION_CLASS = 2i32;
3177 pub const FileFullEaInformation: FILE_INFORMATION_CLASS = 15i32;
3178 pub const FileHardLinkFullIdInformation: FILE_INFORMATION_CLASS = 62i32;
3179 pub const FileHardLinkInformation: FILE_INFORMATION_CLASS = 46i32;
3180 pub const FileIdBothDirectoryInformation: FILE_INFORMATION_CLASS = 37i32;
3181 pub const FileIdExtdBothDirectoryInformation: FILE_INFORMATION_CLASS = 63i32;
3182 pub const FileIdExtdDirectoryInformation: FILE_INFORMATION_CLASS = 60i32;
3183 pub const FileIdFullDirectoryInformation: FILE_INFORMATION_CLASS = 38i32;
3184 pub const FileIdGlobalTxDirectoryInformation: FILE_INFORMATION_CLASS = 50i32;
3185 pub const FileIdInformation: FILE_INFORMATION_CLASS = 59i32;
3186 pub const FileInternalInformation: FILE_INFORMATION_CLASS = 6i32;
3187 pub const FileIoCompletionNotificationInformation: FILE_INFORMATION_CLASS = 41i32;
3188 pub const FileIoPriorityHintInformation: FILE_INFORMATION_CLASS = 43i32;
3189 pub const FileIoStatusBlockRangeInformation: FILE_INFORMATION_CLASS = 42i32;
3190 pub const FileIsRemoteDeviceInformation: FILE_INFORMATION_CLASS = 51i32;
3191 pub const FileKnownFolderInformation: FILE_INFORMATION_CLASS = 76i32;
3192 pub const FileLinkInformation: FILE_INFORMATION_CLASS = 11i32;
3193 pub const FileLinkInformationBypassAccessCheck: FILE_INFORMATION_CLASS = 57i32;
3194 pub const FileLinkInformationEx: FILE_INFORMATION_CLASS = 72i32;
3195 pub const FileLinkInformationExBypassAccessCheck: FILE_INFORMATION_CLASS = 73i32;
3196 pub const FileMailslotQueryInformation: FILE_INFORMATION_CLASS = 26i32;
3197 pub const FileMailslotSetInformation: FILE_INFORMATION_CLASS = 27i32;
3198 pub const FileMaximumInformation: FILE_INFORMATION_CLASS = 77i32;
3199 pub const FileMemoryPartitionInformation: FILE_INFORMATION_CLASS = 69i32;
3200 pub const FileModeInformation: FILE_INFORMATION_CLASS = 16i32;
3201 pub const FileMoveClusterInformation: FILE_INFORMATION_CLASS = 31i32;
3202 pub const FileNameInformation: FILE_INFORMATION_CLASS = 9i32;
3203 pub const FileNamesInformation: FILE_INFORMATION_CLASS = 12i32;
3204 pub const FileNetworkOpenInformation: FILE_INFORMATION_CLASS = 34i32;
3205 pub const FileNetworkPhysicalNameInformation: FILE_INFORMATION_CLASS = 49i32;
3206 pub const FileNormalizedNameInformation: FILE_INFORMATION_CLASS = 48i32;
3207 pub const FileNumaNodeInformation: FILE_INFORMATION_CLASS = 53i32;
3208 pub const FileObjectIdInformation: FILE_INFORMATION_CLASS = 29i32;
3209 pub const FilePipeInformation: FILE_INFORMATION_CLASS = 23i32;
3210 pub const FilePipeLocalInformation: FILE_INFORMATION_CLASS = 24i32;
3211 pub const FilePipeRemoteInformation: FILE_INFORMATION_CLASS = 25i32;
3212 pub const FilePositionInformation: FILE_INFORMATION_CLASS = 14i32;
3213 pub const FileProcessIdsUsingFileInformation: FILE_INFORMATION_CLASS = 47i32;
3214 pub const FileQuotaInformation: FILE_INFORMATION_CLASS = 32i32;
3215 pub const FileRemoteProtocolInformation: FILE_INFORMATION_CLASS = 55i32;
3216 pub const FileRenameInformation: FILE_INFORMATION_CLASS = 10i32;
3217 pub const FileRenameInformationBypassAccessCheck: FILE_INFORMATION_CLASS = 56i32;
3218 pub const FileRenameInformationEx: FILE_INFORMATION_CLASS = 65i32;
3219 pub const FileRenameInformationExBypassAccessCheck: FILE_INFORMATION_CLASS = 66i32;
3220 pub const FileReparsePointInformation: FILE_INFORMATION_CLASS = 33i32;
3221 pub const FileReplaceCompletionInformation: FILE_INFORMATION_CLASS = 61i32;
3222 pub const FileSfioReserveInformation: FILE_INFORMATION_CLASS = 44i32;
3223 pub const FileSfioVolumeInformation: FILE_INFORMATION_CLASS = 45i32;
3224 pub const FileShortNameInformation: FILE_INFORMATION_CLASS = 40i32;
3225 pub const FileStandardInformation: FILE_INFORMATION_CLASS = 5i32;
3226 pub const FileStandardLinkInformation: FILE_INFORMATION_CLASS = 54i32;
3227 pub const FileStatInformation: FILE_INFORMATION_CLASS = 68i32;
3228 pub const FileStatLxInformation: FILE_INFORMATION_CLASS = 70i32;
3229 pub const FileStorageReserveIdInformation: FILE_INFORMATION_CLASS = 74i32;
3230 pub const FileStreamInformation: FILE_INFORMATION_CLASS = 22i32;
3231 pub const FileTrackingInformation: FILE_INFORMATION_CLASS = 36i32;
3232 pub const FileUnusedInformation: FILE_INFORMATION_CLASS = 52i32;
3233 pub const FileValidDataLengthInformation: FILE_INFORMATION_CLASS = 39i32;
3234 pub const FileVolumeNameInformation: FILE_INFORMATION_CLASS = 58i32;
3235 pub const GCR_ALLOW_LM: u32 = 4096u32;
3236 pub const GCR_ALLOW_NO_TARGET: u32 = 8192u32;
3237 pub const GCR_ALLOW_NTLM: u32 = 256u32;
3238 pub const GCR_MACHINE_CREDENTIAL: u32 = 1024u32;
3239 pub const GCR_NTLM3_PARMS: u32 = 32u32;
3240 pub const GCR_TARGET_INFO: u32 = 64u32;
3241 pub const GCR_USE_OEM_SET: u32 = 512u32;
3242 pub const GCR_USE_OWF_PASSWORD: u32 = 2048u32;
3243 pub const GCR_VSM_PROTECTED_PASSWORD: u32 = 16384u32;
3244 pub const GENERATE_CLIENT_CHALLENGE: u32 = 16u32;
3245 #[repr(C)]
3246 #[derive(Clone, Copy)]
3247 pub struct GENERATE_NAME_CONTEXT {
3248 pub Checksum: u16,
3249 pub ChecksumInserted: bool,
3250 pub NameLength: u8,
3251 pub NameBuffer: [u16; 8],
3252 pub ExtensionLength: u32,
3253 pub ExtensionBuffer: [u16; 4],
3254 pub LastIndexValue: u32,
3255 }
3256 impl Default for GENERATE_NAME_CONTEXT {
3257 fn default() -> Self {
3258 unsafe { core::mem::zeroed() }
3259 }
3260 }
3261 #[repr(C)]
3262 #[derive(Clone, Copy)]
3263 pub struct GHOSTED_FILE_EXTENT {
3264 pub FileOffset: i64,
3265 pub ByteCount: i64,
3266 pub RecallOwnerGuid: windows_sys::core::GUID,
3267 pub NextEntryOffset: u32,
3268 pub RecallMetadataBufferSize: u32,
3269 pub RecallMetadataBuffer: [u8; 1],
3270 }
3271 impl Default for GHOSTED_FILE_EXTENT {
3272 fn default() -> Self {
3273 unsafe { core::mem::zeroed() }
3274 }
3275 }
3276 pub const GUID_ECP_ATOMIC_CREATE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4720bd83_52ac_4104_a130_d1ec6a8cc8e5);
3277 pub const GUID_ECP_CLOUDFILES_ATTRIBUTION: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x2932ff52_8378_4fc1_8edb_6bdc8f602709);
3278 pub const GUID_ECP_CREATE_REDIRECTION: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x188d6bd6_a126_4fa8_bdf2_1ccdf896f3e0);
3279 pub const GUID_ECP_CSV_DOWN_LEVEL_OPEN: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4248be44_647f_488f_8be5_a08aaf70f028);
3280 pub const GUID_ECP_CSV_QUERY_FILE_REVISION: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x44aec90b_de65_4d46_8fbf_763f9d970b1d);
3281 pub const GUID_ECP_CSV_QUERY_FILE_REVISION_FILE_ID_128: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x7a3a4aa1_aa74_4bc6_b070_ab56a38c1fed);
3282 pub const GUID_ECP_CSV_SET_HANDLE_PROPERTIES: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x7a9fdd94_7b58_42bb_9740_3cb86983a615);
3283 pub const GUID_ECP_DUAL_OPLOCK_KEY: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x41621a14_b08b_4df1_b676_a05ffdf01bea);
3284 pub const GUID_ECP_IO_DEVICE_HINT: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xf315b732_ac6b_4d4d_be0c_b3126490e1a3);
3285 pub const GUID_ECP_NETWORK_APP_INSTANCE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x6aa6bc45_a7ef_4af7_9008_fa462e144d74);
3286 pub const GUID_ECP_NETWORK_APP_INSTANCE_VERSION: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xb7d082b9_563b_4f07_a07b_524a8116a010);
3287 pub const GUID_ECP_NETWORK_OPEN_CONTEXT: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xc584edbf_00df_4d28_b884_35baca8911e8);
3288 pub const GUID_ECP_NFS_OPEN: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xf326d30c_e5f8_4fe7_ab74_f5a3196d92db);
3289 pub const GUID_ECP_OPEN_PARAMETERS: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xcd0a93c3_3bb7_463d_accb_969d3435a5a5);
3290 pub const GUID_ECP_OPLOCK_KEY: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x48850596_3050_4be7_9863_fec350ce8d7f);
3291 pub const GUID_ECP_PREFETCH_OPEN: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe1777b21_847e_4837_aa45_64161d280655);
3292 pub const GUID_ECP_QUERY_ON_CREATE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x1aca62e9_abb4_4ff2_bb5c_1c79025e417f);
3293 pub const GUID_ECP_RKF_BYPASS: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x02378cc6_f73c_489c_8282_564d1a99131b);
3294 pub const GUID_ECP_SRV_OPEN: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xbebfaebc_aabf_489d_9d2c_e9e361102853);
3295 pub const GreaterThan: FSRTL_COMPARISON_RESULT = 1i32;
3296 pub const HEAP_CLASS_0: u32 = 0u32;
3297 pub const HEAP_CLASS_1: u32 = 4096u32;
3298 pub const HEAP_CLASS_2: u32 = 8192u32;
3299 pub const HEAP_CLASS_3: u32 = 12288u32;
3300 pub const HEAP_CLASS_4: u32 = 16384u32;
3301 pub const HEAP_CLASS_5: u32 = 20480u32;
3302 pub const HEAP_CLASS_6: u32 = 24576u32;
3303 pub const HEAP_CLASS_7: u32 = 28672u32;
3304 pub const HEAP_CLASS_8: u32 = 32768u32;
3305 pub const HEAP_CLASS_MASK: u32 = 61440u32;
3306 pub const HEAP_CREATE_ALIGN_16: u32 = 65536u32;
3307 pub const HEAP_CREATE_ENABLE_EXECUTE: u32 = 262144u32;
3308 pub const HEAP_CREATE_ENABLE_TRACING: u32 = 131072u32;
3309 pub const HEAP_CREATE_HARDENED: u32 = 512u32;
3310 pub const HEAP_CREATE_SEGMENT_HEAP: u32 = 256u32;
3311 pub const HEAP_DISABLE_COALESCE_ON_FREE: u32 = 128u32;
3312 pub const HEAP_FREE_CHECKING_ENABLED: u32 = 64u32;
3313 pub const HEAP_GENERATE_EXCEPTIONS: u32 = 4u32;
3314 pub const HEAP_GLOBAL_TAG: u32 = 2048u32;
3315 pub const HEAP_GROWABLE: u32 = 2u32;
3316 pub const HEAP_MAXIMUM_TAG: u32 = 4095u32;
3317 pub type HEAP_MEMORY_INFO_CLASS = i32;
3318 pub const HEAP_NO_SERIALIZE: u32 = 1u32;
3319 pub const HEAP_PSEUDO_TAG_FLAG: u32 = 32768u32;
3320 pub const HEAP_REALLOC_IN_PLACE_ONLY: u32 = 16u32;
3321 pub const HEAP_SETTABLE_USER_FLAG1: u32 = 512u32;
3322 pub const HEAP_SETTABLE_USER_FLAG2: u32 = 1024u32;
3323 pub const HEAP_SETTABLE_USER_FLAG3: u32 = 2048u32;
3324 pub const HEAP_SETTABLE_USER_FLAGS: u32 = 3584u32;
3325 pub const HEAP_SETTABLE_USER_VALUE: u32 = 256u32;
3326 pub const HEAP_TAG_SHIFT: u32 = 18u32;
3327 pub const HEAP_TAIL_CHECKING_ENABLED: u32 = 32u32;
3328 pub const HEAP_ZERO_MEMORY: u32 = 8u32;
3329 pub const HeapMemoryBasicInformation: HEAP_MEMORY_INFO_CLASS = 0i32;
3330 pub const INVALID_PROCESSOR_INDEX: u32 = 4294967295u32;
3331 pub const IOCTL_LMR_ARE_FILE_OBJECTS_ON_SAME_SERVER: u32 = 1310960u32;
3332 pub const IOCTL_REDIR_QUERY_PATH: u32 = 1311119u32;
3333 pub const IOCTL_REDIR_QUERY_PATH_EX: u32 = 1311123u32;
3334 pub const IOCTL_VOLSNAP_FLUSH_AND_HOLD_WRITES: u32 = 5488640u32;
3335 pub const IO_CD_ROM_INCREMENT: u32 = 1u32;
3336 pub const IO_CREATE_STREAM_FILE_LITE: u32 = 2u32;
3337 #[repr(C)]
3338 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3339 #[derive(Clone, Copy)]
3340 pub struct IO_CREATE_STREAM_FILE_OPTIONS {
3341 pub Size: u16,
3342 pub Flags: u16,
3343 pub TargetDeviceObject: *mut super::super::Foundation::DEVICE_OBJECT,
3344 }
3345 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3346 impl Default for IO_CREATE_STREAM_FILE_OPTIONS {
3347 fn default() -> Self {
3348 unsafe { core::mem::zeroed() }
3349 }
3350 }
3351 pub const IO_CREATE_STREAM_FILE_RAISE_ON_ERROR: u32 = 1u32;
3352 #[repr(C)]
3353 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3354 #[derive(Clone, Copy)]
3355 pub struct IO_DEVICE_HINT_ECP_CONTEXT {
3356 pub TargetDevice: *mut super::super::Foundation::DEVICE_OBJECT,
3357 pub RemainingName: super::super::super::Win32::Foundation::UNICODE_STRING,
3358 }
3359 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3360 impl Default for IO_DEVICE_HINT_ECP_CONTEXT {
3361 fn default() -> Self {
3362 unsafe { core::mem::zeroed() }
3363 }
3364 }
3365 pub const IO_DISK_INCREMENT: u32 = 1u32;
3366 pub const IO_FILE_OBJECT_NON_PAGED_POOL_CHARGE: u32 = 64u32;
3367 pub const IO_FILE_OBJECT_PAGED_POOL_CHARGE: u32 = 1024u32;
3368 pub const IO_IGNORE_READONLY_ATTRIBUTE: u32 = 64u32;
3369 pub const IO_MAILSLOT_INCREMENT: u32 = 2u32;
3370 pub const IO_MM_PAGING_FILE: u32 = 16u32;
3371 pub const IO_NAMED_PIPE_INCREMENT: u32 = 2u32;
3372 pub const IO_NETWORK_INCREMENT: u32 = 2u32;
3373 pub const IO_NO_INCREMENT: u32 = 0u32;
3374 pub const IO_OPEN_PAGING_FILE: u32 = 2u32;
3375 pub const IO_OPEN_TARGET_DIRECTORY: u32 = 4u32;
3376 #[repr(C)]
3377 #[cfg(feature = "Wdk_Foundation")]
3378 #[derive(Clone, Copy, Default)]
3379 pub struct IO_PRIORITY_INFO {
3380 pub Size: u32,
3381 pub ThreadPriority: u32,
3382 pub PagePriority: u32,
3383 pub IoPriority: super::super::Foundation::IO_PRIORITY_HINT,
3384 }
3385 pub const IO_REPARSE_TAG_ACRONIS_HSM_0: i32 = 96i32;
3386 pub const IO_REPARSE_TAG_ACRONIS_HSM_1: i32 = 97i32;
3387 pub const IO_REPARSE_TAG_ACRONIS_HSM_2: i32 = 98i32;
3388 pub const IO_REPARSE_TAG_ACRONIS_HSM_3: i32 = 99i32;
3389 pub const IO_REPARSE_TAG_ACRONIS_HSM_4: i32 = 100i32;
3390 pub const IO_REPARSE_TAG_ACRONIS_HSM_5: i32 = 101i32;
3391 pub const IO_REPARSE_TAG_ACRONIS_HSM_6: i32 = 102i32;
3392 pub const IO_REPARSE_TAG_ACRONIS_HSM_7: i32 = 103i32;
3393 pub const IO_REPARSE_TAG_ACRONIS_HSM_8: i32 = 104i32;
3394 pub const IO_REPARSE_TAG_ACRONIS_HSM_9: i32 = 105i32;
3395 pub const IO_REPARSE_TAG_ACRONIS_HSM_A: i32 = 106i32;
3396 pub const IO_REPARSE_TAG_ACRONIS_HSM_B: i32 = 107i32;
3397 pub const IO_REPARSE_TAG_ACRONIS_HSM_C: i32 = 108i32;
3398 pub const IO_REPARSE_TAG_ACRONIS_HSM_D: i32 = 109i32;
3399 pub const IO_REPARSE_TAG_ACRONIS_HSM_E: i32 = 110i32;
3400 pub const IO_REPARSE_TAG_ACRONIS_HSM_F: i32 = 111i32;
3401 pub const IO_REPARSE_TAG_ACTIVISION_HSM: i32 = 71i32;
3402 pub const IO_REPARSE_TAG_ADA_HSM: i32 = 38i32;
3403 pub const IO_REPARSE_TAG_ADOBE_HSM: i32 = 69i32;
3404 pub const IO_REPARSE_TAG_ALERTBOOT: i32 = 536870988i32;
3405 pub const IO_REPARSE_TAG_ALTIRIS_HSM: i32 = 25i32;
3406 pub const IO_REPARSE_TAG_APPXSTRM: i32 = -1073741804i32;
3407 pub const IO_REPARSE_TAG_ARCO_BACKUP: i32 = 59i32;
3408 pub const IO_REPARSE_TAG_ARKIVIO: i32 = 12i32;
3409 pub const IO_REPARSE_TAG_AURISTOR_FS: i32 = 73i32;
3410 pub const IO_REPARSE_TAG_AUTN_HSM: i32 = 39i32;
3411 pub const IO_REPARSE_TAG_BRIDGEHEAD_HSM: i32 = 22i32;
3412 pub const IO_REPARSE_TAG_C2CSYSTEMS_HSM: i32 = 49i32;
3413 pub const IO_REPARSE_TAG_CARINGO_HSM: i32 = 52i32;
3414 pub const IO_REPARSE_TAG_CARROLL_HSM: i32 = 60i32;
3415 pub const IO_REPARSE_TAG_CITRIX_PM: i32 = 54i32;
3416 pub const IO_REPARSE_TAG_COMMVAULT: i32 = 14i32;
3417 pub const IO_REPARSE_TAG_COMMVAULT_HSM: i32 = 29i32;
3418 pub const IO_REPARSE_TAG_COMTRADE_HSM: i32 = 61i32;
3419 pub const IO_REPARSE_TAG_CTERA_HSM: i32 = 78i32;
3420 pub const IO_REPARSE_TAG_DATAFIRST_HSM: i32 = 48i32;
3421 pub const IO_REPARSE_TAG_DATAGLOBAL_HSM: i32 = 46i32;
3422 pub const IO_REPARSE_TAG_DATASTOR_SIS: i32 = 30i32;
3423 pub const IO_REPARSE_TAG_DFM: i32 = -2147483626i32;
3424 pub const IO_REPARSE_TAG_DOR_HSM: i32 = 82i32;
3425 pub const IO_REPARSE_TAG_DOUBLE_TAKE_HSM: i32 = 34i32;
3426 pub const IO_REPARSE_TAG_DOUBLE_TAKE_SIS: i32 = 41i32;
3427 pub const IO_REPARSE_TAG_DRIVE_EXTENDER: i32 = -2147483643i32;
3428 pub const IO_REPARSE_TAG_DROPBOX_HSM: i32 = 68i32;
3429 pub const IO_REPARSE_TAG_EASEFILTER_HSM: i32 = 87i32;
3430 pub const IO_REPARSE_TAG_EASEVAULT_HSM: i32 = 62i32;
3431 pub const IO_REPARSE_TAG_EDSI_HSM: i32 = 31i32;
3432 pub const IO_REPARSE_TAG_ELTAN_HSM: i32 = 43i32;
3433 pub const IO_REPARSE_TAG_EMC_HSM: i32 = 57i32;
3434 pub const IO_REPARSE_TAG_ENIGMA_HSM: i32 = 17i32;
3435 pub const IO_REPARSE_TAG_FILTER_MANAGER: i32 = -2147483637i32;
3436 pub const IO_REPARSE_TAG_GLOBAL360_HSM: i32 = 24i32;
3437 pub const IO_REPARSE_TAG_GOOGLE_HSM: i32 = 65i32;
3438 pub const IO_REPARSE_TAG_GRAU_DATASTORAGE_HSM: i32 = 28i32;
3439 pub const IO_REPARSE_TAG_HDS_HCP_HSM: i32 = 72i32;
3440 pub const IO_REPARSE_TAG_HDS_HSM: i32 = 63i32;
3441 pub const IO_REPARSE_TAG_HERMES_HSM: i32 = 26i32;
3442 pub const IO_REPARSE_TAG_HP_BACKUP: i32 = 67i32;
3443 pub const IO_REPARSE_TAG_HP_DATA_PROTECT: i32 = 70i32;
3444 pub const IO_REPARSE_TAG_HP_HSM: i32 = 32i32;
3445 pub const IO_REPARSE_TAG_HSAG_HSM: i32 = 37i32;
3446 pub const IO_REPARSE_TAG_HUBSTOR_HSM: i32 = 85i32;
3447 pub const IO_REPARSE_TAG_IFSTEST_CONGRUENT: i32 = 9i32;
3448 pub const IO_REPARSE_TAG_IIS_CACHE: i32 = -1610612720i32;
3449 pub const IO_REPARSE_TAG_IMANAGE_HSM: i32 = 536870998i32;
3450 pub const IO_REPARSE_TAG_INTERCOPE_HSM: i32 = 19i32;
3451 pub const IO_REPARSE_TAG_ITSTATION: i32 = 74i32;
3452 pub const IO_REPARSE_TAG_KOM_NETWORKS_HSM: i32 = 20i32;
3453 pub const IO_REPARSE_TAG_LX_BLK: i32 = -2147483610i32;
3454 pub const IO_REPARSE_TAG_LX_CHR: i32 = -2147483611i32;
3455 pub const IO_REPARSE_TAG_LX_FIFO: i32 = -2147483612i32;
3456 pub const IO_REPARSE_TAG_LX_SYMLINK: i32 = -1610612707i32;
3457 pub const IO_REPARSE_TAG_MAGINATICS_RDR: i32 = 64i32;
3458 pub const IO_REPARSE_TAG_MAXISCALE_HSM: i32 = 536870965i32;
3459 pub const IO_REPARSE_TAG_MEMORY_TECH_HSM: i32 = 21i32;
3460 pub const IO_REPARSE_TAG_MIMOSA_HSM: i32 = 36i32;
3461 pub const IO_REPARSE_TAG_MOONWALK_HSM: i32 = 10i32;
3462 pub const IO_REPARSE_TAG_MTALOS: i32 = 77i32;
3463 pub const IO_REPARSE_TAG_NEUSHIELD: i32 = 81i32;
3464 pub const IO_REPARSE_TAG_NEXSAN_HSM: i32 = 40i32;
3465 pub const IO_REPARSE_TAG_NIPPON_HSM: i32 = 79i32;
3466 pub const IO_REPARSE_TAG_NVIDIA_UNIONFS: i32 = 536870996i32;
3467 pub const IO_REPARSE_TAG_OPENAFS_DFS: i32 = 55i32;
3468 pub const IO_REPARSE_TAG_OSR_SAMPLE: i32 = 536870935i32;
3469 pub const IO_REPARSE_TAG_OVERTONE: i32 = 15i32;
3470 pub const IO_REPARSE_TAG_POINTSOFT_HSM: i32 = 27i32;
3471 pub const IO_REPARSE_TAG_QI_TECH_HSM: i32 = 536870959i32;
3472 pub const IO_REPARSE_TAG_QUADDRA_HSM: i32 = 66i32;
3473 pub const IO_REPARSE_TAG_QUEST_HSM: i32 = 45i32;
3474 pub const IO_REPARSE_TAG_REDSTOR_HSM: i32 = 80i32;
3475 pub const IO_REPARSE_TAG_RIVERBED_HSM: i32 = 51i32;
3476 pub const IO_REPARSE_TAG_SER_HSM: i32 = 33i32;
3477 pub const IO_REPARSE_TAG_SHX_BACKUP: i32 = 83i32;
3478 pub const IO_REPARSE_TAG_SOLUTIONSOFT: i32 = 536870925i32;
3479 pub const IO_REPARSE_TAG_SONY_HSM: i32 = 42i32;
3480 pub const IO_REPARSE_TAG_SPHARSOFT: i32 = 75i32;
3481 pub const IO_REPARSE_TAG_SYMANTEC_HSM: i32 = 18i32;
3482 pub const IO_REPARSE_TAG_SYMANTEC_HSM2: i32 = 16i32;
3483 pub const IO_REPARSE_TAG_TSINGHUA_UNIVERSITY_RESEARCH: i32 = 11i32;
3484 pub const IO_REPARSE_TAG_UTIXO_HSM: i32 = 44i32;
3485 pub const IO_REPARSE_TAG_VALID_VALUES: u32 = 4026597375u32;
3486 pub const IO_REPARSE_TAG_VMWARE_PM: i32 = 58i32;
3487 pub const IO_REPARSE_TAG_WATERFORD: i32 = 50i32;
3488 pub const IO_REPARSE_TAG_WISDATA_HSM: i32 = 35i32;
3489 pub const IO_REPARSE_TAG_ZLTI_HSM: i32 = 56i32;
3490 pub const IO_STOP_ON_SYMLINK: u32 = 8u32;
3491 #[repr(C)]
3492 #[derive(Clone, Copy, Default)]
3493 pub struct IO_STOP_ON_SYMLINK_FILTER_ECP_v0 {
3494 pub Out: IO_STOP_ON_SYMLINK_FILTER_ECP_v0_0,
3495 }
3496 #[repr(C)]
3497 #[derive(Clone, Copy, Default)]
3498 pub struct IO_STOP_ON_SYMLINK_FILTER_ECP_v0_0 {
3499 pub ReparseCount: u32,
3500 pub RemainingPathLength: u32,
3501 }
3502 #[repr(C)]
3503 #[cfg(feature = "Win32_System_Kernel")]
3504 #[derive(Clone, Copy)]
3505 pub struct KAPC_STATE {
3506 pub ApcListHead: [super::super::super::Win32::System::Kernel::LIST_ENTRY; 2],
3507 pub Process: *mut isize,
3508 pub Anonymous1: KAPC_STATE_0,
3509 pub KernelApcPending: bool,
3510 pub Anonymous2: KAPC_STATE_1,
3511 }
3512 #[cfg(feature = "Win32_System_Kernel")]
3513 impl Default for KAPC_STATE {
3514 fn default() -> Self {
3515 unsafe { core::mem::zeroed() }
3516 }
3517 }
3518 #[repr(C)]
3519 #[cfg(feature = "Win32_System_Kernel")]
3520 #[derive(Clone, Copy)]
3521 pub union KAPC_STATE_0 {
3522 pub InProgressFlags: u8,
3523 pub Anonymous: KAPC_STATE_0_0,
3524 }
3525 #[cfg(feature = "Win32_System_Kernel")]
3526 impl Default for KAPC_STATE_0 {
3527 fn default() -> Self {
3528 unsafe { core::mem::zeroed() }
3529 }
3530 }
3531 #[repr(C)]
3532 #[cfg(feature = "Win32_System_Kernel")]
3533 #[derive(Clone, Copy, Default)]
3534 pub struct KAPC_STATE_0_0 {
3535 pub _bitfield: u8,
3536 }
3537 #[repr(C)]
3538 #[cfg(feature = "Win32_System_Kernel")]
3539 #[derive(Clone, Copy)]
3540 pub union KAPC_STATE_1 {
3541 pub UserApcPendingAll: bool,
3542 pub Anonymous: KAPC_STATE_1_0,
3543 }
3544 #[cfg(feature = "Win32_System_Kernel")]
3545 impl Default for KAPC_STATE_1 {
3546 fn default() -> Self {
3547 unsafe { core::mem::zeroed() }
3548 }
3549 }
3550 #[repr(C)]
3551 #[cfg(feature = "Win32_System_Kernel")]
3552 #[derive(Clone, Copy, Default)]
3553 pub struct KAPC_STATE_1_0 {
3554 pub _bitfield: u8,
3555 }
3556 pub const KnownFolderDesktop: FILE_KNOWN_FOLDER_TYPE = 1i32;
3557 pub const KnownFolderDocuments: FILE_KNOWN_FOLDER_TYPE = 2i32;
3558 pub const KnownFolderDownloads: FILE_KNOWN_FOLDER_TYPE = 3i32;
3559 pub const KnownFolderMax: FILE_KNOWN_FOLDER_TYPE = 7i32;
3560 pub const KnownFolderMusic: FILE_KNOWN_FOLDER_TYPE = 4i32;
3561 pub const KnownFolderNone: FILE_KNOWN_FOLDER_TYPE = 0i32;
3562 pub const KnownFolderOther: FILE_KNOWN_FOLDER_TYPE = 7i32;
3563 pub const KnownFolderPictures: FILE_KNOWN_FOLDER_TYPE = 5i32;
3564 pub const KnownFolderVideos: FILE_KNOWN_FOLDER_TYPE = 6i32;
3565 #[repr(C)]
3566 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
3567 #[derive(Clone, Copy)]
3568 pub struct LARGE_MCB {
3569 pub GuardedMutex: *mut super::super::Foundation::FAST_MUTEX,
3570 pub BaseMcb: BASE_MCB,
3571 }
3572 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
3573 impl Default for LARGE_MCB {
3574 fn default() -> Self {
3575 unsafe { core::mem::zeroed() }
3576 }
3577 }
3578 pub const LCN_CHECKSUM_VALID: _LCN_WEAK_REFERENCE_STATE = 2i32;
3579 #[repr(C)]
3580 #[derive(Clone, Copy, Default)]
3581 pub struct LCN_WEAK_REFERENCE_BUFFER {
3582 pub Lcn: i64,
3583 pub LengthInClusters: i64,
3584 pub ReferenceCount: u32,
3585 pub State: u16,
3586 }
3587 #[repr(C)]
3588 #[derive(Clone, Copy, Default)]
3589 pub struct LCN_WEAK_REFERENCE_CREATE_INPUT_BUFFER {
3590 pub Offset: i64,
3591 pub Length: i64,
3592 pub Flags: u32,
3593 pub Reserved: u32,
3594 }
3595 pub const LCN_WEAK_REFERENCE_VALID: _LCN_WEAK_REFERENCE_STATE = 1i32;
3596 #[repr(C)]
3597 #[derive(Clone, Copy)]
3598 pub struct LINK_TRACKING_INFORMATION {
3599 pub Type: LINK_TRACKING_INFORMATION_TYPE,
3600 pub VolumeId: [u8; 16],
3601 }
3602 impl Default for LINK_TRACKING_INFORMATION {
3603 fn default() -> Self {
3604 unsafe { core::mem::zeroed() }
3605 }
3606 }
3607 pub type LINK_TRACKING_INFORMATION_TYPE = i32;
3608 pub const LX_FILE_CASE_SENSITIVE_DIR: u32 = 16u32;
3609 pub const LX_FILE_METADATA_DEVICE_ID_EA_NAME: windows_sys::core::PCSTR = windows_sys::core::s!("$LXDEV");
3610 pub const LX_FILE_METADATA_GID_EA_NAME: windows_sys::core::PCSTR = windows_sys::core::s!("$LXGID");
3611 pub const LX_FILE_METADATA_HAS_DEVICE_ID: u32 = 8u32;
3612 pub const LX_FILE_METADATA_HAS_GID: u32 = 2u32;
3613 pub const LX_FILE_METADATA_HAS_MODE: u32 = 4u32;
3614 pub const LX_FILE_METADATA_HAS_UID: u32 = 1u32;
3615 pub const LX_FILE_METADATA_MODE_EA_NAME: windows_sys::core::PCSTR = windows_sys::core::s!("$LXMOD");
3616 pub const LX_FILE_METADATA_UID_EA_NAME: windows_sys::core::PCSTR = windows_sys::core::s!("$LXUID");
3617 pub const LessThan: FSRTL_COMPARISON_RESULT = -1i32;
3618 pub const MAP_DISABLE_PAGEFAULT_CLUSTERING: u32 = 256u32;
3619 pub const MAP_HIGH_PRIORITY: u32 = 64u32;
3620 pub const MAP_NO_READ: u32 = 16u32;
3621 pub const MAP_WAIT: u32 = 1u32;
3622 pub const MAXIMUM_LEADBYTES: u32 = 12u32;
3623 pub const MAX_UNICODE_STACK_BUFFER_LENGTH: u32 = 256u32;
3624 #[repr(C)]
3625 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
3626 #[derive(Clone, Copy, Default)]
3627 pub struct MCB {
3628 pub DummyFieldThatSizesThisStructureCorrectly: LARGE_MCB,
3629 }
3630 pub const MCB_FLAG_RAISE_ON_ALLOCATION_FAILURE: u32 = 1u32;
3631 pub type MEMORY_INFORMATION_CLASS = i32;
3632 #[repr(C)]
3633 #[derive(Clone, Copy)]
3634 pub struct MEMORY_RANGE_ENTRY {
3635 pub VirtualAddress: *mut core::ffi::c_void,
3636 pub NumberOfBytes: usize,
3637 }
3638 impl Default for MEMORY_RANGE_ENTRY {
3639 fn default() -> Self {
3640 unsafe { core::mem::zeroed() }
3641 }
3642 }
3643 #[repr(C)]
3644 #[derive(Clone, Copy, Default)]
3645 pub struct MFT_ENUM_DATA {
3646 pub StartFileReferenceNumber: u64,
3647 pub LowUsn: i64,
3648 pub HighUsn: i64,
3649 pub MinMajorVersion: u16,
3650 pub MaxMajorVersion: u16,
3651 }
3652 pub type MMFLUSH_TYPE = i32;
3653 pub const MM_FORCE_CLOSED_DATA: u32 = 1u32;
3654 pub const MM_FORCE_CLOSED_IMAGE: u32 = 2u32;
3655 pub const MM_FORCE_CLOSED_LATER_OK: u32 = 4u32;
3656 pub const MM_IS_FILE_SECTION_ACTIVE_DATA: u32 = 2u32;
3657 pub const MM_IS_FILE_SECTION_ACTIVE_IMAGE: u32 = 1u32;
3658 pub const MM_IS_FILE_SECTION_ACTIVE_USER: u32 = 4u32;
3659 #[repr(C)]
3660 #[derive(Clone, Copy)]
3661 pub union MM_PREFETCH_FLAGS {
3662 pub Flags: MM_PREFETCH_FLAGS_0,
3663 pub AllFlags: u32,
3664 }
3665 impl Default for MM_PREFETCH_FLAGS {
3666 fn default() -> Self {
3667 unsafe { core::mem::zeroed() }
3668 }
3669 }
3670 #[repr(C)]
3671 #[derive(Clone, Copy, Default)]
3672 pub struct MM_PREFETCH_FLAGS_0 {
3673 pub _bitfield: u32,
3674 }
3675 pub type MSV1_0_AVID = i32;
3676 #[repr(C)]
3677 #[cfg(feature = "Win32_Security_Authentication_Identity")]
3678 #[derive(Clone, Copy, Default)]
3679 pub struct MSV1_0_ENUMUSERS_REQUEST {
3680 pub MessageType: super::super::super::Win32::Security::Authentication::Identity::MSV1_0_PROTOCOL_MESSAGE_TYPE,
3681 }
3682 #[repr(C)]
3683 #[cfg(feature = "Win32_Security_Authentication_Identity")]
3684 #[derive(Clone, Copy)]
3685 pub struct MSV1_0_ENUMUSERS_RESPONSE {
3686 pub MessageType: super::super::super::Win32::Security::Authentication::Identity::MSV1_0_PROTOCOL_MESSAGE_TYPE,
3687 pub NumberOfLoggedOnUsers: u32,
3688 pub LogonIds: *mut super::super::super::Win32::Foundation::LUID,
3689 pub EnumHandles: *mut u32,
3690 }
3691 #[cfg(feature = "Win32_Security_Authentication_Identity")]
3692 impl Default for MSV1_0_ENUMUSERS_RESPONSE {
3693 fn default() -> Self {
3694 unsafe { core::mem::zeroed() }
3695 }
3696 }
3697 #[repr(C)]
3698 #[cfg(feature = "Win32_Security_Authentication_Identity")]
3699 #[derive(Clone, Copy)]
3700 pub struct MSV1_0_GETCHALLENRESP_REQUEST {
3701 pub MessageType: super::super::super::Win32::Security::Authentication::Identity::MSV1_0_PROTOCOL_MESSAGE_TYPE,
3702 pub ParameterControl: u32,
3703 pub LogonId: super::super::super::Win32::Foundation::LUID,
3704 pub Password: super::super::super::Win32::Foundation::UNICODE_STRING,
3705 pub ChallengeToClient: [u8; 8],
3706 pub UserName: super::super::super::Win32::Foundation::UNICODE_STRING,
3707 pub LogonDomainName: super::super::super::Win32::Foundation::UNICODE_STRING,
3708 pub ServerName: super::super::super::Win32::Foundation::UNICODE_STRING,
3709 }
3710 #[cfg(feature = "Win32_Security_Authentication_Identity")]
3711 impl Default for MSV1_0_GETCHALLENRESP_REQUEST {
3712 fn default() -> Self {
3713 unsafe { core::mem::zeroed() }
3714 }
3715 }
3716 #[repr(C)]
3717 #[cfg(feature = "Win32_Security_Authentication_Identity")]
3718 #[derive(Clone, Copy)]
3719 pub struct MSV1_0_GETCHALLENRESP_REQUEST_V1 {
3720 pub MessageType: super::super::super::Win32::Security::Authentication::Identity::MSV1_0_PROTOCOL_MESSAGE_TYPE,
3721 pub ParameterControl: u32,
3722 pub LogonId: super::super::super::Win32::Foundation::LUID,
3723 pub Password: super::super::super::Win32::Foundation::UNICODE_STRING,
3724 pub ChallengeToClient: [u8; 8],
3725 }
3726 #[cfg(feature = "Win32_Security_Authentication_Identity")]
3727 impl Default for MSV1_0_GETCHALLENRESP_REQUEST_V1 {
3728 fn default() -> Self {
3729 unsafe { core::mem::zeroed() }
3730 }
3731 }
3732 #[repr(C)]
3733 #[cfg(all(feature = "Win32_Security_Authentication_Identity", feature = "Win32_System_Kernel"))]
3734 #[derive(Clone, Copy)]
3735 pub struct MSV1_0_GETCHALLENRESP_RESPONSE {
3736 pub MessageType: super::super::super::Win32::Security::Authentication::Identity::MSV1_0_PROTOCOL_MESSAGE_TYPE,
3737 pub CaseSensitiveChallengeResponse: super::super::super::Win32::System::Kernel::STRING,
3738 pub CaseInsensitiveChallengeResponse: super::super::super::Win32::System::Kernel::STRING,
3739 pub UserName: super::super::super::Win32::Foundation::UNICODE_STRING,
3740 pub LogonDomainName: super::super::super::Win32::Foundation::UNICODE_STRING,
3741 pub UserSessionKey: [u8; 16],
3742 pub LanmanSessionKey: [u8; 8],
3743 }
3744 #[cfg(all(feature = "Win32_Security_Authentication_Identity", feature = "Win32_System_Kernel"))]
3745 impl Default for MSV1_0_GETCHALLENRESP_RESPONSE {
3746 fn default() -> Self {
3747 unsafe { core::mem::zeroed() }
3748 }
3749 }
3750 #[repr(C)]
3751 #[cfg(feature = "Win32_Security_Authentication_Identity")]
3752 #[derive(Clone, Copy, Default)]
3753 pub struct MSV1_0_GETUSERINFO_REQUEST {
3754 pub MessageType: super::super::super::Win32::Security::Authentication::Identity::MSV1_0_PROTOCOL_MESSAGE_TYPE,
3755 pub LogonId: super::super::super::Win32::Foundation::LUID,
3756 }
3757 #[repr(C)]
3758 #[cfg(feature = "Win32_Security_Authentication_Identity")]
3759 #[derive(Clone, Copy)]
3760 pub struct MSV1_0_GETUSERINFO_RESPONSE {
3761 pub MessageType: super::super::super::Win32::Security::Authentication::Identity::MSV1_0_PROTOCOL_MESSAGE_TYPE,
3762 pub UserSid: super::super::super::Win32::Security::PSID,
3763 pub UserName: super::super::super::Win32::Foundation::UNICODE_STRING,
3764 pub LogonDomainName: super::super::super::Win32::Foundation::UNICODE_STRING,
3765 pub LogonServer: super::super::super::Win32::Foundation::UNICODE_STRING,
3766 pub LogonType: super::super::super::Win32::Security::Authentication::Identity::SECURITY_LOGON_TYPE,
3767 }
3768 #[cfg(feature = "Win32_Security_Authentication_Identity")]
3769 impl Default for MSV1_0_GETUSERINFO_RESPONSE {
3770 fn default() -> Self {
3771 unsafe { core::mem::zeroed() }
3772 }
3773 }
3774 #[repr(C)]
3775 #[cfg(feature = "Win32_Security_Authentication_Identity")]
3776 #[derive(Clone, Copy, Default)]
3777 pub struct MSV1_0_LM20_CHALLENGE_REQUEST {
3778 pub MessageType: super::super::super::Win32::Security::Authentication::Identity::MSV1_0_PROTOCOL_MESSAGE_TYPE,
3779 }
3780 #[repr(C)]
3781 #[cfg(feature = "Win32_Security_Authentication_Identity")]
3782 #[derive(Clone, Copy)]
3783 pub struct MSV1_0_LM20_CHALLENGE_RESPONSE {
3784 pub MessageType: super::super::super::Win32::Security::Authentication::Identity::MSV1_0_PROTOCOL_MESSAGE_TYPE,
3785 pub ChallengeToClient: [u8; 8],
3786 }
3787 #[cfg(feature = "Win32_Security_Authentication_Identity")]
3788 impl Default for MSV1_0_LM20_CHALLENGE_RESPONSE {
3789 fn default() -> Self {
3790 unsafe { core::mem::zeroed() }
3791 }
3792 }
3793 pub const MemoryBasicInformation: MEMORY_INFORMATION_CLASS = 0i32;
3794 pub const MemoryType64KPage: RTL_MEMORY_TYPE = 2i32;
3795 pub const MemoryTypeCustom: RTL_MEMORY_TYPE = 5i32;
3796 pub const MemoryTypeHugePage: RTL_MEMORY_TYPE = 4i32;
3797 pub const MemoryTypeLargePage: RTL_MEMORY_TYPE = 3i32;
3798 pub const MemoryTypeMax: RTL_MEMORY_TYPE = 6i32;
3799 pub const MemoryTypeNonPaged: RTL_MEMORY_TYPE = 1i32;
3800 pub const MemoryTypePaged: RTL_MEMORY_TYPE = 0i32;
3801 pub const MmFlushForDelete: MMFLUSH_TYPE = 0i32;
3802 pub const MmFlushForWrite: MMFLUSH_TYPE = 1i32;
3803 pub const MsvAvChannelBindings: MSV1_0_AVID = 10i32;
3804 pub const MsvAvDnsComputerName: MSV1_0_AVID = 3i32;
3805 pub const MsvAvDnsDomainName: MSV1_0_AVID = 4i32;
3806 pub const MsvAvDnsTreeName: MSV1_0_AVID = 5i32;
3807 pub const MsvAvEOL: MSV1_0_AVID = 0i32;
3808 pub const MsvAvFlags: MSV1_0_AVID = 6i32;
3809 pub const MsvAvNbComputerName: MSV1_0_AVID = 1i32;
3810 pub const MsvAvNbDomainName: MSV1_0_AVID = 2i32;
3811 pub const MsvAvRestrictions: MSV1_0_AVID = 8i32;
3812 pub const MsvAvTargetName: MSV1_0_AVID = 9i32;
3813 pub const MsvAvTimestamp: MSV1_0_AVID = 7i32;
3814 #[repr(C)]
3815 #[derive(Clone, Copy, Default)]
3816 pub struct NETWORK_APP_INSTANCE_ECP_CONTEXT {
3817 pub Size: u16,
3818 pub Reserved: u16,
3819 pub AppInstanceID: windows_sys::core::GUID,
3820 }
3821 #[repr(C)]
3822 #[derive(Clone, Copy, Default)]
3823 pub struct NETWORK_APP_INSTANCE_VERSION_ECP_CONTEXT {
3824 pub Size: u16,
3825 pub Reserved: u16,
3826 pub VersionHigh: u64,
3827 pub VersionLow: u64,
3828 }
3829 #[repr(C)]
3830 #[derive(Clone, Copy, Default)]
3831 pub struct NETWORK_OPEN_ECP_CONTEXT {
3832 pub Size: u16,
3833 pub Reserved: u16,
3834 pub Anonymous: NETWORK_OPEN_ECP_CONTEXT_0,
3835 }
3836 #[repr(C)]
3837 #[derive(Clone, Copy, Default)]
3838 pub struct NETWORK_OPEN_ECP_CONTEXT_0 {
3839 pub r#in: NETWORK_OPEN_ECP_CONTEXT_0_0,
3840 pub out: NETWORK_OPEN_ECP_CONTEXT_0_1,
3841 }
3842 #[repr(C)]
3843 #[derive(Clone, Copy, Default)]
3844 pub struct NETWORK_OPEN_ECP_CONTEXT_0_0 {
3845 pub Location: NETWORK_OPEN_LOCATION_QUALIFIER,
3846 pub Integrity: NETWORK_OPEN_INTEGRITY_QUALIFIER,
3847 pub Flags: u32,
3848 }
3849 #[repr(C)]
3850 #[derive(Clone, Copy, Default)]
3851 pub struct NETWORK_OPEN_ECP_CONTEXT_0_1 {
3852 pub Location: NETWORK_OPEN_LOCATION_QUALIFIER,
3853 pub Integrity: NETWORK_OPEN_INTEGRITY_QUALIFIER,
3854 pub Flags: u32,
3855 }
3856 #[repr(C)]
3857 #[derive(Clone, Copy, Default)]
3858 pub struct NETWORK_OPEN_ECP_CONTEXT_V0 {
3859 pub Size: u16,
3860 pub Reserved: u16,
3861 pub Anonymous: NETWORK_OPEN_ECP_CONTEXT_V0_0,
3862 }
3863 #[repr(C)]
3864 #[derive(Clone, Copy, Default)]
3865 pub struct NETWORK_OPEN_ECP_CONTEXT_V0_0 {
3866 pub r#in: NETWORK_OPEN_ECP_CONTEXT_V0_0_0,
3867 pub out: NETWORK_OPEN_ECP_CONTEXT_V0_0_1,
3868 }
3869 #[repr(C)]
3870 #[derive(Clone, Copy, Default)]
3871 pub struct NETWORK_OPEN_ECP_CONTEXT_V0_0_0 {
3872 pub Location: NETWORK_OPEN_LOCATION_QUALIFIER,
3873 pub Integrity: NETWORK_OPEN_INTEGRITY_QUALIFIER,
3874 }
3875 #[repr(C)]
3876 #[derive(Clone, Copy, Default)]
3877 pub struct NETWORK_OPEN_ECP_CONTEXT_V0_0_1 {
3878 pub Location: NETWORK_OPEN_LOCATION_QUALIFIER,
3879 pub Integrity: NETWORK_OPEN_INTEGRITY_QUALIFIER,
3880 }
3881 pub const NETWORK_OPEN_ECP_IN_FLAG_DISABLE_HANDLE_COLLAPSING: u32 = 1u32;
3882 pub const NETWORK_OPEN_ECP_IN_FLAG_DISABLE_HANDLE_DURABILITY: u32 = 2u32;
3883 pub const NETWORK_OPEN_ECP_IN_FLAG_DISABLE_OPLOCKS: u32 = 4u32;
3884 pub const NETWORK_OPEN_ECP_IN_FLAG_FORCE_BUFFERED_SYNCHRONOUS_IO_HACK: u32 = 2147483648u32;
3885 pub const NETWORK_OPEN_ECP_IN_FLAG_FORCE_MAX_EOF_HACK: u32 = 1073741824u32;
3886 pub const NETWORK_OPEN_ECP_IN_FLAG_REQ_MUTUAL_AUTH: u32 = 8u32;
3887 pub const NETWORK_OPEN_ECP_OUT_FLAG_RET_MUTUAL_AUTH: u32 = 8u32;
3888 pub type NETWORK_OPEN_INTEGRITY_QUALIFIER = i32;
3889 pub type NETWORK_OPEN_LOCATION_QUALIFIER = i32;
3890 #[repr(C)]
3891 #[cfg(feature = "Win32_Networking_WinSock")]
3892 #[derive(Clone, Copy)]
3893 pub struct NFS_OPEN_ECP_CONTEXT {
3894 pub ExportAlias: *mut super::super::super::Win32::Foundation::UNICODE_STRING,
3895 pub ClientSocketAddress: *mut super::super::super::Win32::Networking::WinSock::SOCKADDR_STORAGE,
3896 }
3897 #[cfg(feature = "Win32_Networking_WinSock")]
3898 impl Default for NFS_OPEN_ECP_CONTEXT {
3899 fn default() -> Self {
3900 unsafe { core::mem::zeroed() }
3901 }
3902 }
3903 #[repr(C)]
3904 #[derive(Clone, Copy)]
3905 pub struct NLSTABLEINFO {
3906 pub OemTableInfo: CPTABLEINFO,
3907 pub AnsiTableInfo: CPTABLEINFO,
3908 pub UpperCaseTable: *mut u16,
3909 pub LowerCaseTable: *mut u16,
3910 }
3911 impl Default for NLSTABLEINFO {
3912 fn default() -> Self {
3913 unsafe { core::mem::zeroed() }
3914 }
3915 }
3916 pub const NO_8DOT3_NAME_PRESENT: u32 = 1u32;
3917 pub type NTCREATEFILE_CREATE_DISPOSITION = u32;
3918 pub type NTCREATEFILE_CREATE_OPTIONS = u32;
3919 pub const NetworkOpenIntegrityAny: NETWORK_OPEN_INTEGRITY_QUALIFIER = 0i32;
3920 pub const NetworkOpenIntegrityEncrypted: NETWORK_OPEN_INTEGRITY_QUALIFIER = 3i32;
3921 pub const NetworkOpenIntegrityMaximum: NETWORK_OPEN_INTEGRITY_QUALIFIER = 4i32;
3922 pub const NetworkOpenIntegrityNone: NETWORK_OPEN_INTEGRITY_QUALIFIER = 1i32;
3923 pub const NetworkOpenIntegritySigned: NETWORK_OPEN_INTEGRITY_QUALIFIER = 2i32;
3924 pub const NetworkOpenLocationAny: NETWORK_OPEN_LOCATION_QUALIFIER = 0i32;
3925 pub const NetworkOpenLocationLoopback: NETWORK_OPEN_LOCATION_QUALIFIER = 2i32;
3926 pub const NetworkOpenLocationRemote: NETWORK_OPEN_LOCATION_QUALIFIER = 1i32;
3927 pub const NotifyTypeCreate: FS_FILTER_STREAM_FO_NOTIFICATION_TYPE = 0i32;
3928 pub const NotifyTypeRetired: FS_FILTER_STREAM_FO_NOTIFICATION_TYPE = 1i32;
3929 pub const NtfsLinkTrackingInformation: LINK_TRACKING_INFORMATION_TYPE = 0i32;
3930 #[repr(C)]
3931 #[cfg(feature = "Win32_System_Kernel")]
3932 #[derive(Clone, Copy, Default)]
3933 pub struct OPEN_REPARSE_LIST {
3934 pub OpenReparseList: super::super::super::Win32::System::Kernel::LIST_ENTRY,
3935 }
3936 #[repr(C)]
3937 #[cfg(feature = "Win32_System_Kernel")]
3938 #[derive(Clone, Copy, Default)]
3939 pub struct OPEN_REPARSE_LIST_ENTRY {
3940 pub OpenReparseListEntry: super::super::super::Win32::System::Kernel::LIST_ENTRY,
3941 pub ReparseTag: u32,
3942 pub Flags: u32,
3943 pub ReparseGuid: windows_sys::core::GUID,
3944 pub Size: u16,
3945 pub RemainingLength: u16,
3946 }
3947 pub const OPEN_REPARSE_POINT_OVERRIDE_CREATE_OPTION: u32 = 64u32;
3948 pub const OPEN_REPARSE_POINT_REPARSE_ALWAYS: u32 = 126u32;
3949 pub const OPEN_REPARSE_POINT_REPARSE_IF_CHILD_EXISTS: u32 = 2u32;
3950 pub const OPEN_REPARSE_POINT_REPARSE_IF_CHILD_NOT_EXISTS: u32 = 4u32;
3951 pub const OPEN_REPARSE_POINT_REPARSE_IF_DIRECTORY_FINAL_COMPONENT: u32 = 8u32;
3952 pub const OPEN_REPARSE_POINT_REPARSE_IF_DIRECTORY_FINAL_COMPONENT_ALWAYS: u32 = 72u32;
3953 pub const OPEN_REPARSE_POINT_REPARSE_IF_FINAL_COMPONENT: u32 = 40u32;
3954 pub const OPEN_REPARSE_POINT_REPARSE_IF_FINAL_COMPONENT_ALWAYS: u32 = 104u32;
3955 pub const OPEN_REPARSE_POINT_REPARSE_IF_NON_DIRECTORY_FINAL_COMPONENT: u32 = 32u32;
3956 pub const OPEN_REPARSE_POINT_REPARSE_IF_NON_DIRECTORY_FINAL_COMPONENT_ALWAYS: u32 = 96u32;
3957 pub const OPEN_REPARSE_POINT_REPARSE_IF_NON_DIRECTORY_NON_FINAL_COMPONENT: u32 = 16u32;
3958 pub const OPEN_REPARSE_POINT_REPARSE_IF_NON_DIRECTORY_NON_FINAL_COMPONENT_ALWAYS: u32 = 80u32;
3959 pub const OPEN_REPARSE_POINT_REPARSE_IF_NON_FINAL_COMPONENT: u32 = 22u32;
3960 pub const OPEN_REPARSE_POINT_RETURN_REPARSE_DATA_BUFFER: u32 = 128u32;
3961 pub const OPEN_REPARSE_POINT_TAG_ENCOUNTERED: u32 = 1u32;
3962 pub const OPEN_REPARSE_POINT_VERSION_EX: u32 = 2147483648u32;
3963 pub const OPLOCK_FLAG_BACK_OUT_ATOMIC_OPLOCK: u32 = 4u32;
3964 pub const OPLOCK_FLAG_BREAKING_FOR_SHARING_VIOLATION: u32 = 128u32;
3965 pub const OPLOCK_FLAG_CLOSING_DELETE_ON_CLOSE: u32 = 32u32;
3966 pub const OPLOCK_FLAG_COMPLETE_IF_OPLOCKED: u32 = 1u32;
3967 pub const OPLOCK_FLAG_IGNORE_OPLOCK_KEYS: u32 = 8u32;
3968 pub const OPLOCK_FLAG_OPLOCK_KEY_CHECK_ONLY: u32 = 2u32;
3969 pub const OPLOCK_FLAG_PARENT_OBJECT: u32 = 16u32;
3970 pub const OPLOCK_FLAG_REMOVING_FILE_OR_LINK: u32 = 64u32;
3971 pub const OPLOCK_FSCTRL_FLAG_ALL_KEYS_MATCH: u32 = 1u32;
3972 #[repr(C)]
3973 #[derive(Clone, Copy, Default)]
3974 pub struct OPLOCK_KEY_CONTEXT {
3975 pub Version: u16,
3976 pub Flags: u16,
3977 pub ParentOplockKey: windows_sys::core::GUID,
3978 pub TargetOplockKey: windows_sys::core::GUID,
3979 pub Reserved: u32,
3980 }
3981 #[repr(C)]
3982 #[derive(Clone, Copy, Default)]
3983 pub struct OPLOCK_KEY_ECP_CONTEXT {
3984 pub OplockKey: windows_sys::core::GUID,
3985 pub Reserved: u32,
3986 }
3987 pub const OPLOCK_NOTIFY_BREAK_WAIT_INTERIM_TIMEOUT: OPLOCK_NOTIFY_REASON = 0i32;
3988 pub const OPLOCK_NOTIFY_BREAK_WAIT_TERMINATED: OPLOCK_NOTIFY_REASON = 1i32;
3989 #[repr(C)]
3990 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3991 #[derive(Clone, Copy)]
3992 pub struct OPLOCK_NOTIFY_PARAMS {
3993 pub NotifyReason: OPLOCK_NOTIFY_REASON,
3994 pub NotifyContext: *mut core::ffi::c_void,
3995 pub Irp: *mut super::super::Foundation::IRP,
3996 pub Status: super::super::super::Win32::Foundation::NTSTATUS,
3997 }
3998 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
3999 impl Default for OPLOCK_NOTIFY_PARAMS {
4000 fn default() -> Self {
4001 unsafe { core::mem::zeroed() }
4002 }
4003 }
4004 pub type OPLOCK_NOTIFY_REASON = i32;
4005 pub const OPLOCK_UPPER_FLAG_CHECK_NO_BREAK: u32 = 65536u32;
4006 pub const OPLOCK_UPPER_FLAG_NOTIFY_REFRESH_READ: u32 = 131072u32;
4007 pub type PACQUIRE_FOR_LAZY_WRITE = Option<unsafe extern "system" fn(context: *const core::ffi::c_void, wait: bool) -> bool>;
4008 pub type PACQUIRE_FOR_LAZY_WRITE_EX = Option<unsafe extern "system" fn(context: *const core::ffi::c_void, inflags: u32, outflags: *mut u32) -> bool>;
4009 pub type PACQUIRE_FOR_READ_AHEAD = Option<unsafe extern "system" fn(context: *const core::ffi::c_void, wait: bool) -> bool>;
4010 pub type PALLOCATE_VIRTUAL_MEMORY_EX_CALLBACK = Option<unsafe extern "system" fn() -> super::super::super::Win32::Foundation::NTSTATUS>;
4011 pub type PASYNC_READ_COMPLETION_CALLBACK = Option<unsafe extern "system" fn(context: *const core::ffi::c_void) -> bool>;
4012 pub type PCC_POST_DEFERRED_WRITE = Option<unsafe extern "system" fn(context1: *const core::ffi::c_void, context2: *const core::ffi::c_void)>;
4013 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
4014 pub type PCHECK_FOR_TRAVERSE_ACCESS = Option<unsafe extern "system" fn(notifycontext: *const core::ffi::c_void, targetcontext: *const core::ffi::c_void, subjectcontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT) -> bool>;
4015 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
4016 pub type PCOMPLETE_LOCK_IRP_ROUTINE = Option<unsafe extern "system" fn(context: *const core::ffi::c_void, irp: *const super::super::Foundation::IRP) -> super::super::super::Win32::Foundation::NTSTATUS>;
4017 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
4018 pub type PDIRTY_PAGE_ROUTINE = Option<unsafe extern "system" fn(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, oldestlsn: *const i64, newestlsn: *const i64, context1: *const core::ffi::c_void, context2: *const core::ffi::c_void)>;
4019 pub type PFILTER_REPORT_CHANGE = Option<unsafe extern "system" fn(notifycontext: *const core::ffi::c_void, filtercontext: *const core::ffi::c_void) -> bool>;
4020 pub type PFLUSH_TO_LSN = Option<unsafe extern "system" fn(loghandle: *const core::ffi::c_void, lsn: i64)>;
4021 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
4022 pub type PFN_FSRTLTEARDOWNPERSTREAMCONTEXTS = Option<unsafe extern "system" fn(advancedheader: *const FSRTL_ADVANCED_FCB_HEADER)>;
4023 pub type PFREE_VIRTUAL_MEMORY_EX_CALLBACK = Option<unsafe extern "system" fn() -> super::super::super::Win32::Foundation::NTSTATUS>;
4024 pub type PFSRTL_EXTRA_CREATE_PARAMETER_CLEANUP_CALLBACK = Option<unsafe extern "system" fn(ecpcontext: *mut core::ffi::c_void, ecptype: *const windows_sys::core::GUID)>;
4025 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
4026 pub type PFSRTL_STACK_OVERFLOW_ROUTINE = Option<unsafe extern "system" fn(context: *const core::ffi::c_void, event: *const super::super::Foundation::KEVENT)>;
4027 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
4028 pub type PFS_FILTER_CALLBACK = Option<unsafe extern "system" fn(data: *const FS_FILTER_CALLBACK_DATA, completioncontext: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS>;
4029 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
4030 pub type PFS_FILTER_COMPLETION_CALLBACK = Option<unsafe extern "system" fn(data: *const FS_FILTER_CALLBACK_DATA, operationstatus: super::super::super::Win32::Foundation::NTSTATUS, completioncontext: *const core::ffi::c_void)>;
4031 #[repr(C)]
4032 #[derive(Clone, Copy)]
4033 pub struct PHYSICAL_EXTENTS_DESCRIPTOR {
4034 pub NumberOfRuns: u32,
4035 pub NumberOfValidRuns: u32,
4036 pub Run: [PHYSICAL_MEMORY_RUN; 1],
4037 }
4038 impl Default for PHYSICAL_EXTENTS_DESCRIPTOR {
4039 fn default() -> Self {
4040 unsafe { core::mem::zeroed() }
4041 }
4042 }
4043 #[repr(C)]
4044 #[derive(Clone, Copy)]
4045 pub struct PHYSICAL_MEMORY_DESCRIPTOR {
4046 pub NumberOfRuns: u32,
4047 pub NumberOfPages: u32,
4048 pub Run: [PHYSICAL_MEMORY_RUN; 1],
4049 }
4050 impl Default for PHYSICAL_MEMORY_DESCRIPTOR {
4051 fn default() -> Self {
4052 unsafe { core::mem::zeroed() }
4053 }
4054 }
4055 #[repr(C)]
4056 #[derive(Clone, Copy, Default)]
4057 pub struct PHYSICAL_MEMORY_RUN {
4058 pub BasePage: u32,
4059 pub PageCount: u32,
4060 }
4061 pub const PIN_CALLER_TRACKS_DIRTY_DATA: u32 = 32u32;
4062 pub const PIN_EXCLUSIVE: u32 = 2u32;
4063 pub const PIN_HIGH_PRIORITY: u32 = 64u32;
4064 pub const PIN_IF_BCB: u32 = 8u32;
4065 pub const PIN_NO_READ: u32 = 4u32;
4066 pub const PIN_VERIFY_REQUIRED: u32 = 128u32;
4067 pub const PIN_WAIT: u32 = 1u32;
4068 pub const POLICY_AUDIT_SUBCATEGORY_COUNT: u32 = 59u32;
4069 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
4070 pub type POPLOCK_FS_PREPOST_IRP = Option<unsafe extern "system" fn(context: *const core::ffi::c_void, irp: *const super::super::Foundation::IRP)>;
4071 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
4072 pub type POPLOCK_NOTIFY_ROUTINE = Option<unsafe extern "system" fn(notifyparams: *const OPLOCK_NOTIFY_PARAMS) -> super::super::super::Win32::Foundation::NTSTATUS>;
4073 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
4074 pub type POPLOCK_WAIT_COMPLETE_ROUTINE = Option<unsafe extern "system" fn(context: *const core::ffi::c_void, irp: *const super::super::Foundation::IRP)>;
4075 pub const PO_CB_AC_STATUS: u32 = 1u32;
4076 pub const PO_CB_BUTTON_COLLISION: u32 = 2u32;
4077 pub const PO_CB_LID_SWITCH_STATE: u32 = 4u32;
4078 pub const PO_CB_PROCESSOR_POWER_POLICY: u32 = 5u32;
4079 pub const PO_CB_SYSTEM_POWER_POLICY: u32 = 0u32;
4080 pub const PO_CB_SYSTEM_STATE_LOCK: u32 = 3u32;
4081 pub type PQUERY_LOG_USAGE = Option<unsafe extern "system" fn(loghandle: *const core::ffi::c_void, percentagefull: *mut u16)>;
4082 pub type PQUERY_VIRTUAL_MEMORY_CALLBACK = Option<unsafe extern "system" fn() -> super::super::super::Win32::Foundation::NTSTATUS>;
4083 #[repr(C)]
4084 #[derive(Clone, Copy)]
4085 pub struct PREFETCH_OPEN_ECP_CONTEXT {
4086 pub Context: *mut core::ffi::c_void,
4087 }
4088 impl Default for PREFETCH_OPEN_ECP_CONTEXT {
4089 fn default() -> Self {
4090 unsafe { core::mem::zeroed() }
4091 }
4092 }
4093 #[repr(C)]
4094 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
4095 #[derive(Clone, Copy)]
4096 pub struct PREFIX_TABLE {
4097 pub NodeTypeCode: i16,
4098 pub NameLength: i16,
4099 pub NextPrefixTree: *mut PREFIX_TABLE_ENTRY,
4100 }
4101 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
4102 impl Default for PREFIX_TABLE {
4103 fn default() -> Self {
4104 unsafe { core::mem::zeroed() }
4105 }
4106 }
4107 #[repr(C)]
4108 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
4109 #[derive(Clone, Copy)]
4110 pub struct PREFIX_TABLE_ENTRY {
4111 pub NodeTypeCode: i16,
4112 pub NameLength: i16,
4113 pub NextPrefixTree: *mut PREFIX_TABLE_ENTRY,
4114 pub Links: super::super::Foundation::RTL_SPLAY_LINKS,
4115 pub Prefix: *mut super::super::super::Win32::System::Kernel::STRING,
4116 }
4117 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
4118 impl Default for PREFIX_TABLE_ENTRY {
4119 fn default() -> Self {
4120 unsafe { core::mem::zeroed() }
4121 }
4122 }
4123 pub type PRELEASE_FROM_LAZY_WRITE = Option<unsafe extern "system" fn(context: *const core::ffi::c_void)>;
4124 pub type PRELEASE_FROM_READ_AHEAD = Option<unsafe extern "system" fn(context: *const core::ffi::c_void)>;
4125 pub type PRTL_ALLOCATE_STRING_ROUTINE = Option<unsafe extern "system" fn() -> *mut core::ffi::c_void>;
4126 pub type PRTL_FREE_STRING_ROUTINE = Option<unsafe extern "system" fn()>;
4127 pub type PRTL_HEAP_COMMIT_ROUTINE = Option<unsafe extern "system" fn() -> super::super::super::Win32::Foundation::NTSTATUS>;
4128 pub type PRTL_REALLOCATE_STRING_ROUTINE = Option<unsafe extern "system" fn() -> *mut core::ffi::c_void>;
4129 pub type PSE_LOGON_SESSION_TERMINATED_ROUTINE = Option<unsafe extern "system" fn() -> super::super::super::Win32::Foundation::NTSTATUS>;
4130 pub type PSE_LOGON_SESSION_TERMINATED_ROUTINE_EX = Option<unsafe extern "system" fn() -> super::super::super::Win32::Foundation::NTSTATUS>;
4131 pub const PSMP_MAXIMUM_SYSAPP_CLAIM_VALUES: u32 = 4u32;
4132 pub const PSMP_MINIMUM_SYSAPP_CLAIM_VALUES: u32 = 2u32;
4133 #[repr(C)]
4134 #[derive(Clone, Copy, Default)]
4135 pub struct PUBLIC_BCB {
4136 pub NodeTypeCode: i16,
4137 pub NodeByteSize: i16,
4138 pub MappedLength: u32,
4139 pub MappedFileOffset: i64,
4140 }
4141 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
4142 pub type PUNLOCK_ROUTINE = Option<unsafe extern "system" fn(context: *const core::ffi::c_void, filelockinfo: *const FILE_LOCK_INFO)>;
4143 pub const PURGE_WITH_ACTIVE_VIEWS: u32 = 8u32;
4144 #[repr(C)]
4145 #[cfg(feature = "Win32_System_Ioctl")]
4146 #[derive(Clone, Copy)]
4147 pub struct QUERY_BAD_RANGES_INPUT {
4148 pub Flags: u32,
4149 pub NumRanges: u32,
4150 pub Ranges: [super::super::super::Win32::System::Ioctl::QUERY_BAD_RANGES_INPUT_RANGE; 1],
4151 }
4152 #[cfg(feature = "Win32_System_Ioctl")]
4153 impl Default for QUERY_BAD_RANGES_INPUT {
4154 fn default() -> Self {
4155 unsafe { core::mem::zeroed() }
4156 }
4157 }
4158 pub const QUERY_DIRECT_ACCESS_DATA_EXTENTS: u32 = 2u32;
4159 #[repr(C)]
4160 #[derive(Clone, Copy, Default)]
4161 pub struct QUERY_DIRECT_ACCESS_EXTENTS {
4162 pub FileOffset: i64,
4163 pub Length: i64,
4164 pub Flags: u32,
4165 pub Reserved: u32,
4166 }
4167 pub const QUERY_DIRECT_ACCESS_IMAGE_EXTENTS: u32 = 1u32;
4168 #[repr(C)]
4169 #[derive(Clone, Copy)]
4170 pub struct QUERY_ON_CREATE_EA_INFORMATION {
4171 pub EaBufferSize: u32,
4172 pub EaBuffer: *mut FILE_FULL_EA_INFORMATION,
4173 }
4174 impl Default for QUERY_ON_CREATE_EA_INFORMATION {
4175 fn default() -> Self {
4176 unsafe { core::mem::zeroed() }
4177 }
4178 }
4179 #[repr(C)]
4180 #[derive(Clone, Copy, Default)]
4181 pub struct QUERY_ON_CREATE_ECP_CONTEXT {
4182 pub RequestedClasses: u32,
4183 pub ClassesProcessed: u32,
4184 pub ClassesWithErrors: u32,
4185 pub ClassesWithNoData: u32,
4186 pub StatInformation: QUERY_ON_CREATE_FILE_STAT_INFORMATION,
4187 pub LxInformation: QUERY_ON_CREATE_FILE_LX_INFORMATION,
4188 pub EaInformation: QUERY_ON_CREATE_EA_INFORMATION,
4189 }
4190 #[repr(C)]
4191 #[derive(Clone, Copy, Default)]
4192 pub struct QUERY_ON_CREATE_FILE_LX_INFORMATION {
4193 pub EffectiveAccess: u32,
4194 pub LxFlags: u32,
4195 pub LxUid: u32,
4196 pub LxGid: u32,
4197 pub LxMode: u32,
4198 pub LxDeviceIdMajor: u32,
4199 pub LxDeviceIdMinor: u32,
4200 }
4201 #[repr(C)]
4202 #[derive(Clone, Copy, Default)]
4203 pub struct QUERY_ON_CREATE_FILE_STAT_INFORMATION {
4204 pub FileId: i64,
4205 pub CreationTime: i64,
4206 pub LastAccessTime: i64,
4207 pub LastWriteTime: i64,
4208 pub ChangeTime: i64,
4209 pub AllocationSize: i64,
4210 pub EndOfFile: i64,
4211 pub FileAttributes: u32,
4212 pub ReparseTag: u32,
4213 pub NumberOfLinks: u32,
4214 }
4215 #[repr(C)]
4216 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))]
4217 #[derive(Clone, Copy)]
4218 pub struct QUERY_PATH_REQUEST {
4219 pub PathNameLength: u32,
4220 pub SecurityContext: *mut super::super::Foundation::IO_SECURITY_CONTEXT,
4221 pub FilePathName: [u16; 1],
4222 }
4223 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))]
4224 impl Default for QUERY_PATH_REQUEST {
4225 fn default() -> Self {
4226 unsafe { core::mem::zeroed() }
4227 }
4228 }
4229 #[repr(C)]
4230 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))]
4231 #[derive(Clone, Copy)]
4232 pub struct QUERY_PATH_REQUEST_EX {
4233 pub pSecurityContext: *mut super::super::Foundation::IO_SECURITY_CONTEXT,
4234 pub EaLength: u32,
4235 pub pEaBuffer: *mut core::ffi::c_void,
4236 pub PathName: super::super::super::Win32::Foundation::UNICODE_STRING,
4237 pub DomainServiceName: super::super::super::Win32::Foundation::UNICODE_STRING,
4238 pub EcpList: *mut super::super::Foundation::ECP_LIST,
4239 pub Silo: super::super::Foundation::PESILO,
4240 pub Reserved: usize,
4241 }
4242 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))]
4243 impl Default for QUERY_PATH_REQUEST_EX {
4244 fn default() -> Self {
4245 unsafe { core::mem::zeroed() }
4246 }
4247 }
4248 #[repr(C)]
4249 #[derive(Clone, Copy, Default)]
4250 pub struct QUERY_PATH_RESPONSE {
4251 pub LengthAccepted: u32,
4252 }
4253 pub type QUERY_VIRTUAL_MEMORY_CALLBACK = Option<unsafe extern "system" fn(callbackcontext: super::super::super::Win32::Foundation::HANDLE, processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: *const core::ffi::c_void, memoryinformationclass: HEAP_MEMORY_INFO_CLASS, memoryinformation: *mut core::ffi::c_void, memoryinformationlength: usize, returnlength: *mut usize) -> super::super::super::Win32::Foundation::NTSTATUS>;
4254 pub const QoCFileEaInformation: u32 = 4u32;
4255 pub const QoCFileLxInformation: u32 = 2u32;
4256 pub const QoCFileStatInformation: u32 = 1u32;
4257 #[repr(C)]
4258 #[derive(Clone, Copy, Default)]
4259 pub struct READ_AHEAD_PARAMETERS {
4260 pub NodeByteSize: i16,
4261 pub Granularity: u32,
4262 pub PipelinedRequestSize: u32,
4263 pub ReadAheadGrowthPercentage: u32,
4264 }
4265 #[repr(C)]
4266 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
4267 #[derive(Clone, Copy)]
4268 pub struct READ_LIST {
4269 pub FileObject: *mut super::super::Foundation::FILE_OBJECT,
4270 pub NumberOfEntries: u32,
4271 pub IsImage: u32,
4272 pub List: [super::super::super::Win32::Storage::FileSystem::FILE_SEGMENT_ELEMENT; 1],
4273 }
4274 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))]
4275 impl Default for READ_LIST {
4276 fn default() -> Self {
4277 unsafe { core::mem::zeroed() }
4278 }
4279 }
4280 #[repr(C)]
4281 #[derive(Clone, Copy, Default)]
4282 pub struct READ_USN_JOURNAL_DATA {
4283 pub StartUsn: i64,
4284 pub ReasonMask: u32,
4285 pub ReturnOnlyOnClose: u32,
4286 pub Timeout: u64,
4287 pub BytesToWaitFor: u64,
4288 pub UsnJournalID: u64,
4289 pub MinMajorVersion: u16,
4290 pub MaxMajorVersion: u16,
4291 }
4292 pub type REFS_COMPRESSION_FORMATS = i32;
4293 pub const REFS_COMPRESSION_FORMAT_LZ4: REFS_COMPRESSION_FORMATS = 1i32;
4294 pub const REFS_COMPRESSION_FORMAT_MAX: REFS_COMPRESSION_FORMATS = 3i32;
4295 pub const REFS_COMPRESSION_FORMAT_UNCOMPRESSED: REFS_COMPRESSION_FORMATS = 0i32;
4296 pub const REFS_COMPRESSION_FORMAT_ZSTD: REFS_COMPRESSION_FORMATS = 2i32;
4297 pub type REFS_DEALLOCATE_RANGES_ALLOCATOR = i32;
4298 pub const REFS_DEALLOCATE_RANGES_ALLOCATOR_CAA: REFS_DEALLOCATE_RANGES_ALLOCATOR = 2i32;
4299 pub const REFS_DEALLOCATE_RANGES_ALLOCATOR_MAA: REFS_DEALLOCATE_RANGES_ALLOCATOR = 3i32;
4300 pub const REFS_DEALLOCATE_RANGES_ALLOCATOR_NONE: REFS_DEALLOCATE_RANGES_ALLOCATOR = 0i32;
4301 pub const REFS_DEALLOCATE_RANGES_ALLOCATOR_SAA: REFS_DEALLOCATE_RANGES_ALLOCATOR = 1i32;
4302 #[repr(C)]
4303 #[derive(Clone, Copy)]
4304 pub struct REFS_DEALLOCATE_RANGES_INPUT_BUFFER {
4305 pub RangeCount: u32,
4306 pub Ranges: [REFS_DEALLOCATE_RANGES_RANGE; 1],
4307 }
4308 impl Default for REFS_DEALLOCATE_RANGES_INPUT_BUFFER {
4309 fn default() -> Self {
4310 unsafe { core::mem::zeroed() }
4311 }
4312 }
4313 #[repr(C)]
4314 #[derive(Clone, Copy)]
4315 pub struct REFS_DEALLOCATE_RANGES_INPUT_BUFFER_EX {
4316 pub RangeCount: u32,
4317 pub Allocator: REFS_DEALLOCATE_RANGES_ALLOCATOR,
4318 pub StreamReserveUpdateCount: i64,
4319 pub OffsetToRanges: u32,
4320 pub OffsetToLeakCounts: u32,
4321 pub Reserved: [u64; 2],
4322 }
4323 impl Default for REFS_DEALLOCATE_RANGES_INPUT_BUFFER_EX {
4324 fn default() -> Self {
4325 unsafe { core::mem::zeroed() }
4326 }
4327 }
4328 #[repr(C)]
4329 #[derive(Clone, Copy, Default)]
4330 pub struct REFS_DEALLOCATE_RANGES_RANGE {
4331 pub StartOfRange: u64,
4332 pub CountOfRange: u64,
4333 }
4334 #[repr(C)]
4335 #[derive(Clone, Copy)]
4336 pub struct REFS_QUERY_VOLUME_COMPRESSION_INFO_OUTPUT_BUFFER {
4337 pub DefaultCompressionFormat: REFS_COMPRESSION_FORMATS,
4338 pub DefaultCompressionLevel: i16,
4339 pub DefaultCompressionChunkSizeBytes: u32,
4340 pub VolumeClusterSizeBytes: u32,
4341 pub TotalVolumeClusters: u64,
4342 pub TotalAllocatedClusters: u64,
4343 pub TotalCompressibleClustersAllocated: u64,
4344 pub TotalCompressibleClustersInUse: u64,
4345 pub TotalCompressedClusters: u64,
4346 pub Reserved: [u64; 6],
4347 }
4348 impl Default for REFS_QUERY_VOLUME_COMPRESSION_INFO_OUTPUT_BUFFER {
4349 fn default() -> Self {
4350 unsafe { core::mem::zeroed() }
4351 }
4352 }
4353 #[repr(C)]
4354 #[derive(Clone, Copy, Default)]
4355 pub struct REFS_QUERY_VOLUME_DEDUP_INFO_OUTPUT_BUFFER {
4356 pub Enabled: bool,
4357 }
4358 #[repr(C)]
4359 #[derive(Clone, Copy)]
4360 pub struct REFS_REMOVE_HARDLINK_BACKPOINTER {
4361 pub ParentDirectory: u64,
4362 pub Reserved: u64,
4363 pub FileName: [u16; 1],
4364 }
4365 impl Default for REFS_REMOVE_HARDLINK_BACKPOINTER {
4366 fn default() -> Self {
4367 unsafe { core::mem::zeroed() }
4368 }
4369 }
4370 pub type REFS_SET_VOLUME_COMPRESSION_INFO_FLAGS = i32;
4371 pub const REFS_SET_VOLUME_COMPRESSION_INFO_FLAG_COMPRESS_SYNC: REFS_SET_VOLUME_COMPRESSION_INFO_FLAGS = 1i32;
4372 pub const REFS_SET_VOLUME_COMPRESSION_INFO_FLAG_MAX: REFS_SET_VOLUME_COMPRESSION_INFO_FLAGS = 1i32;
4373 #[repr(C)]
4374 #[derive(Clone, Copy)]
4375 pub struct REFS_SET_VOLUME_COMPRESSION_INFO_INPUT_BUFFER {
4376 pub CompressionFormat: REFS_COMPRESSION_FORMATS,
4377 pub CompressionLevel: i16,
4378 pub CompressionChunkSizeBytes: u32,
4379 pub Flags: REFS_SET_VOLUME_COMPRESSION_INFO_FLAGS,
4380 pub Reserved: [u64; 8],
4381 }
4382 impl Default for REFS_SET_VOLUME_COMPRESSION_INFO_INPUT_BUFFER {
4383 fn default() -> Self {
4384 unsafe { core::mem::zeroed() }
4385 }
4386 }
4387 #[repr(C)]
4388 #[derive(Clone, Copy, Default)]
4389 pub struct REFS_SET_VOLUME_DEDUP_INFO_INPUT_BUFFER {
4390 pub Enable: bool,
4391 }
4392 #[repr(C)]
4393 #[derive(Clone, Copy, Default)]
4394 pub struct REFS_STREAM_EXTENT {
4395 pub Vcn: i64,
4396 pub Lcn: i64,
4397 pub Length: i64,
4398 pub Properties: u16,
4399 }
4400 pub const REFS_STREAM_EXTENT_PROPERTY_CRC32: _REFS_STREAM_EXTENT_PROPERTIES = 128i32;
4401 pub const REFS_STREAM_EXTENT_PROPERTY_CRC64: _REFS_STREAM_EXTENT_PROPERTIES = 256i32;
4402 pub const REFS_STREAM_EXTENT_PROPERTY_GHOSTED: _REFS_STREAM_EXTENT_PROPERTIES = 512i32;
4403 pub const REFS_STREAM_EXTENT_PROPERTY_READONLY: _REFS_STREAM_EXTENT_PROPERTIES = 1024i32;
4404 pub const REFS_STREAM_EXTENT_PROPERTY_SPARSE: _REFS_STREAM_EXTENT_PROPERTIES = 8i32;
4405 pub const REFS_STREAM_EXTENT_PROPERTY_STREAM_RESERVED: _REFS_STREAM_EXTENT_PROPERTIES = 32i32;
4406 pub const REFS_STREAM_EXTENT_PROPERTY_VALID: _REFS_STREAM_EXTENT_PROPERTIES = 16i32;
4407 #[repr(C)]
4408 #[derive(Clone, Copy)]
4409 pub struct REFS_STREAM_SNAPSHOT_LIST_OUTPUT_BUFFER {
4410 pub EntryCount: u32,
4411 pub BufferSizeRequiredForQuery: u32,
4412 pub Reserved: [u32; 2],
4413 pub Entries: [REFS_STREAM_SNAPSHOT_LIST_OUTPUT_BUFFER_ENTRY; 1],
4414 }
4415 impl Default for REFS_STREAM_SNAPSHOT_LIST_OUTPUT_BUFFER {
4416 fn default() -> Self {
4417 unsafe { core::mem::zeroed() }
4418 }
4419 }
4420 #[repr(C)]
4421 #[derive(Clone, Copy)]
4422 pub struct REFS_STREAM_SNAPSHOT_LIST_OUTPUT_BUFFER_ENTRY {
4423 pub NextEntryOffset: u32,
4424 pub SnapshotNameLength: u16,
4425 pub SnapshotCreationTime: u64,
4426 pub StreamSize: u64,
4427 pub StreamAllocationSize: u64,
4428 pub Reserved: [u64; 2],
4429 pub SnapshotName: [u16; 1],
4430 }
4431 impl Default for REFS_STREAM_SNAPSHOT_LIST_OUTPUT_BUFFER_ENTRY {
4432 fn default() -> Self {
4433 unsafe { core::mem::zeroed() }
4434 }
4435 }
4436 #[repr(C)]
4437 #[derive(Clone, Copy)]
4438 pub struct REFS_STREAM_SNAPSHOT_MANAGEMENT_INPUT_BUFFER {
4439 pub Operation: REFS_STREAM_SNAPSHOT_OPERATION,
4440 pub SnapshotNameLength: u16,
4441 pub OperationInputBufferLength: u16,
4442 pub Reserved: [u64; 2],
4443 pub NameAndInputBuffer: [u16; 1],
4444 }
4445 impl Default for REFS_STREAM_SNAPSHOT_MANAGEMENT_INPUT_BUFFER {
4446 fn default() -> Self {
4447 unsafe { core::mem::zeroed() }
4448 }
4449 }
4450 pub type REFS_STREAM_SNAPSHOT_OPERATION = i32;
4451 pub const REFS_STREAM_SNAPSHOT_OPERATION_CLEAR_SHADOW_BTREE: REFS_STREAM_SNAPSHOT_OPERATION = 6i32;
4452 pub const REFS_STREAM_SNAPSHOT_OPERATION_CREATE: REFS_STREAM_SNAPSHOT_OPERATION = 1i32;
4453 pub const REFS_STREAM_SNAPSHOT_OPERATION_INVALID: REFS_STREAM_SNAPSHOT_OPERATION = 0i32;
4454 pub const REFS_STREAM_SNAPSHOT_OPERATION_LIST: REFS_STREAM_SNAPSHOT_OPERATION = 2i32;
4455 pub const REFS_STREAM_SNAPSHOT_OPERATION_MAX: REFS_STREAM_SNAPSHOT_OPERATION = 6i32;
4456 pub const REFS_STREAM_SNAPSHOT_OPERATION_QUERY_DELTAS: REFS_STREAM_SNAPSHOT_OPERATION = 3i32;
4457 pub const REFS_STREAM_SNAPSHOT_OPERATION_REVERT: REFS_STREAM_SNAPSHOT_OPERATION = 4i32;
4458 pub const REFS_STREAM_SNAPSHOT_OPERATION_SET_SHADOW_BTREE: REFS_STREAM_SNAPSHOT_OPERATION = 5i32;
4459 #[repr(C)]
4460 #[derive(Clone, Copy, Default)]
4461 pub struct REFS_STREAM_SNAPSHOT_QUERY_DELTAS_INPUT_BUFFER {
4462 pub StartingVcn: i64,
4463 pub Flags: u32,
4464 pub Reserved: u32,
4465 }
4466 #[repr(C)]
4467 #[derive(Clone, Copy)]
4468 pub struct REFS_STREAM_SNAPSHOT_QUERY_DELTAS_OUTPUT_BUFFER {
4469 pub ExtentCount: u32,
4470 pub Reserved: [u32; 2],
4471 pub Extents: [REFS_STREAM_EXTENT; 1],
4472 }
4473 impl Default for REFS_STREAM_SNAPSHOT_QUERY_DELTAS_OUTPUT_BUFFER {
4474 fn default() -> Self {
4475 unsafe { core::mem::zeroed() }
4476 }
4477 }
4478 #[repr(C)]
4479 #[derive(Clone, Copy, Default)]
4480 pub struct REFS_VOLUME_COUNTER_INFO_INPUT_BUFFER {
4481 pub ResetCounters: bool,
4482 }
4483 #[repr(C)]
4484 #[derive(Clone, Copy)]
4485 pub struct REFS_VOLUME_DATA_BUFFER {
4486 pub ByteCount: u32,
4487 pub MajorVersion: u32,
4488 pub MinorVersion: u32,
4489 pub BytesPerPhysicalSector: u32,
4490 pub VolumeSerialNumber: i64,
4491 pub NumberSectors: i64,
4492 pub TotalClusters: i64,
4493 pub FreeClusters: i64,
4494 pub TotalReserved: i64,
4495 pub BytesPerSector: u32,
4496 pub BytesPerCluster: u32,
4497 pub MaximumSizeOfResidentFile: i64,
4498 pub FastTierDataFillRatio: u16,
4499 pub SlowTierDataFillRatio: u16,
4500 pub DestagesFastTierToSlowTierRate: u32,
4501 pub Reserved: [i64; 9],
4502 }
4503 impl Default for REFS_VOLUME_DATA_BUFFER {
4504 fn default() -> Self {
4505 unsafe { core::mem::zeroed() }
4506 }
4507 }
4508 #[repr(C)]
4509 #[derive(Clone, Copy)]
4510 pub struct REMOTE_LINK_TRACKING_INFORMATION {
4511 pub TargetFileObject: *mut core::ffi::c_void,
4512 pub TargetLinkTrackingInformationLength: u32,
4513 pub TargetLinkTrackingInformationBuffer: [u8; 1],
4514 }
4515 impl Default for REMOTE_LINK_TRACKING_INFORMATION {
4516 fn default() -> Self {
4517 unsafe { core::mem::zeroed() }
4518 }
4519 }
4520 pub const REMOTE_PROTOCOL_FLAG_INTEGRITY: u32 = 16u32;
4521 pub const REMOTE_PROTOCOL_FLAG_LOOPBACK: u32 = 1u32;
4522 pub const REMOTE_PROTOCOL_FLAG_MUTUAL_AUTH: u32 = 32u32;
4523 pub const REMOTE_PROTOCOL_FLAG_OFFLINE: u32 = 2u32;
4524 pub const REMOTE_PROTOCOL_FLAG_PERSISTENT_HANDLE: u32 = 4u32;
4525 pub const REMOTE_PROTOCOL_FLAG_PRIVACY: u32 = 8u32;
4526 pub const REMOVED_8DOT3_NAME: u32 = 2u32;
4527 #[repr(C)]
4528 #[derive(Clone, Copy)]
4529 pub struct REPARSE_DATA_BUFFER {
4530 pub ReparseTag: u32,
4531 pub ReparseDataLength: u16,
4532 pub Reserved: u16,
4533 pub Anonymous: REPARSE_DATA_BUFFER_0,
4534 }
4535 impl Default for REPARSE_DATA_BUFFER {
4536 fn default() -> Self {
4537 unsafe { core::mem::zeroed() }
4538 }
4539 }
4540 #[repr(C)]
4541 #[derive(Clone, Copy)]
4542 pub union REPARSE_DATA_BUFFER_0 {
4543 pub SymbolicLinkReparseBuffer: REPARSE_DATA_BUFFER_0_0,
4544 pub MountPointReparseBuffer: REPARSE_DATA_BUFFER_0_1,
4545 pub GenericReparseBuffer: REPARSE_DATA_BUFFER_0_2,
4546 }
4547 impl Default for REPARSE_DATA_BUFFER_0 {
4548 fn default() -> Self {
4549 unsafe { core::mem::zeroed() }
4550 }
4551 }
4552 #[repr(C)]
4553 #[derive(Clone, Copy)]
4554 pub struct REPARSE_DATA_BUFFER_0_2 {
4555 pub DataBuffer: [u8; 1],
4556 }
4557 impl Default for REPARSE_DATA_BUFFER_0_2 {
4558 fn default() -> Self {
4559 unsafe { core::mem::zeroed() }
4560 }
4561 }
4562 #[repr(C)]
4563 #[derive(Clone, Copy)]
4564 pub struct REPARSE_DATA_BUFFER_0_1 {
4565 pub SubstituteNameOffset: u16,
4566 pub SubstituteNameLength: u16,
4567 pub PrintNameOffset: u16,
4568 pub PrintNameLength: u16,
4569 pub PathBuffer: [u16; 1],
4570 }
4571 impl Default for REPARSE_DATA_BUFFER_0_1 {
4572 fn default() -> Self {
4573 unsafe { core::mem::zeroed() }
4574 }
4575 }
4576 #[repr(C)]
4577 #[derive(Clone, Copy)]
4578 pub struct REPARSE_DATA_BUFFER_0_0 {
4579 pub SubstituteNameOffset: u16,
4580 pub SubstituteNameLength: u16,
4581 pub PrintNameOffset: u16,
4582 pub PrintNameLength: u16,
4583 pub Flags: u32,
4584 pub PathBuffer: [u16; 1],
4585 }
4586 impl Default for REPARSE_DATA_BUFFER_0_0 {
4587 fn default() -> Self {
4588 unsafe { core::mem::zeroed() }
4589 }
4590 }
4591 #[repr(C)]
4592 #[cfg(feature = "Win32_Storage_FileSystem")]
4593 #[derive(Clone, Copy)]
4594 pub struct REPARSE_DATA_BUFFER_EX {
4595 pub Flags: u32,
4596 pub ExistingReparseTag: u32,
4597 pub ExistingReparseGuid: windows_sys::core::GUID,
4598 pub Reserved: u64,
4599 pub Anonymous: REPARSE_DATA_BUFFER_EX_0,
4600 }
4601 #[cfg(feature = "Win32_Storage_FileSystem")]
4602 impl Default for REPARSE_DATA_BUFFER_EX {
4603 fn default() -> Self {
4604 unsafe { core::mem::zeroed() }
4605 }
4606 }
4607 #[repr(C)]
4608 #[cfg(feature = "Win32_Storage_FileSystem")]
4609 #[derive(Clone, Copy)]
4610 pub union REPARSE_DATA_BUFFER_EX_0 {
4611 pub ReparseDataBuffer: REPARSE_DATA_BUFFER,
4612 pub ReparseGuidDataBuffer: super::super::super::Win32::Storage::FileSystem::REPARSE_GUID_DATA_BUFFER,
4613 }
4614 #[cfg(feature = "Win32_Storage_FileSystem")]
4615 impl Default for REPARSE_DATA_BUFFER_EX_0 {
4616 fn default() -> Self {
4617 unsafe { core::mem::zeroed() }
4618 }
4619 }
4620 pub const REPARSE_DATA_EX_FLAG_GIVEN_TAG_OR_NONE: u32 = 1u32;
4621 #[repr(C, packed(4))]
4622 #[derive(Clone, Copy, Default)]
4623 pub struct REPARSE_INDEX_KEY {
4624 pub FileReparseTag: u32,
4625 pub FileId: i64,
4626 }
4627 #[repr(C)]
4628 #[derive(Clone, Copy)]
4629 pub struct RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER {
4630 pub ExtentCount: u32,
4631 pub StartingVcn: i64,
4632 pub Extents: [RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER_0; 1],
4633 }
4634 impl Default for RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER {
4635 fn default() -> Self {
4636 unsafe { core::mem::zeroed() }
4637 }
4638 }
4639 #[repr(C)]
4640 #[derive(Clone, Copy, Default)]
4641 pub struct RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER_0 {
4642 pub NextVcn: i64,
4643 pub Lcn: i64,
4644 pub ReferenceCount: u32,
4645 }
4646 pub const RETURN_NON_NT_USER_SESSION_KEY: u32 = 8u32;
4647 pub const RETURN_PRIMARY_LOGON_DOMAINNAME: u32 = 4u32;
4648 pub const RETURN_PRIMARY_USERNAME: u32 = 2u32;
4649 pub const RETURN_RESERVED_PARAMETER: u32 = 128u32;
4650 #[repr(C)]
4651 #[derive(Clone, Copy, Default)]
4652 pub struct RKF_BYPASS_ECP_CONTEXT {
4653 pub Reserved: i32,
4654 pub Version: i32,
4655 }
4656 pub const RPI_SMB2_SERVERCAP_DFS: u32 = 1u32;
4657 pub const RPI_SMB2_SERVERCAP_DIRECTORY_LEASING: u32 = 32u32;
4658 pub const RPI_SMB2_SERVERCAP_ENCRYPTION_AWARE: u32 = 64u32;
4659 pub const RPI_SMB2_SERVERCAP_LARGEMTU: u32 = 4u32;
4660 pub const RPI_SMB2_SERVERCAP_LEASING: u32 = 2u32;
4661 pub const RPI_SMB2_SERVERCAP_MULTICHANNEL: u32 = 8u32;
4662 pub const RPI_SMB2_SERVERCAP_PERSISTENT_HANDLES: u32 = 16u32;
4663 pub const RPI_SMB2_SHARECAP_ACCESS_BASED_DIRECTORY_ENUM: u32 = 256u32;
4664 pub const RPI_SMB2_SHARECAP_ASYMMETRIC_SCALEOUT: u32 = 1024u32;
4665 pub const RPI_SMB2_SHARECAP_CLUSTER: u32 = 64u32;
4666 pub const RPI_SMB2_SHARECAP_CONTINUOUS_AVAILABILITY: u32 = 16u32;
4667 pub const RPI_SMB2_SHARECAP_DFS: u32 = 8u32;
4668 pub const RPI_SMB2_SHARECAP_ENCRYPTED: u32 = 128u32;
4669 pub const RPI_SMB2_SHARECAP_IDENTITY_REMOTING: u32 = 512u32;
4670 pub const RPI_SMB2_SHARECAP_SCALEOUT: u32 = 32u32;
4671 pub const RPI_SMB2_SHARECAP_TIMEWARP: u32 = 2u32;
4672 pub const RPI_SMB2_SHARETYPE_DISK: u32 = 0u32;
4673 pub const RPI_SMB2_SHARETYPE_PIPE: u32 = 1u32;
4674 pub const RPI_SMB2_SHARETYPE_PRINT: u32 = 2u32;
4675 pub type RTL_ALLOCATE_STRING_ROUTINE = Option<unsafe extern "system" fn(numberofbytes: usize) -> *mut core::ffi::c_void>;
4676 pub const RTL_DUPLICATE_UNICODE_STRING_ALLOCATE_NULL_STRING: u32 = 2u32;
4677 pub const RTL_DUPLICATE_UNICODE_STRING_NULL_TERMINATE: u32 = 1u32;
4678 pub type RTL_FREE_STRING_ROUTINE = Option<unsafe extern "system" fn(buffer: *const core::ffi::c_void)>;
4679 pub type RTL_HEAP_COMMIT_ROUTINE = Option<unsafe extern "system" fn(base: *const core::ffi::c_void, commitaddress: *mut *mut core::ffi::c_void, commitsize: *mut usize) -> super::super::super::Win32::Foundation::NTSTATUS>;
4680 pub const RTL_HEAP_MEMORY_LIMIT_CURRENT_VERSION: u32 = 1u32;
4681 #[repr(C)]
4682 #[derive(Clone, Copy, Default)]
4683 pub struct RTL_HEAP_MEMORY_LIMIT_DATA {
4684 pub CommitLimitBytes: usize,
4685 pub CommitLimitFailureCode: usize,
4686 pub MaxAllocationSizeBytes: usize,
4687 pub AllocationLimitFailureCode: usize,
4688 }
4689 #[repr(C)]
4690 #[derive(Clone, Copy, Default)]
4691 pub struct RTL_HEAP_MEMORY_LIMIT_INFO {
4692 pub Version: u32,
4693 pub Data: RTL_HEAP_MEMORY_LIMIT_DATA,
4694 }
4695 #[repr(C)]
4696 #[derive(Clone, Copy)]
4697 pub struct RTL_HEAP_PARAMETERS {
4698 pub Length: u32,
4699 pub SegmentReserve: usize,
4700 pub SegmentCommit: usize,
4701 pub DeCommitFreeBlockThreshold: usize,
4702 pub DeCommitTotalFreeThreshold: usize,
4703 pub MaximumAllocationSize: usize,
4704 pub VirtualMemoryThreshold: usize,
4705 pub InitialCommit: usize,
4706 pub InitialReserve: usize,
4707 pub CommitRoutine: PRTL_HEAP_COMMIT_ROUTINE,
4708 pub Reserved: [usize; 2],
4709 }
4710 impl Default for RTL_HEAP_PARAMETERS {
4711 fn default() -> Self {
4712 unsafe { core::mem::zeroed() }
4713 }
4714 }
4715 pub type RTL_MEMORY_TYPE = i32;
4716 #[repr(C)]
4717 #[derive(Clone, Copy)]
4718 pub struct RTL_NLS_STATE {
4719 pub DefaultAcpTableInfo: CPTABLEINFO,
4720 pub DefaultOemTableInfo: CPTABLEINFO,
4721 pub ActiveCodePageData: *mut u16,
4722 pub OemCodePageData: *mut u16,
4723 pub LeadByteInfo: *mut u16,
4724 pub OemLeadByteInfo: *mut u16,
4725 pub CaseMappingData: *mut u16,
4726 pub UnicodeUpcaseTable844: *mut u16,
4727 pub UnicodeLowercaseTable844: *mut u16,
4728 }
4729 impl Default for RTL_NLS_STATE {
4730 fn default() -> Self {
4731 unsafe { core::mem::zeroed() }
4732 }
4733 }
4734 pub type RTL_REALLOCATE_STRING_ROUTINE = Option<unsafe extern "system" fn(numberofbytes: usize, buffer: *const core::ffi::c_void) -> *mut core::ffi::c_void>;
4735 #[repr(C)]
4736 #[derive(Clone, Copy)]
4737 pub struct RTL_SEGMENT_HEAP_MEMORY_SOURCE {
4738 pub Flags: u32,
4739 pub MemoryTypeMask: u32,
4740 pub NumaNode: u32,
4741 pub Anonymous: RTL_SEGMENT_HEAP_MEMORY_SOURCE_0,
4742 pub Reserved: [usize; 2],
4743 }
4744 impl Default for RTL_SEGMENT_HEAP_MEMORY_SOURCE {
4745 fn default() -> Self {
4746 unsafe { core::mem::zeroed() }
4747 }
4748 }
4749 #[repr(C)]
4750 #[derive(Clone, Copy)]
4751 pub union RTL_SEGMENT_HEAP_MEMORY_SOURCE_0 {
4752 pub PartitionHandle: super::super::super::Win32::Foundation::HANDLE,
4753 pub Callbacks: *mut RTL_SEGMENT_HEAP_VA_CALLBACKS,
4754 }
4755 impl Default for RTL_SEGMENT_HEAP_MEMORY_SOURCE_0 {
4756 fn default() -> Self {
4757 unsafe { core::mem::zeroed() }
4758 }
4759 }
4760 #[repr(C)]
4761 #[derive(Clone, Copy)]
4762 pub struct RTL_SEGMENT_HEAP_PARAMETERS {
4763 pub Version: u16,
4764 pub Size: u16,
4765 pub Flags: u32,
4766 pub MemorySource: RTL_SEGMENT_HEAP_MEMORY_SOURCE,
4767 pub Reserved: [usize; 4],
4768 }
4769 impl Default for RTL_SEGMENT_HEAP_PARAMETERS {
4770 fn default() -> Self {
4771 unsafe { core::mem::zeroed() }
4772 }
4773 }
4774 #[repr(C)]
4775 #[derive(Clone, Copy)]
4776 pub struct RTL_SEGMENT_HEAP_VA_CALLBACKS {
4777 pub CallbackContext: super::super::super::Win32::Foundation::HANDLE,
4778 pub AllocateVirtualMemory: PALLOCATE_VIRTUAL_MEMORY_EX_CALLBACK,
4779 pub FreeVirtualMemory: PFREE_VIRTUAL_MEMORY_EX_CALLBACK,
4780 pub QueryVirtualMemory: PQUERY_VIRTUAL_MEMORY_CALLBACK,
4781 }
4782 impl Default for RTL_SEGMENT_HEAP_VA_CALLBACKS {
4783 fn default() -> Self {
4784 unsafe { core::mem::zeroed() }
4785 }
4786 }
4787 pub const RTL_SYSTEM_VOLUME_INFORMATION_FOLDER: windows_sys::core::PCWSTR = windows_sys::core::w!("System Volume Information");
4788 pub const SECURITY_ANONYMOUS_LOGON_RID: i32 = 7i32;
4789 #[repr(C)]
4790 #[cfg(feature = "Win32_Security")]
4791 #[derive(Clone, Copy)]
4792 pub struct SECURITY_CLIENT_CONTEXT {
4793 pub SecurityQos: super::super::super::Win32::Security::SECURITY_QUALITY_OF_SERVICE,
4794 pub ClientToken: *mut core::ffi::c_void,
4795 pub DirectlyAccessClientToken: bool,
4796 pub DirectAccessEffectiveOnly: bool,
4797 pub ServerIsRemote: bool,
4798 pub ClientTokenControl: super::super::super::Win32::Security::TOKEN_CONTROL,
4799 }
4800 #[cfg(feature = "Win32_Security")]
4801 impl Default for SECURITY_CLIENT_CONTEXT {
4802 fn default() -> Self {
4803 unsafe { core::mem::zeroed() }
4804 }
4805 }
4806 #[repr(C)]
4807 #[cfg(feature = "Win32_Security_Authentication_Identity")]
4808 #[derive(Clone, Copy)]
4809 pub struct SEC_APPLICATION_PROTOCOLS {
4810 pub ProtocolListsSize: u32,
4811 pub ProtocolLists: [super::super::super::Win32::Security::Authentication::Identity::SEC_APPLICATION_PROTOCOL_LIST; 1],
4812 }
4813 #[cfg(feature = "Win32_Security_Authentication_Identity")]
4814 impl Default for SEC_APPLICATION_PROTOCOLS {
4815 fn default() -> Self {
4816 unsafe { core::mem::zeroed() }
4817 }
4818 }
4819 #[repr(C)]
4820 #[derive(Clone, Copy, Default)]
4821 pub struct SEC_DTLS_MTU {
4822 pub PathMTU: u16,
4823 }
4824 #[repr(C)]
4825 #[derive(Clone, Copy, Default)]
4826 pub struct SEC_FLAGS {
4827 pub Flags: u64,
4828 }
4829 #[repr(C)]
4830 #[derive(Clone, Copy)]
4831 pub struct SEC_NEGOTIATION_INFO {
4832 pub Size: u32,
4833 pub NameLength: u32,
4834 pub Name: *mut u16,
4835 pub Reserved: *mut core::ffi::c_void,
4836 }
4837 impl Default for SEC_NEGOTIATION_INFO {
4838 fn default() -> Self {
4839 unsafe { core::mem::zeroed() }
4840 }
4841 }
4842 #[repr(C)]
4843 #[derive(Clone, Copy)]
4844 pub struct SEC_PRESHAREDKEY {
4845 pub KeySize: u16,
4846 pub Key: [u8; 1],
4847 }
4848 impl Default for SEC_PRESHAREDKEY {
4849 fn default() -> Self {
4850 unsafe { core::mem::zeroed() }
4851 }
4852 }
4853 #[repr(C)]
4854 #[derive(Clone, Copy)]
4855 pub struct SEC_SRTP_MASTER_KEY_IDENTIFIER {
4856 pub MasterKeyIdentifierSize: u8,
4857 pub MasterKeyIdentifier: [u8; 1],
4858 }
4859 impl Default for SEC_SRTP_MASTER_KEY_IDENTIFIER {
4860 fn default() -> Self {
4861 unsafe { core::mem::zeroed() }
4862 }
4863 }
4864 pub const SEGMENT_HEAP_FLG_USE_PAGE_HEAP: u32 = 1u32;
4865 pub const SEGMENT_HEAP_PARAMETERS_VERSION: u32 = 3u32;
4866 pub const SEGMENT_HEAP_PARAMS_VALID_FLAGS: u32 = 1u32;
4867 pub const SEMAPHORE_INCREMENT: u32 = 1u32;
4868 #[repr(C)]
4869 #[derive(Clone, Copy, Default)]
4870 pub struct SET_CACHED_RUNS_STATE_INPUT_BUFFER {
4871 pub Enable: bool,
4872 }
4873 pub const SET_PURGE_FAILURE_MODE_DISABLED: u32 = 2u32;
4874 #[repr(C)]
4875 #[cfg(feature = "Win32_Security")]
4876 #[derive(Clone, Copy)]
4877 pub struct SE_AUDIT_INFO {
4878 pub Size: u32,
4879 pub AuditType: super::super::super::Win32::Security::AUDIT_EVENT_TYPE,
4880 pub AuditOperation: SE_AUDIT_OPERATION,
4881 pub AuditFlags: u32,
4882 pub SubsystemName: super::super::super::Win32::Foundation::UNICODE_STRING,
4883 pub ObjectTypeName: super::super::super::Win32::Foundation::UNICODE_STRING,
4884 pub ObjectName: super::super::super::Win32::Foundation::UNICODE_STRING,
4885 pub HandleId: *mut core::ffi::c_void,
4886 pub TransactionId: *mut windows_sys::core::GUID,
4887 pub OperationId: *mut super::super::super::Win32::Foundation::LUID,
4888 pub ObjectCreation: bool,
4889 pub GenerateOnClose: bool,
4890 }
4891 #[cfg(feature = "Win32_Security")]
4892 impl Default for SE_AUDIT_INFO {
4893 fn default() -> Self {
4894 unsafe { core::mem::zeroed() }
4895 }
4896 }
4897 pub type SE_AUDIT_OPERATION = i32;
4898 pub const SE_BACKUP_PRIVILEGES_CHECKED: u32 = 256u32;
4899 pub const SE_DACL_UNTRUSTED: u32 = 64u32;
4900 #[repr(C)]
4901 #[cfg(feature = "Win32_Security")]
4902 #[derive(Clone, Copy)]
4903 pub struct SE_EXPORTS {
4904 pub SeCreateTokenPrivilege: super::super::super::Win32::Foundation::LUID,
4905 pub SeAssignPrimaryTokenPrivilege: super::super::super::Win32::Foundation::LUID,
4906 pub SeLockMemoryPrivilege: super::super::super::Win32::Foundation::LUID,
4907 pub SeIncreaseQuotaPrivilege: super::super::super::Win32::Foundation::LUID,
4908 pub SeUnsolicitedInputPrivilege: super::super::super::Win32::Foundation::LUID,
4909 pub SeTcbPrivilege: super::super::super::Win32::Foundation::LUID,
4910 pub SeSecurityPrivilege: super::super::super::Win32::Foundation::LUID,
4911 pub SeTakeOwnershipPrivilege: super::super::super::Win32::Foundation::LUID,
4912 pub SeLoadDriverPrivilege: super::super::super::Win32::Foundation::LUID,
4913 pub SeCreatePagefilePrivilege: super::super::super::Win32::Foundation::LUID,
4914 pub SeIncreaseBasePriorityPrivilege: super::super::super::Win32::Foundation::LUID,
4915 pub SeSystemProfilePrivilege: super::super::super::Win32::Foundation::LUID,
4916 pub SeSystemtimePrivilege: super::super::super::Win32::Foundation::LUID,
4917 pub SeProfileSingleProcessPrivilege: super::super::super::Win32::Foundation::LUID,
4918 pub SeCreatePermanentPrivilege: super::super::super::Win32::Foundation::LUID,
4919 pub SeBackupPrivilege: super::super::super::Win32::Foundation::LUID,
4920 pub SeRestorePrivilege: super::super::super::Win32::Foundation::LUID,
4921 pub SeShutdownPrivilege: super::super::super::Win32::Foundation::LUID,
4922 pub SeDebugPrivilege: super::super::super::Win32::Foundation::LUID,
4923 pub SeAuditPrivilege: super::super::super::Win32::Foundation::LUID,
4924 pub SeSystemEnvironmentPrivilege: super::super::super::Win32::Foundation::LUID,
4925 pub SeChangeNotifyPrivilege: super::super::super::Win32::Foundation::LUID,
4926 pub SeRemoteShutdownPrivilege: super::super::super::Win32::Foundation::LUID,
4927 pub SeNullSid: super::super::super::Win32::Security::PSID,
4928 pub SeWorldSid: super::super::super::Win32::Security::PSID,
4929 pub SeLocalSid: super::super::super::Win32::Security::PSID,
4930 pub SeCreatorOwnerSid: super::super::super::Win32::Security::PSID,
4931 pub SeCreatorGroupSid: super::super::super::Win32::Security::PSID,
4932 pub SeNtAuthoritySid: super::super::super::Win32::Security::PSID,
4933 pub SeDialupSid: super::super::super::Win32::Security::PSID,
4934 pub SeNetworkSid: super::super::super::Win32::Security::PSID,
4935 pub SeBatchSid: super::super::super::Win32::Security::PSID,
4936 pub SeInteractiveSid: super::super::super::Win32::Security::PSID,
4937 pub SeLocalSystemSid: super::super::super::Win32::Security::PSID,
4938 pub SeAliasAdminsSid: super::super::super::Win32::Security::PSID,
4939 pub SeAliasUsersSid: super::super::super::Win32::Security::PSID,
4940 pub SeAliasGuestsSid: super::super::super::Win32::Security::PSID,
4941 pub SeAliasPowerUsersSid: super::super::super::Win32::Security::PSID,
4942 pub SeAliasAccountOpsSid: super::super::super::Win32::Security::PSID,
4943 pub SeAliasSystemOpsSid: super::super::super::Win32::Security::PSID,
4944 pub SeAliasPrintOpsSid: super::super::super::Win32::Security::PSID,
4945 pub SeAliasBackupOpsSid: super::super::super::Win32::Security::PSID,
4946 pub SeAuthenticatedUsersSid: super::super::super::Win32::Security::PSID,
4947 pub SeRestrictedSid: super::super::super::Win32::Security::PSID,
4948 pub SeAnonymousLogonSid: super::super::super::Win32::Security::PSID,
4949 pub SeUndockPrivilege: super::super::super::Win32::Foundation::LUID,
4950 pub SeSyncAgentPrivilege: super::super::super::Win32::Foundation::LUID,
4951 pub SeEnableDelegationPrivilege: super::super::super::Win32::Foundation::LUID,
4952 pub SeLocalServiceSid: super::super::super::Win32::Security::PSID,
4953 pub SeNetworkServiceSid: super::super::super::Win32::Security::PSID,
4954 pub SeManageVolumePrivilege: super::super::super::Win32::Foundation::LUID,
4955 pub SeImpersonatePrivilege: super::super::super::Win32::Foundation::LUID,
4956 pub SeCreateGlobalPrivilege: super::super::super::Win32::Foundation::LUID,
4957 pub SeTrustedCredManAccessPrivilege: super::super::super::Win32::Foundation::LUID,
4958 pub SeRelabelPrivilege: super::super::super::Win32::Foundation::LUID,
4959 pub SeIncreaseWorkingSetPrivilege: super::super::super::Win32::Foundation::LUID,
4960 pub SeTimeZonePrivilege: super::super::super::Win32::Foundation::LUID,
4961 pub SeCreateSymbolicLinkPrivilege: super::super::super::Win32::Foundation::LUID,
4962 pub SeIUserSid: super::super::super::Win32::Security::PSID,
4963 pub SeUntrustedMandatorySid: super::super::super::Win32::Security::PSID,
4964 pub SeLowMandatorySid: super::super::super::Win32::Security::PSID,
4965 pub SeMediumMandatorySid: super::super::super::Win32::Security::PSID,
4966 pub SeHighMandatorySid: super::super::super::Win32::Security::PSID,
4967 pub SeSystemMandatorySid: super::super::super::Win32::Security::PSID,
4968 pub SeOwnerRightsSid: super::super::super::Win32::Security::PSID,
4969 pub SeAllAppPackagesSid: super::super::super::Win32::Security::PSID,
4970 pub SeUserModeDriversSid: super::super::super::Win32::Security::PSID,
4971 pub SeProcTrustWinTcbSid: super::super::super::Win32::Security::PSID,
4972 pub SeTrustedInstallerSid: super::super::super::Win32::Security::PSID,
4973 pub SeDelegateSessionUserImpersonatePrivilege: super::super::super::Win32::Foundation::LUID,
4974 pub SeAppSiloSid: super::super::super::Win32::Security::PSID,
4975 pub SeAppSiloVolumeRootMinimalCapabilitySid: super::super::super::Win32::Security::PSID,
4976 pub SeAppSiloProfilesRootMinimalCapabilitySid: super::super::super::Win32::Security::PSID,
4977 }
4978 #[cfg(feature = "Win32_Security")]
4979 impl Default for SE_EXPORTS {
4980 fn default() -> Self {
4981 unsafe { core::mem::zeroed() }
4982 }
4983 }
4984 pub type SE_LOGON_SESSION_TERMINATED_ROUTINE = Option<unsafe extern "system" fn(logonid: *const super::super::super::Win32::Foundation::LUID) -> super::super::super::Win32::Foundation::NTSTATUS>;
4985 #[cfg(feature = "Wdk_Foundation")]
4986 pub type SE_LOGON_SESSION_TERMINATED_ROUTINE_EX = Option<unsafe extern "system" fn(logonid: *const super::super::super::Win32::Foundation::LUID, pserversilo: super::super::Foundation::PESILO, context: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS>;
4987 pub const SE_SERVER_SECURITY: u32 = 128u32;
4988 pub const SPECIAL_ENCRYPTED_OPEN: u32 = 262144u32;
4989 pub type SRV_INSTANCE_TYPE = i32;
4990 #[repr(C)]
4991 #[cfg(feature = "Win32_Networking_WinSock")]
4992 #[derive(Clone, Copy)]
4993 pub struct SRV_OPEN_ECP_CONTEXT {
4994 pub ShareName: *mut super::super::super::Win32::Foundation::UNICODE_STRING,
4995 pub SocketAddress: *mut super::super::super::Win32::Networking::WinSock::SOCKADDR_STORAGE,
4996 pub OplockBlockState: bool,
4997 pub OplockAppState: bool,
4998 pub OplockFinalState: bool,
4999 pub Version: u16,
5000 pub InstanceType: SRV_INSTANCE_TYPE,
5001 }
5002 #[cfg(feature = "Win32_Networking_WinSock")]
5003 impl Default for SRV_OPEN_ECP_CONTEXT {
5004 fn default() -> Self {
5005 unsafe { core::mem::zeroed() }
5006 }
5007 }
5008 pub const SRV_OPEN_ECP_CONTEXT_VERSION_2: u32 = 2u32;
5009 pub const SUPPORTED_FS_FEATURES_BYPASS_IO: u32 = 8u32;
5010 pub const SUPPORTED_FS_FEATURES_OFFLOAD_READ: u32 = 1u32;
5011 pub const SUPPORTED_FS_FEATURES_OFFLOAD_WRITE: u32 = 2u32;
5012 pub const SUPPORTED_FS_FEATURES_QUERY_OPEN: u32 = 4u32;
5013 pub const SYMLINK_DIRECTORY: u32 = 2147483648u32;
5014 pub const SYMLINK_FILE: u32 = 1073741824u32;
5015 pub const SYMLINK_FLAG_RELATIVE: u32 = 1u32;
5016 pub const SYMLINK_RESERVED_MASK: u32 = 4026531840u32;
5017 pub const SYSTEM_PAGE_PRIORITY_BITS: u32 = 3u32;
5018 #[repr(C)]
5019 #[derive(Clone, Copy, Default)]
5020 pub struct SYSTEM_PROCESS_TRUST_LABEL_ACE {
5021 pub Header: ACE_HEADER,
5022 pub Mask: u32,
5023 pub SidStart: u32,
5024 }
5025 #[repr(C)]
5026 #[derive(Clone, Copy)]
5027 pub struct SecBuffer {
5028 pub cbBuffer: u32,
5029 pub BufferType: u32,
5030 pub pvBuffer: *mut core::ffi::c_void,
5031 }
5032 impl Default for SecBuffer {
5033 fn default() -> Self {
5034 unsafe { core::mem::zeroed() }
5035 }
5036 }
5037 #[repr(C)]
5038 #[derive(Clone, Copy)]
5039 pub struct SecBufferDesc {
5040 pub ulVersion: u32,
5041 pub cBuffers: u32,
5042 pub pBuffers: *mut SecBuffer,
5043 }
5044 impl Default for SecBufferDesc {
5045 fn default() -> Self {
5046 unsafe { core::mem::zeroed() }
5047 }
5048 }
5049 #[repr(C)]
5050 #[derive(Clone, Copy, Default)]
5051 pub struct SecHandle {
5052 pub dwLower: usize,
5053 pub dwUpper: usize,
5054 }
5055 pub const SharedVirtualDiskCDPSnapshotsSupported: SharedVirtualDiskSupportType = 7i32;
5056 pub type SharedVirtualDiskHandleState = i32;
5057 pub const SharedVirtualDiskHandleStateFileShared: SharedVirtualDiskHandleState = 1i32;
5058 pub const SharedVirtualDiskHandleStateHandleShared: SharedVirtualDiskHandleState = 3i32;
5059 pub const SharedVirtualDiskHandleStateNone: SharedVirtualDiskHandleState = 0i32;
5060 pub const SharedVirtualDiskSnapshotsSupported: SharedVirtualDiskSupportType = 3i32;
5061 pub type SharedVirtualDiskSupportType = i32;
5062 pub const SharedVirtualDisksSupported: SharedVirtualDiskSupportType = 1i32;
5063 pub const SharedVirtualDisksUnsupported: SharedVirtualDiskSupportType = 0i32;
5064 pub const SrvInstanceTypeCsv: SRV_INSTANCE_TYPE = 2i32;
5065 pub const SrvInstanceTypePrimary: SRV_INSTANCE_TYPE = 1i32;
5066 pub const SrvInstanceTypeSBL: SRV_INSTANCE_TYPE = 3i32;
5067 pub const SrvInstanceTypeSR: SRV_INSTANCE_TYPE = 4i32;
5068 pub const SrvInstanceTypeUndefined: SRV_INSTANCE_TYPE = 0i32;
5069 pub const SrvInstanceTypeVSMB: SRV_INSTANCE_TYPE = 5i32;
5070 #[cfg(feature = "Wdk_Foundation")]
5071 pub type SspiAsyncNotifyCallback = Option<unsafe extern "system" fn(handle: *const super::super::Foundation::SspiAsyncContext, callbackdata: *const core::ffi::c_void)>;
5072 pub const SyncTypeCreateSection: FS_FILTER_SECTION_SYNC_TYPE = 1i32;
5073 pub const SyncTypeOther: FS_FILTER_SECTION_SYNC_TYPE = 0i32;
5074 pub const TOKEN_AUDIT_NO_CHILD_PROCESS: u32 = 2097152u32;
5075 pub const TOKEN_AUDIT_REDIRECTION_TRUST: u32 = 8388608u32;
5076 pub const TOKEN_DO_NOT_USE_GLOBAL_ATTRIBS_FOR_QUERY: u32 = 131072u32;
5077 pub const TOKEN_ENFORCE_REDIRECTION_TRUST: u32 = 4194304u32;
5078 pub const TOKEN_HAS_BACKUP_PRIVILEGE: u32 = 2u32;
5079 pub const TOKEN_HAS_IMPERSONATE_PRIVILEGE: u32 = 128u32;
5080 pub const TOKEN_HAS_OWN_CLAIM_ATTRIBUTES: u32 = 32768u32;
5081 pub const TOKEN_HAS_RESTORE_PRIVILEGE: u32 = 4u32;
5082 pub const TOKEN_HAS_TRAVERSE_PRIVILEGE: u32 = 1u32;
5083 pub const TOKEN_IS_FILTERED: u32 = 2048u32;
5084 pub const TOKEN_IS_RESTRICTED: u32 = 16u32;
5085 pub const TOKEN_LEARNING_MODE_LOGGING: u32 = 16777216u32;
5086 pub const TOKEN_LOWBOX: u32 = 16384u32;
5087 pub const TOKEN_NOT_LOW: u32 = 8192u32;
5088 pub const TOKEN_NO_CHILD_PROCESS: u32 = 524288u32;
5089 pub const TOKEN_NO_CHILD_PROCESS_UNLESS_SECURE: u32 = 1048576u32;
5090 pub const TOKEN_PERMISSIVE_LEARNING_MODE: u32 = 50331648u32;
5091 pub const TOKEN_PRIVATE_NAMESPACE: u32 = 65536u32;
5092 pub const TOKEN_SANDBOX_INERT: u32 = 64u32;
5093 pub const TOKEN_SESSION_NOT_REFERENCED: u32 = 32u32;
5094 pub const TOKEN_UIACCESS: u32 = 4096u32;
5095 pub const TOKEN_VIRTUALIZE_ALLOWED: u32 = 512u32;
5096 pub const TOKEN_VIRTUALIZE_ENABLED: u32 = 1024u32;
5097 pub const TOKEN_WRITE_RESTRICTED: u32 = 8u32;
5098 #[repr(C)]
5099 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
5100 #[derive(Clone, Copy)]
5101 pub struct TUNNEL {
5102 pub Mutex: super::super::Foundation::FAST_MUTEX,
5103 pub Cache: *mut super::super::Foundation::RTL_SPLAY_LINKS,
5104 pub TimerQueue: super::super::super::Win32::System::Kernel::LIST_ENTRY,
5105 pub NumEntries: u16,
5106 }
5107 #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))]
5108 impl Default for TUNNEL {
5109 fn default() -> Self {
5110 unsafe { core::mem::zeroed() }
5111 }
5112 }
5113 #[repr(C)]
5114 #[cfg(feature = "Wdk_Foundation")]
5115 #[derive(Clone, Copy)]
5116 pub struct UNICODE_PREFIX_TABLE {
5117 pub NodeTypeCode: i16,
5118 pub NameLength: i16,
5119 pub NextPrefixTree: *mut UNICODE_PREFIX_TABLE_ENTRY,
5120 pub LastNextEntry: *mut UNICODE_PREFIX_TABLE_ENTRY,
5121 }
5122 #[cfg(feature = "Wdk_Foundation")]
5123 impl Default for UNICODE_PREFIX_TABLE {
5124 fn default() -> Self {
5125 unsafe { core::mem::zeroed() }
5126 }
5127 }
5128 #[repr(C)]
5129 #[cfg(feature = "Wdk_Foundation")]
5130 #[derive(Clone, Copy)]
5131 pub struct UNICODE_PREFIX_TABLE_ENTRY {
5132 pub NodeTypeCode: i16,
5133 pub NameLength: i16,
5134 pub NextPrefixTree: *mut UNICODE_PREFIX_TABLE_ENTRY,
5135 pub CaseMatch: *mut UNICODE_PREFIX_TABLE_ENTRY,
5136 pub Links: super::super::Foundation::RTL_SPLAY_LINKS,
5137 pub Prefix: *mut super::super::super::Win32::Foundation::UNICODE_STRING,
5138 }
5139 #[cfg(feature = "Wdk_Foundation")]
5140 impl Default for UNICODE_PREFIX_TABLE_ENTRY {
5141 fn default() -> Self {
5142 unsafe { core::mem::zeroed() }
5143 }
5144 }
5145 pub const UNINITIALIZE_CACHE_MAPS: u32 = 1u32;
5146 pub const USE_PRIMARY_PASSWORD: u32 = 1u32;
5147 pub const USN_DELETE_FLAG_DELETE: u32 = 1u32;
5148 #[repr(C)]
5149 #[derive(Clone, Copy, Default)]
5150 pub struct USN_JOURNAL_DATA {
5151 pub UsnJournalID: u64,
5152 pub FirstUsn: i64,
5153 pub NextUsn: i64,
5154 pub LowestValidUsn: i64,
5155 pub MaxUsn: i64,
5156 pub MaximumSize: u64,
5157 pub AllocationDelta: u64,
5158 pub MinSupportedMajorVersion: u16,
5159 pub MaxSupportedMajorVersion: u16,
5160 }
5161 #[repr(C)]
5162 #[derive(Clone, Copy)]
5163 pub struct USN_RECORD {
5164 pub RecordLength: u32,
5165 pub MajorVersion: u16,
5166 pub MinorVersion: u16,
5167 pub FileReferenceNumber: u64,
5168 pub ParentFileReferenceNumber: u64,
5169 pub Usn: i64,
5170 pub TimeStamp: i64,
5171 pub Reason: u32,
5172 pub SourceInfo: u32,
5173 pub SecurityId: u32,
5174 pub FileAttributes: u32,
5175 pub FileNameLength: u16,
5176 pub FileNameOffset: u16,
5177 pub FileName: [u16; 1],
5178 }
5179 impl Default for USN_RECORD {
5180 fn default() -> Self {
5181 unsafe { core::mem::zeroed() }
5182 }
5183 }
5184 pub const VACB_MAPPING_GRANULARITY: u32 = 262144u32;
5185 pub const VACB_OFFSET_SHIFT: u32 = 18u32;
5186 pub const VALID_INHERIT_FLAGS: u32 = 31u32;
5187 #[repr(C)]
5188 #[derive(Clone, Copy, Default)]
5189 pub struct VCN_RANGE_INPUT_BUFFER {
5190 pub StartingVcn: i64,
5191 pub ClusterCount: i64,
5192 }
5193 pub type VIRTUAL_MEMORY_INFORMATION_CLASS = i32;
5194 pub const VOLSNAPCONTROLTYPE: u32 = 83u32;
5195 #[repr(C)]
5196 #[derive(Clone, Copy, Default)]
5197 pub struct VOLUME_REFS_INFO_BUFFER {
5198 pub CacheSizeInBytes: i64,
5199 pub AllocatedCacheInBytes: i64,
5200 pub PopulatedCacheInBytes: i64,
5201 pub InErrorCacheInBytes: i64,
5202 pub MemoryUsedForCacheMetadata: i64,
5203 pub CacheLineSize: u32,
5204 pub CacheTransactionsOutstanding: i32,
5205 pub CacheLinesFree: i32,
5206 pub CacheLinesInError: i32,
5207 pub CacheHitsInBytes: i64,
5208 pub CacheMissesInBytes: i64,
5209 pub CachePopulationUpdatesInBytes: i64,
5210 pub CacheWriteThroughUpdatesInBytes: i64,
5211 pub CacheInvalidationsInBytes: i64,
5212 pub CacheOverReadsInBytes: i64,
5213 pub MetadataWrittenBytes: i64,
5214 pub CacheHitCounter: i32,
5215 pub CacheMissCounter: i32,
5216 pub CacheLineAllocationCounter: i32,
5217 pub CacheInvalidationsCounter: i32,
5218 pub CachePopulationUpdatesCounter: i32,
5219 pub CacheWriteThroughUpdatesCounter: i32,
5220 pub MaxCacheTransactionsOutstanding: i32,
5221 pub DataWritesReallocationCount: i32,
5222 pub DataInPlaceWriteCount: i32,
5223 pub MetadataAllocationsFastTierCount: i32,
5224 pub MetadataAllocationsSlowTierCount: i32,
5225 pub DataAllocationsFastTierCount: i32,
5226 pub DataAllocationsSlowTierCount: i32,
5227 pub DestagesSlowTierToFastTier: i32,
5228 pub DestagesFastTierToSlowTier: i32,
5229 pub SlowTierDataFillRatio: i32,
5230 pub FastTierDataFillRatio: i32,
5231 pub SlowTierMetadataFillRatio: i32,
5232 pub FastTierMetadataFillRatio: i32,
5233 pub SlowToFastDestageReadLatency: i32,
5234 pub SlowToFastDestageReadLatencyBase: i32,
5235 pub SlowToFastDestageWriteLatency: i32,
5236 pub SlowToFastDestageWriteLatencyBase: i32,
5237 pub FastToSlowDestageReadLatency: i32,
5238 pub FastToSlowDestageReadLatencyBase: i32,
5239 pub FastToSlowDestageWriteLatency: i32,
5240 pub FastToSlowDestageWriteLatencyBase: i32,
5241 pub SlowTierContainerFillRatio: i32,
5242 pub SlowTierContainerFillRatioBase: i32,
5243 pub FastTierContainerFillRatio: i32,
5244 pub FastTierContainerFillRatioBase: i32,
5245 pub TreeUpdateLatency: i32,
5246 pub TreeUpdateLatencyBase: i32,
5247 pub CheckpointLatency: i32,
5248 pub CheckpointLatencyBase: i32,
5249 pub TreeUpdateCount: i32,
5250 pub CheckpointCount: i32,
5251 pub LogWriteCount: i32,
5252 pub LogFillRatio: i32,
5253 pub ReadCacheInvalidationsForOverwrite: i32,
5254 pub ReadCacheInvalidationsForReuse: i32,
5255 pub ReadCacheInvalidationsGeneral: i32,
5256 pub ReadCacheChecksOnMount: i32,
5257 pub ReadCacheIssuesOnMount: i32,
5258 pub TrimLatency: i32,
5259 pub TrimLatencyBase: i32,
5260 pub DataCompactionCount: i32,
5261 pub CompactionReadLatency: i32,
5262 pub CompactionReadLatencyBase: i32,
5263 pub CompactionWriteLatency: i32,
5264 pub CompactionWriteLatencyBase: i32,
5265 pub DataInPlaceWriteClusterCount: i64,
5266 pub CompactionFailedDueToIneligibleContainer: i32,
5267 pub CompactionFailedDueToMaxFragmentation: i32,
5268 pub CompactedContainerFillRatio: i32,
5269 pub CompactedContainerFillRatioBase: i32,
5270 pub ContainerMoveRetryCount: i32,
5271 pub ContainerMoveFailedDueToIneligibleContainer: i32,
5272 pub CompactionFailureCount: i32,
5273 pub ContainerMoveFailureCount: i32,
5274 pub NumberOfDirtyMetadataPages: i64,
5275 pub NumberOfDirtyTableListEntries: i32,
5276 pub NumberOfDeleteQueueEntries: i32,
5277 }
5278 pub const VmPrefetchInformation: VIRTUAL_MEMORY_INFORMATION_CLASS = 0i32;
5279 pub const WCIFS_REDIRECTION_FLAGS_CREATE_SERVICED_FROM_LAYER: u32 = 1u32;
5280 pub const WCIFS_REDIRECTION_FLAGS_CREATE_SERVICED_FROM_REGISTERED_LAYER: u32 = 4u32;
5281 pub const WCIFS_REDIRECTION_FLAGS_CREATE_SERVICED_FROM_REMOTE_LAYER: u32 = 8u32;
5282 pub const WCIFS_REDIRECTION_FLAGS_CREATE_SERVICED_FROM_SCRATCH: u32 = 2u32;
5283 pub type _LCN_WEAK_REFERENCE_STATE = i32;
5284 pub type _REFS_STREAM_EXTENT_PROPERTIES = i32;