Debian Codegraph @

third_party/rust/windows-strings/src/bindings.rs

raw
1 #![allow(
2 non_snake_case,
3 non_upper_case_globals,
4 non_camel_case_types,
5 dead_code,
6 clippy::all
7 )]
8 windows_targets::link!("kernel32.dll" "system" fn GetProcessHeap() -> HANDLE);
9 windows_targets::link!("kernel32.dll" "system" fn HeapAlloc(hheap : HANDLE, dwflags : HEAP_FLAGS, dwbytes : usize) -> *mut core::ffi::c_void);
10 windows_targets::link!("kernel32.dll" "system" fn HeapFree(hheap : HANDLE, dwflags : HEAP_FLAGS, lpmem : *const core::ffi::c_void) -> BOOL);
11 windows_targets::link!("oleaut32.dll" "system" fn SysAllocStringLen(strin : PCWSTR, ui : u32) -> BSTR);
12 windows_targets::link!("oleaut32.dll" "system" fn SysFreeString(bstrstring : BSTR));
13 windows_targets::link!("oleaut32.dll" "system" fn SysStringLen(pbstr : BSTR) -> u32);
14 pub type BOOL = i32;
15 pub type BSTR = *const u16;
16 pub const E_OUTOFMEMORY: HRESULT = 0x8007000E_u32 as _;
17 pub type HANDLE = *mut core::ffi::c_void;
18 pub type HEAP_FLAGS = u32;
19 pub type HRESULT = i32;
20 pub type PCWSTR = *const u16;