Debian Codegraph @

.cargo/vendor/windows-core/src/imp/bindings.rs

raw
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);
22 pub type BOOL = i32;
23 pub type BSTR = *const u16;
24 pub const ERROR_NO_UNICODE_TRANSLATION: WIN32_ERROR = 1113u32;
25 pub const E_INVALIDARG: HRESULT = -2147024809i32;
26 pub type FARPROC = ::core::option::Option<unsafe extern "system" fn() -> isize>;
27 pub const FORMAT_MESSAGE_ALLOCATE_BUFFER: FORMAT_MESSAGE_OPTIONS = 256u32;
28 pub const FORMAT_MESSAGE_FROM_SYSTEM: FORMAT_MESSAGE_OPTIONS = 4096u32;
29 pub const FORMAT_MESSAGE_IGNORE_INSERTS: FORMAT_MESSAGE_OPTIONS = 512u32;
30 pub type FORMAT_MESSAGE_OPTIONS = u32;
31 pub type HANDLE = isize;
32 pub type HEAP_FLAGS = u32;
33 pub type HMODULE = isize;
34 pub type HRESULT = i32;
35 pub type LOAD_LIBRARY_FLAGS = u32;
36 pub const LOAD_LIBRARY_SEARCH_DEFAULT_DIRS: LOAD_LIBRARY_FLAGS = 4096u32;
37 pub type PCSTR = *const u8;
38 pub type PCWSTR = *const u16;
39 pub type PWSTR = *mut u16;
40 #[repr(C)]
41 pub struct SECURITY_ATTRIBUTES {
42 pub nLength: u32,
43 pub lpSecurityDescriptor: *mut ::core::ffi::c_void,
44 pub bInheritHandle: BOOL,
45 }
46 impl ::core::marker::Copy for SECURITY_ATTRIBUTES {}
47 impl ::core::clone::Clone for SECURITY_ATTRIBUTES {
48 fn clone(&self) -> Self {
49 *self
50 }
51 }
52 pub type WAIT_EVENT = u32;
53 pub type WIN32_ERROR = u32;