1// Bindings generated by `windows-bindgen` 0.52.0
2
3#![allow(non_snake_case, non_upper_case_globals, non_camel_case_types, dead_code, clippy::all)]
4::windows_targets::link!("kernel32.dll" "system" fn CloseHandle(hobject : HANDLE) -> BOOL);
5::windows_targets::link!("kernel32.dll" "system" fn CreateEventW(lpeventattributes : *const SECURITY_ATTRIBUTES, bmanualreset : BOOL, binitialstate : BOOL, lpname : PCWSTR) -> HANDLE);
6::windows_targets::link!("kernel32.dll" "system" fn EncodePointer(ptr : *const ::core::ffi::c_void) -> *mut ::core::ffi::c_void);
7::windows_targets::link!("kernel32.dll" "system" fn FormatMessageW(dwflags : FORMAT_MESSAGE_OPTIONS, lpsource : *const ::core::ffi::c_void, dwmessageid : u32, dwlanguageid : u32, lpbuffer : PWSTR, nsize : u32, arguments : *const *const i8) -> u32);
8::windows_targets::link!("kernel32.dll" "system" fn FreeLibrary(hlibmodule : HMODULE) -> BOOL);
9::windows_targets::link!("kernel32.dll" "system" fn GetLastError() -> WIN32_ERROR);
10::windows_targets::link!("kernel32.dll" "system" fn GetProcAddress(hmodule : HMODULE, lpprocname : PCSTR) -> FARPROC);
11::windows_targets::link!("kernel32.dll" "system" fn GetProcessHeap() -> HANDLE);
12::windows_targets::link!("kernel32.dll" "system" fn HeapAlloc(hheap : HANDLE, dwflags : HEAP_FLAGS, dwbytes : usize) -> *mut ::core::ffi::c_void);
13::windows_targets::link!("kernel32.dll" "system" fn HeapFree(hheap : HANDLE, dwflags : HEAP_FLAGS, lpmem : *const ::core::ffi::c_void) -> BOOL);
14::windows_targets::link!("kernel32.dll" "system" fn LoadLibraryExA(lplibfilename : PCSTR, hfile : HANDLE, dwflags : LOAD_LIBRARY_FLAGS) -> HMODULE);
15::windows_targets::link!("kernel32.dll" "system" fn SetEvent(hevent : HANDLE) -> BOOL);
16::windows_targets::link!("kernel32.dll" "system" fn WaitForSingleObject(hhandle : HANDLE, dwmilliseconds : u32) -> WAIT_EVENT);
17::windows_targets::link!("ole32.dll" "system" fn CoTaskMemAlloc(cb : usize) -> *mut ::core::ffi::c_void);
18::windows_targets::link!("ole32.dll" "system" fn CoTaskMemFree(pv : *const ::core::ffi::c_void) -> ());
19::windows_targets::link!("oleaut32.dll" "system" fn SysAllocStringLen(strin : PCWSTR, ui : u32) -> BSTR);
20::windows_targets::link!("oleaut32.dll" "system" fn SysFreeString(bstrstring : BSTR) -> ());
21::windows_targets::link!("oleaut32.dll" "system" fn SysStringLen(pbstr : BSTR) -> u32);
22pub type BOOL = i32;
23pub type BSTR = *const u16;
24pub const ERROR_NO_UNICODE_TRANSLATION: WIN32_ERROR = 1113u32;
25pub const E_INVALIDARG: HRESULT = -2147024809i32;
26pub type FARPROC = ::core::option::Option<unsafe extern "system" fn() -> isize>;
27pub const FORMAT_MESSAGE_ALLOCATE_BUFFER: FORMAT_MESSAGE_OPTIONS = 256u32;
28pub const FORMAT_MESSAGE_FROM_SYSTEM: FORMAT_MESSAGE_OPTIONS = 4096u32;
29pub const FORMAT_MESSAGE_IGNORE_INSERTS: FORMAT_MESSAGE_OPTIONS = 512u32;
30pub type FORMAT_MESSAGE_OPTIONS = u32;
31pub type HANDLE = isize;
32pub type HEAP_FLAGS = u32;
33pub type HMODULE = isize;
34pub type HRESULT = i32;
35pub type LOAD_LIBRARY_FLAGS = u32;
36pub const LOAD_LIBRARY_SEARCH_DEFAULT_DIRS: LOAD_LIBRARY_FLAGS = 4096u32;
37pub type PCSTR = *const u8;
38pub type PCWSTR = *const u16;
39pub type PWSTR = *mut u16;
40#[repr(C)]
41pub struct SECURITY_ATTRIBUTES {
42 pub nLength: u32,
43 pub lpSecurityDescriptor: *mut ::core::ffi::c_void,
44 pub bInheritHandle: BOOL,
45}
46impl ::core::marker::Copy for SECURITY_ATTRIBUTES {}
47impl ::core::clone::Clone for SECURITY_ATTRIBUTES {
48 fn clone(&self) -> Self {
49 *self
50 }
51}
52pub type WAIT_EVENT = u32;
53pub type WIN32_ERROR = u32;
54

Provided by KDAB

Privacy Policy