Rollup merge of #138276 - bdbai:fix-uwp-ntopenfile, r=ChrisDenton
Lazy load NtOpenFile for UWP Lazily load `NtOpenFile` to allow libraries targeting UWP to build and link. Fixes #138257 . r? `@ChrisDenton`
This commit is contained in:
commit
33530e4cb9
1 changed files with 11 additions and 0 deletions
|
@ -237,6 +237,17 @@ compat_fn_with_fallback! {
|
|||
STATUS_NOT_IMPLEMENTED
|
||||
}
|
||||
#[cfg(target_vendor = "uwp")]
|
||||
pub fn NtOpenFile(
|
||||
filehandle: *mut HANDLE,
|
||||
desiredaccess: u32,
|
||||
objectattributes: *const OBJECT_ATTRIBUTES,
|
||||
iostatusblock: *mut IO_STATUS_BLOCK,
|
||||
shareaccess: u32,
|
||||
openoptions: u32
|
||||
) -> NTSTATUS {
|
||||
STATUS_NOT_IMPLEMENTED
|
||||
}
|
||||
#[cfg(target_vendor = "uwp")]
|
||||
pub fn NtReadFile(
|
||||
filehandle: HANDLE,
|
||||
event: HANDLE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue