Skip to content

Commit f424ec1

Browse files
authored
Unrolled build for rust-lang#138276
Rollup merge of rust-lang#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 rust-lang#138257 . r? `@ChrisDenton`
2 parents 385970f + 33c6c3a commit f424ec1

File tree

1 file changed

+11
-0
lines changed
  • library/std/src/sys/pal/windows

1 file changed

+11
-0
lines changed

library/std/src/sys/pal/windows/c.rs

+11
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,17 @@ compat_fn_with_fallback! {
237237
STATUS_NOT_IMPLEMENTED
238238
}
239239
#[cfg(target_vendor = "uwp")]
240+
pub fn NtOpenFile(
241+
filehandle: *mut HANDLE,
242+
desiredaccess: u32,
243+
objectattributes: *const OBJECT_ATTRIBUTES,
244+
iostatusblock: *mut IO_STATUS_BLOCK,
245+
shareaccess: u32,
246+
openoptions: u32
247+
) -> NTSTATUS {
248+
STATUS_NOT_IMPLEMENTED
249+
}
250+
#[cfg(target_vendor = "uwp")]
240251
pub fn NtReadFile(
241252
filehandle: HANDLE,
242253
event: HANDLE,

0 commit comments

Comments
 (0)