1 // Licensed under the Apache License, Version 2.0 2 // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 3 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option. 4 // All files in the project carrying such notice may not be copied, modified, or distributed 5 // except according to those terms. 6 use shared::minwindef::{BOOL, DWORD}; 7 use shared::ntdef::PVOID; 8 extern "system" { EncodePointer( Ptr: PVOID, ) -> PVOID9 pub fn EncodePointer( 10 Ptr: PVOID, 11 ) -> PVOID; DecodePointer( Ptr: PVOID, ) -> PVOID12 pub fn DecodePointer( 13 Ptr: PVOID, 14 ) -> PVOID; EncodeSystemPointer( Ptr: PVOID, ) -> PVOID15 pub fn EncodeSystemPointer( 16 Ptr: PVOID, 17 ) -> PVOID; DecodeSystemPointer( Ptr: PVOID, ) -> PVOID18 pub fn DecodeSystemPointer( 19 Ptr: PVOID, 20 ) -> PVOID; Beep( dwFreq: DWORD, dwDuration: DWORD, ) -> BOOL21 pub fn Beep( 22 dwFreq: DWORD, 23 dwDuration: DWORD, 24 ) -> BOOL; 25 } 26