@@ -299,8 +299,11 @@ pub const IMAGE_FILE_MACHINE_ARM64: DWORD = 0xAA64;
299299#[ cfg( feature = "backtrace" ) ]
300300pub const IMAGE_FILE_MACHINE_ARMNT : DWORD = 0x01c4 ;
301301
302+ #[ cfg( not( target_os = "uwp" ) ) ]
302303pub const EXCEPTION_CONTINUE_SEARCH : LONG = 0 ;
304+ #[ cfg( not( target_os = "uwp" ) ) ]
303305pub const EXCEPTION_STACK_OVERFLOW : DWORD = 0xc00000fd ;
306+ #[ cfg( not( target_os = "uwp" ) ) ]
304307pub const EXCEPTION_MAXIMUM_PARAMETERS : usize = 15 ;
305308
306309pub const PIPE_ACCESS_INBOUND : DWORD = 0x00000001 ;
@@ -502,6 +505,7 @@ pub struct REPARSE_MOUNTPOINT_DATA_BUFFER {
502505 pub ReparseTarget : WCHAR ,
503506}
504507
508+ #[ cfg( not( target_os = "uwp" ) ) ]
505509#[ repr( C ) ]
506510pub struct EXCEPTION_RECORD {
507511 pub ExceptionCode : DWORD ,
@@ -512,12 +516,14 @@ pub struct EXCEPTION_RECORD {
512516 pub ExceptionInformation : [ LPVOID ; EXCEPTION_MAXIMUM_PARAMETERS ]
513517}
514518
519+ #[ cfg( not( target_os = "uwp" ) ) ]
515520#[ repr( C ) ]
516521pub struct EXCEPTION_POINTERS {
517522 pub ExceptionRecord : * mut EXCEPTION_RECORD ,
518523 pub ContextRecord : * mut CONTEXT ,
519524}
520525
526+ #[ cfg( not( target_os = "uwp" ) ) ]
521527pub type PVECTORED_EXCEPTION_HANDLER = extern "system"
522528 fn ( ExceptionInfo : * mut EXCEPTION_POINTERS ) -> LONG ;
523529
@@ -1116,6 +1122,7 @@ extern "system" {
11161122 lpData : LPVOID ,
11171123 pbCancel : LPBOOL ,
11181124 dwCopyFlags : DWORD ) -> BOOL ;
1125+ #[ cfg( not( target_os = "uwp" ) ) ]
11191126 pub fn AddVectoredExceptionHandler ( FirstHandler : ULONG ,
11201127 VectoredHandler : PVECTORED_EXCEPTION_HANDLER )
11211128 -> LPVOID ;
@@ -1340,6 +1347,7 @@ compat_fn! {
13401347 _dwFlags: DWORD ) -> DWORD {
13411348 SetLastError ( ERROR_CALL_NOT_IMPLEMENTED as DWORD ) ; 0
13421349 }
1350+ #[ cfg( not( target_os = "uwp" ) ) ]
13431351 pub fn SetThreadStackGuarantee ( _size: * mut c_ulong) -> BOOL {
13441352 SetLastError ( ERROR_CALL_NOT_IMPLEMENTED as DWORD ) ; 0
13451353 }
0 commit comments