@@ -202,13 +202,13 @@ compat_fn_with_fallback! {
202
202
addresssize: usize ,
203
203
dwmilliseconds: u32
204
204
) -> BOOL {
205
- unimplemented! ( )
205
+ rtabort! ( "unimplemented" )
206
206
}
207
207
pub fn WakeByAddressSingle ( address: * const c_void) {
208
- unimplemented! ( )
208
+ rtabort! ( "unimplemented" )
209
209
}
210
210
pub fn WakeByAddressAll ( address: * const c_void) {
211
- unimplemented! ( )
211
+ rtabort! ( "unimplemented" )
212
212
}
213
213
}
214
214
@@ -303,7 +303,7 @@ compat_fn_with_fallback! {
303
303
shareaccess: u32 ,
304
304
openoptions: u32
305
305
) -> NTSTATUS {
306
- STATUS_NOT_IMPLEMENTED
306
+ rtabort! ( "unimplemented" )
307
307
}
308
308
}
309
309
@@ -318,33 +318,33 @@ compat_fn_with_fallback! {
318
318
hobjecttowaiton: HANDLE ,
319
319
dwmilliseconds: u32 ,
320
320
balertable: BOOL
321
- ) -> WAIT_EVENT { unimplemented! ( ) }
321
+ ) -> WAIT_EVENT { rtabort! ( "unimplemented" ) }
322
322
// >= NT 4
323
323
// https://learn.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-tryentercriticalsection
324
324
pub fn TryEnterCriticalSection ( lpcriticalsection: * mut CRITICAL_SECTION ) -> BOOL {
325
- unimplemented! ( )
325
+ rtabort! ( "unimplemented" )
326
326
}
327
327
// >= Win7 / Server 2008 R2
328
328
// https://learn.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-tryacquiresrwlockexclusive
329
- pub fn TryAcquireSRWLockExclusive ( srwlock: * mut SRWLOCK ) -> BOOLEAN { unimplemented! ( ) }
330
- pub fn TryAcquireSRWLockShared ( srwlock: * mut SRWLOCK ) -> BOOLEAN { unimplemented! ( ) }
329
+ pub fn TryAcquireSRWLockExclusive ( srwlock: * mut SRWLOCK ) -> BOOLEAN { rtabort! ( "unimplemented" ) }
330
+ pub fn TryAcquireSRWLockShared ( srwlock: * mut SRWLOCK ) -> BOOLEAN { rtabort! ( "unimplemented" ) }
331
331
// >= Vista / Server 2008
332
332
// https://learn.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-acquiresrwlockexclusive
333
- pub fn AcquireSRWLockExclusive ( srwlock: * mut SRWLOCK ) -> ( ) { unimplemented! ( ) }
334
- pub fn AcquireSRWLockShared ( srwlock: * mut SRWLOCK ) -> ( ) { unimplemented! ( ) }
335
- pub fn ReleaseSRWLockExclusive ( srwlock: * mut SRWLOCK ) -> ( ) { unimplemented! ( ) }
336
- pub fn ReleaseSRWLockShared ( srwlock: * mut SRWLOCK ) -> ( ) { unimplemented! ( ) }
333
+ pub fn AcquireSRWLockExclusive ( srwlock: * mut SRWLOCK ) -> ( ) { rtabort! ( "unimplemented" ) }
334
+ pub fn AcquireSRWLockShared ( srwlock: * mut SRWLOCK ) -> ( ) { rtabort! ( "unimplemented" ) }
335
+ pub fn ReleaseSRWLockExclusive ( srwlock: * mut SRWLOCK ) -> ( ) { rtabort! ( "unimplemented" ) }
336
+ pub fn ReleaseSRWLockShared ( srwlock: * mut SRWLOCK ) -> ( ) { rtabort! ( "unimplemented" ) }
337
337
pub fn SleepConditionVariableSRW (
338
338
conditionvariable: * mut CONDITION_VARIABLE ,
339
339
srwlock: * mut SRWLOCK ,
340
340
dwmilliseconds: u32 ,
341
341
flags: u32 ,
342
- ) -> BOOL { unimplemented! ( ) }
342
+ ) -> BOOL { rtabort! ( "unimplemented" ) }
343
343
pub fn WakeAllConditionVariable ( conditionvariable: * mut CONDITION_VARIABLE ) -> ( ) {
344
- unimplemented! ( )
344
+ rtabort! ( "unimplemented" )
345
345
}
346
346
pub fn WakeConditionVariable ( conditionvariable: * mut CONDITION_VARIABLE ) -> ( ) {
347
- unimplemented! ( )
347
+ rtabort! ( "unimplemented" )
348
348
}
349
349
}
350
350
@@ -482,7 +482,7 @@ compat_fn_with_fallback! {
482
482
cchfilepath: u32 ,
483
483
dwflags: GETFINALPATHNAMEBYHANDLE_FLAGS
484
484
) -> u32 {
485
- unimplemented! ( )
485
+ rtabort! ( "unimplemented" )
486
486
}
487
487
// >= 2000
488
488
// https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createhardlinkw
@@ -505,7 +505,7 @@ compat_fn_with_fallback! {
505
505
randombuffer: * mut core:: ffi:: c_void,
506
506
randombufferlength: u32
507
507
) -> BOOLEAN {
508
- unimplemented! ( )
508
+ rtabort! ( "unimplemented" )
509
509
}
510
510
511
511
// >= NT 4.0 / Windows 95 OSR2 / Windows 95 with IE 3.02
@@ -517,13 +517,13 @@ compat_fn_with_fallback! {
517
517
dwprovtype: u32 ,
518
518
dwflags: u32
519
519
) -> BOOL {
520
- unimplemented! ( )
520
+ rtabort! ( "unimplemented" )
521
521
}
522
522
pub fn CryptReleaseContext ( hprov: usize , dwflags: u32 ) -> BOOL {
523
- unimplemented! ( )
523
+ rtabort! ( "unimplemented" )
524
524
}
525
525
pub fn CryptGenRandom ( hprov: usize , dwlen: u32 , pbbuffer: * mut u8 ) -> BOOL {
526
- unimplemented! ( )
526
+ rtabort! ( "unimplemented" )
527
527
}
528
528
}
529
529
#[ cfg( target_vendor = "rust9x" ) ]
@@ -630,7 +630,7 @@ compat_fn_with_fallback! {
630
630
dwflags: u32 ,
631
631
lpsize: * mut usize
632
632
) -> BOOL {
633
- unimplemented! ( )
633
+ rtabort! ( "unimplemented" )
634
634
}
635
635
// >= Vista / Server 2008
636
636
pub fn UpdateProcThreadAttribute (
@@ -642,11 +642,11 @@ compat_fn_with_fallback! {
642
642
lppreviousvalue: * mut core:: ffi:: c_void,
643
643
lpreturnsize: * const usize
644
644
) -> BOOL {
645
- unimplemented! ( )
645
+ rtabort! ( "unimplemented" )
646
646
}
647
647
// >= Vista / Server 2008
648
648
pub fn DeleteProcThreadAttributeList ( lpattributelist: LPPROC_THREAD_ATTRIBUTE_LIST ) {
649
- unimplemented! ( )
649
+ rtabort! ( "unimplemented" )
650
650
}
651
651
}
652
652
@@ -673,7 +673,7 @@ compat_fn_with_fallback! {
673
673
cchcount2: i32 ,
674
674
bignorecase: BOOL ,
675
675
) -> COMPARESTRING_RESULT {
676
- unimplemented! ( )
676
+ rtabort! ( "unimplemented" )
677
677
}
678
678
}
679
679
0 commit comments