From a4b7ed7a42c716ab9f05e351f003d589124fd55d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:18:58 +0200 Subject: Adding upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../src/Windows/Win32/System/Threading/mod.rs | 1399 ++++++++------------ 1 file changed, 551 insertions(+), 848 deletions(-) (limited to 'vendor/windows-sys/src/Windows/Win32/System/Threading') diff --git a/vendor/windows-sys/src/Windows/Win32/System/Threading/mod.rs b/vendor/windows-sys/src/Windows/Win32/System/Threading/mod.rs index 19c220fb1..d3733a39b 100644 --- a/vendor/windows-sys/src/Windows/Win32/System/Threading/mod.rs +++ b/vendor/windows-sys/src/Windows/Win32/System/Threading/mod.rs @@ -1,839 +1,538 @@ -#[cfg_attr(windows, link(name = "windows"))] -extern "system" { - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn AcquireSRWLockExclusive(srwlock: *mut RTL_SRWLOCK); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn AcquireSRWLockShared(srwlock: *mut RTL_SRWLOCK); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AddIntegrityLabelToBoundaryDescriptor(boundarydescriptor: *mut super::super::Foundation::HANDLE, integritylabel: super::super::Foundation::PSID) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AddSIDToBoundaryDescriptor(boundarydescriptor: *mut super::super::Foundation::HANDLE, requiredsid: super::super::Foundation::PSID) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AttachThreadInput(idattach: u32, idattachto: u32, fattach: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AvQuerySystemResponsiveness(avrthandle: super::super::Foundation::HANDLE, systemresponsivenessvalue: *mut u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AvRevertMmThreadCharacteristics(avrthandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AvRtCreateThreadOrderingGroup(context: *mut super::super::Foundation::HANDLE, period: *const i64, threadorderingguid: *mut ::windows_sys::core::GUID, timeout: *const i64) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AvRtCreateThreadOrderingGroupExA(context: *mut super::super::Foundation::HANDLE, period: *const i64, threadorderingguid: *mut ::windows_sys::core::GUID, timeout: *const i64, taskname: ::windows_sys::core::PCSTR) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AvRtCreateThreadOrderingGroupExW(context: *mut super::super::Foundation::HANDLE, period: *const i64, threadorderingguid: *mut ::windows_sys::core::GUID, timeout: *const i64, taskname: ::windows_sys::core::PCWSTR) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AvRtDeleteThreadOrderingGroup(context: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AvRtJoinThreadOrderingGroup(context: *mut super::super::Foundation::HANDLE, threadorderingguid: *const ::windows_sys::core::GUID, before: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AvRtLeaveThreadOrderingGroup(context: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AvRtWaitOnThreadOrderingGroup(context: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AvSetMmMaxThreadCharacteristicsA(firsttask: ::windows_sys::core::PCSTR, secondtask: ::windows_sys::core::PCSTR, taskindex: *mut u32) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AvSetMmMaxThreadCharacteristicsW(firsttask: ::windows_sys::core::PCWSTR, secondtask: ::windows_sys::core::PCWSTR, taskindex: *mut u32) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AvSetMmThreadCharacteristicsA(taskname: ::windows_sys::core::PCSTR, taskindex: *mut u32) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AvSetMmThreadCharacteristicsW(taskname: ::windows_sys::core::PCWSTR, taskindex: *mut u32) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AvSetMmThreadPriority(avrthandle: super::super::Foundation::HANDLE, priority: AVRT_PRIORITY) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn CallbackMayRunLong(pci: *mut TP_CALLBACK_INSTANCE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn CancelThreadpoolIo(pio: *mut TP_IO); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn CancelWaitableTimer(htimer: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ChangeTimerQueueTimer(timerqueue: super::super::Foundation::HANDLE, timer: super::super::Foundation::HANDLE, duetime: u32, period: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ClosePrivateNamespace(handle: NamespaceHandle, flags: u32) -> super::super::Foundation::BOOLEAN; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn CloseThreadpool(ptpp: PTP_POOL); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn CloseThreadpoolCleanupGroup(ptpcg: isize); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn CloseThreadpoolCleanupGroupMembers(ptpcg: isize, fcancelpendingcallbacks: super::super::Foundation::BOOL, pvcleanupcontext: *mut ::core::ffi::c_void); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn CloseThreadpoolIo(pio: *mut TP_IO); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn CloseThreadpoolTimer(pti: *mut TP_TIMER); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn CloseThreadpoolWait(pwa: *mut TP_WAIT); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn CloseThreadpoolWork(pwk: *mut TP_WORK); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ConvertFiberToThread() -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn ConvertThreadToFiber(lpparameter: *const ::core::ffi::c_void) -> *mut ::core::ffi::c_void; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn ConvertThreadToFiberEx(lpparameter: *const ::core::ffi::c_void, dwflags: u32) -> *mut ::core::ffi::c_void; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn CreateBoundaryDescriptorA(name: ::windows_sys::core::PCSTR, flags: u32) -> BoundaryDescriptorHandle; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn CreateBoundaryDescriptorW(name: ::windows_sys::core::PCWSTR, flags: u32) -> BoundaryDescriptorHandle; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateEventA(lpeventattributes: *const super::super::Security::SECURITY_ATTRIBUTES, bmanualreset: super::super::Foundation::BOOL, binitialstate: super::super::Foundation::BOOL, lpname: ::windows_sys::core::PCSTR) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateEventExA(lpeventattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpname: ::windows_sys::core::PCSTR, dwflags: CREATE_EVENT, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateEventExW(lpeventattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpname: ::windows_sys::core::PCWSTR, dwflags: CREATE_EVENT, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateEventW(lpeventattributes: *const super::super::Security::SECURITY_ATTRIBUTES, bmanualreset: super::super::Foundation::BOOL, binitialstate: super::super::Foundation::BOOL, lpname: ::windows_sys::core::PCWSTR) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn CreateFiber(dwstacksize: usize, lpstartaddress: LPFIBER_START_ROUTINE, lpparameter: *const ::core::ffi::c_void) -> *mut ::core::ffi::c_void; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn CreateFiberEx(dwstackcommitsize: usize, dwstackreservesize: usize, dwflags: u32, lpstartaddress: LPFIBER_START_ROUTINE, lpparameter: *const ::core::ffi::c_void) -> *mut ::core::ffi::c_void; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateMutexA(lpmutexattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binitialowner: super::super::Foundation::BOOL, lpname: ::windows_sys::core::PCSTR) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateMutexExA(lpmutexattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpname: ::windows_sys::core::PCSTR, dwflags: u32, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateMutexExW(lpmutexattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpname: ::windows_sys::core::PCWSTR, dwflags: u32, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateMutexW(lpmutexattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binitialowner: super::super::Foundation::BOOL, lpname: ::windows_sys::core::PCWSTR) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreatePrivateNamespaceA(lpprivatenamespaceattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpboundarydescriptor: *const ::core::ffi::c_void, lpaliasprefix: ::windows_sys::core::PCSTR) -> NamespaceHandle; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreatePrivateNamespaceW(lpprivatenamespaceattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpboundarydescriptor: *const ::core::ffi::c_void, lpaliasprefix: ::windows_sys::core::PCWSTR) -> NamespaceHandle; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateProcessA(lpapplicationname: ::windows_sys::core::PCSTR, lpcommandline: ::windows_sys::core::PSTR, lpprocessattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binherithandles: super::super::Foundation::BOOL, dwcreationflags: PROCESS_CREATION_FLAGS, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: ::windows_sys::core::PCSTR, lpstartupinfo: *const STARTUPINFOA, lpprocessinformation: *mut PROCESS_INFORMATION) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateProcessAsUserA(htoken: super::super::Foundation::HANDLE, lpapplicationname: ::windows_sys::core::PCSTR, lpcommandline: ::windows_sys::core::PSTR, lpprocessattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binherithandles: super::super::Foundation::BOOL, dwcreationflags: u32, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: ::windows_sys::core::PCSTR, lpstartupinfo: *const STARTUPINFOA, lpprocessinformation: *mut PROCESS_INFORMATION) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateProcessAsUserW(htoken: super::super::Foundation::HANDLE, lpapplicationname: ::windows_sys::core::PCWSTR, lpcommandline: ::windows_sys::core::PWSTR, lpprocessattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binherithandles: super::super::Foundation::BOOL, dwcreationflags: u32, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: ::windows_sys::core::PCWSTR, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateProcessW(lpapplicationname: ::windows_sys::core::PCWSTR, lpcommandline: ::windows_sys::core::PWSTR, lpprocessattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binherithandles: super::super::Foundation::BOOL, dwcreationflags: PROCESS_CREATION_FLAGS, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: ::windows_sys::core::PCWSTR, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn CreateProcessWithLogonW(lpusername: ::windows_sys::core::PCWSTR, lpdomain: ::windows_sys::core::PCWSTR, lppassword: ::windows_sys::core::PCWSTR, dwlogonflags: CREATE_PROCESS_LOGON_FLAGS, lpapplicationname: ::windows_sys::core::PCWSTR, lpcommandline: ::windows_sys::core::PWSTR, dwcreationflags: u32, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: ::windows_sys::core::PCWSTR, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn CreateProcessWithTokenW(htoken: super::super::Foundation::HANDLE, dwlogonflags: CREATE_PROCESS_LOGON_FLAGS, lpapplicationname: ::windows_sys::core::PCWSTR, lpcommandline: ::windows_sys::core::PWSTR, dwcreationflags: u32, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: ::windows_sys::core::PCWSTR, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateRemoteThread(hprocess: super::super::Foundation::HANDLE, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, dwstacksize: usize, lpstartaddress: LPTHREAD_START_ROUTINE, lpparameter: *const ::core::ffi::c_void, dwcreationflags: u32, lpthreadid: *mut u32) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateRemoteThreadEx(hprocess: super::super::Foundation::HANDLE, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, dwstacksize: usize, lpstartaddress: LPTHREAD_START_ROUTINE, lpparameter: *const ::core::ffi::c_void, dwcreationflags: u32, lpattributelist: LPPROC_THREAD_ATTRIBUTE_LIST, lpthreadid: *mut u32) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateSemaphoreA(lpsemaphoreattributes: *const super::super::Security::SECURITY_ATTRIBUTES, linitialcount: i32, lmaximumcount: i32, lpname: ::windows_sys::core::PCSTR) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateSemaphoreExA(lpsemaphoreattributes: *const super::super::Security::SECURITY_ATTRIBUTES, linitialcount: i32, lmaximumcount: i32, lpname: ::windows_sys::core::PCSTR, dwflags: u32, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateSemaphoreExW(lpsemaphoreattributes: *const super::super::Security::SECURITY_ATTRIBUTES, linitialcount: i32, lmaximumcount: i32, lpname: ::windows_sys::core::PCWSTR, dwflags: u32, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateSemaphoreW(lpsemaphoreattributes: *const super::super::Security::SECURITY_ATTRIBUTES, linitialcount: i32, lmaximumcount: i32, lpname: ::windows_sys::core::PCWSTR) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateThread(lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, dwstacksize: usize, lpstartaddress: LPTHREAD_START_ROUTINE, lpparameter: *const ::core::ffi::c_void, dwcreationflags: THREAD_CREATION_FLAGS, lpthreadid: *mut u32) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn CreateThreadpool(reserved: *mut ::core::ffi::c_void) -> PTP_POOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn CreateThreadpoolCleanupGroup() -> isize; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn CreateThreadpoolIo(fl: super::super::Foundation::HANDLE, pfnio: PTP_WIN32_IO_CALLBACK, pv: *mut ::core::ffi::c_void, pcbe: *const TP_CALLBACK_ENVIRON_V3) -> *mut TP_IO; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn CreateThreadpoolTimer(pfnti: PTP_TIMER_CALLBACK, pv: *mut ::core::ffi::c_void, pcbe: *const TP_CALLBACK_ENVIRON_V3) -> *mut TP_TIMER; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn CreateThreadpoolWait(pfnwa: PTP_WAIT_CALLBACK, pv: *mut ::core::ffi::c_void, pcbe: *const TP_CALLBACK_ENVIRON_V3) -> *mut TP_WAIT; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn CreateThreadpoolWork(pfnwk: PTP_WORK_CALLBACK, pv: *mut ::core::ffi::c_void, pcbe: *const TP_CALLBACK_ENVIRON_V3) -> *mut TP_WORK; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn CreateTimerQueue() -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn CreateTimerQueueTimer(phnewtimer: *mut super::super::Foundation::HANDLE, timerqueue: super::super::Foundation::HANDLE, callback: WAITORTIMERCALLBACK, parameter: *const ::core::ffi::c_void, duetime: u32, period: u32, flags: WORKER_THREAD_FLAGS) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn CreateUmsCompletionList(umscompletionlist: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn CreateUmsThreadContext(lpumsthread: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateWaitableTimerExW(lptimerattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lptimername: ::windows_sys::core::PCWSTR, dwflags: u32, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn CreateWaitableTimerW(lptimerattributes: *const super::super::Security::SECURITY_ATTRIBUTES, bmanualreset: super::super::Foundation::BOOL, lptimername: ::windows_sys::core::PCWSTR) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn DeleteBoundaryDescriptor(boundarydescriptor: BoundaryDescriptorHandle); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] - pub fn DeleteCriticalSection(lpcriticalsection: *mut RTL_CRITICAL_SECTION); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn DeleteFiber(lpfiber: *const ::core::ffi::c_void); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn DeleteProcThreadAttributeList(lpattributelist: LPPROC_THREAD_ATTRIBUTE_LIST); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DeleteSynchronizationBarrier(lpbarrier: *mut RTL_BARRIER) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DeleteTimerQueue(timerqueue: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DeleteTimerQueueEx(timerqueue: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DeleteTimerQueueTimer(timerqueue: super::super::Foundation::HANDLE, timer: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DeleteUmsCompletionList(umscompletionlist: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DeleteUmsThreadContext(umsthread: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DequeueUmsCompletionListItems(umscompletionlist: *const ::core::ffi::c_void, waittimeout: u32, umsthreadlist: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn DisassociateCurrentThreadFromCallback(pci: *mut TP_CALLBACK_INSTANCE); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] - pub fn EnterCriticalSection(lpcriticalsection: *mut RTL_CRITICAL_SECTION); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn EnterSynchronizationBarrier(lpbarrier: *mut RTL_BARRIER, dwflags: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemServices\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemServices"))] - pub fn EnterUmsSchedulingMode(schedulerstartupinfo: *const UMS_SCHEDULER_STARTUP_INFO) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ExecuteUmsThread(umsthread: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn ExitProcess(uexitcode: u32) -> !; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn ExitThread(dwexitcode: u32) -> !; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn FlsAlloc(lpcallback: PFLS_CALLBACK_FUNCTION) -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn FlsFree(dwflsindex: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn FlsGetValue(dwflsindex: u32) -> *mut ::core::ffi::c_void; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn FlsSetValue(dwflsindex: u32, lpflsdata: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn FlushProcessWriteBuffers(); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn FreeLibraryWhenCallbackReturns(pci: *mut TP_CALLBACK_INSTANCE, r#mod: super::super::Foundation::HINSTANCE); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn GetActiveProcessorCount(groupnumber: u16) -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn GetActiveProcessorGroupCount() -> u16; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetCurrentProcess() -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn GetCurrentProcessId() -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn GetCurrentProcessorNumber() -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(feature = "Win32_System_Kernel")] - pub fn GetCurrentProcessorNumberEx(procnumber: *mut super::Kernel::PROCESSOR_NUMBER); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetCurrentThread() -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn GetCurrentThreadId() -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn GetCurrentThreadStackLimits(lowlimit: *mut usize, highlimit: *mut usize); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn GetCurrentUmsThread() -> *mut ::core::ffi::c_void; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetExitCodeProcess(hprocess: super::super::Foundation::HANDLE, lpexitcode: *mut u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetExitCodeThread(hthread: super::super::Foundation::HANDLE, lpexitcode: *mut u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetGuiResources(hprocess: super::super::Foundation::HANDLE, uiflags: GET_GUI_RESOURCES_FLAGS) -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn GetMachineTypeAttributes(machine: u16, machinetypeattributes: *mut MACHINE_ATTRIBUTES) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn GetMaximumProcessorCount(groupnumber: u16) -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn GetMaximumProcessorGroupCount() -> u16; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn GetNextUmsListItem(umscontext: *mut ::core::ffi::c_void) -> *mut ::core::ffi::c_void; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetNumaAvailableMemoryNode(node: u8, availablebytes: *mut u64) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetNumaAvailableMemoryNodeEx(node: u16, availablebytes: *mut u64) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetNumaHighestNodeNumber(highestnodenumber: *mut u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetNumaNodeNumberFromHandle(hfile: super::super::Foundation::HANDLE, nodenumber: *mut u16) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetNumaNodeProcessorMask(node: u8, processormask: *mut u64) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] - pub fn GetNumaNodeProcessorMask2(nodenumber: u16, processormasks: *mut super::SystemInformation::GROUP_AFFINITY, processormaskcount: u16, requiredmaskcount: *mut u16) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] - pub fn GetNumaNodeProcessorMaskEx(node: u16, processormask: *mut super::SystemInformation::GROUP_AFFINITY) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetNumaProcessorNode(processor: u8, nodenumber: *mut u8) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] - pub fn GetNumaProcessorNodeEx(processor: *const super::Kernel::PROCESSOR_NUMBER, nodenumber: *mut u16) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetNumaProximityNode(proximityid: u32, nodenumber: *mut u8) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetNumaProximityNodeEx(proximityid: u32, nodenumber: *mut u16) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetPriorityClass(hprocess: super::super::Foundation::HANDLE) -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetProcessAffinityMask(hprocess: super::super::Foundation::HANDLE, lpprocessaffinitymask: *mut usize, lpsystemaffinitymask: *mut usize) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetProcessDEPPolicy(hprocess: super::super::Foundation::HANDLE, lpflags: *mut u32, lppermanent: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] - pub fn GetProcessDefaultCpuSetMasks(process: super::super::Foundation::HANDLE, cpusetmasks: *mut super::SystemInformation::GROUP_AFFINITY, cpusetmaskcount: u16, requiredmaskcount: *mut u16) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetProcessDefaultCpuSets(process: super::super::Foundation::HANDLE, cpusetids: *mut u32, cpusetidcount: u32, requiredidcount: *mut u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetProcessGroupAffinity(hprocess: super::super::Foundation::HANDLE, groupcount: *mut u16, grouparray: *mut u16) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetProcessHandleCount(hprocess: super::super::Foundation::HANDLE, pdwhandlecount: *mut u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetProcessId(process: super::super::Foundation::HANDLE) -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetProcessIdOfThread(thread: super::super::Foundation::HANDLE) -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetProcessInformation(hprocess: super::super::Foundation::HANDLE, processinformationclass: PROCESS_INFORMATION_CLASS, processinformation: *mut ::core::ffi::c_void, processinformationsize: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetProcessIoCounters(hprocess: super::super::Foundation::HANDLE, lpiocounters: *mut IO_COUNTERS) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetProcessMitigationPolicy(hprocess: super::super::Foundation::HANDLE, mitigationpolicy: PROCESS_MITIGATION_POLICY, lpbuffer: *mut ::core::ffi::c_void, dwlength: usize) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetProcessPriorityBoost(hprocess: super::super::Foundation::HANDLE, pdisablepriorityboost: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetProcessShutdownParameters(lpdwlevel: *mut u32, lpdwflags: *mut u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetProcessTimes(hprocess: super::super::Foundation::HANDLE, lpcreationtime: *mut super::super::Foundation::FILETIME, lpexittime: *mut super::super::Foundation::FILETIME, lpkerneltime: *mut super::super::Foundation::FILETIME, lpusertime: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn GetProcessVersion(processid: u32) -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetProcessWorkingSetSize(hprocess: super::super::Foundation::HANDLE, lpminimumworkingsetsize: *mut usize, lpmaximumworkingsetsize: *mut usize) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetStartupInfoA(lpstartupinfo: *mut STARTUPINFOA); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetStartupInfoW(lpstartupinfo: *mut STARTUPINFOW); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetSystemTimes(lpidletime: *mut super::super::Foundation::FILETIME, lpkerneltime: *mut super::super::Foundation::FILETIME, lpusertime: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetThreadDescription(hthread: super::super::Foundation::HANDLE, ppszthreaddescription: *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] - pub fn GetThreadGroupAffinity(hthread: super::super::Foundation::HANDLE, groupaffinity: *mut super::SystemInformation::GROUP_AFFINITY) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetThreadIOPendingFlag(hthread: super::super::Foundation::HANDLE, lpioispending: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetThreadId(thread: super::super::Foundation::HANDLE) -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] - pub fn GetThreadIdealProcessorEx(hthread: super::super::Foundation::HANDLE, lpidealprocessor: *mut super::Kernel::PROCESSOR_NUMBER) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetThreadInformation(hthread: super::super::Foundation::HANDLE, threadinformationclass: THREAD_INFORMATION_CLASS, threadinformation: *mut ::core::ffi::c_void, threadinformationsize: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetThreadPriority(hthread: super::super::Foundation::HANDLE) -> i32; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetThreadPriorityBoost(hthread: super::super::Foundation::HANDLE, pdisablepriorityboost: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] - pub fn GetThreadSelectedCpuSetMasks(thread: super::super::Foundation::HANDLE, cpusetmasks: *mut super::SystemInformation::GROUP_AFFINITY, cpusetmaskcount: u16, requiredmaskcount: *mut u16) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetThreadSelectedCpuSets(thread: super::super::Foundation::HANDLE, cpusetids: *mut u32, cpusetidcount: u32, requiredidcount: *mut u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetThreadTimes(hthread: super::super::Foundation::HANDLE, lpcreationtime: *mut super::super::Foundation::FILETIME, lpexittime: *mut super::super::Foundation::FILETIME, lpkerneltime: *mut super::super::Foundation::FILETIME, lpusertime: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetUmsCompletionListEvent(umscompletionlist: *const ::core::ffi::c_void, umscompletionevent: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetUmsSystemThreadInformation(threadhandle: super::super::Foundation::HANDLE, systemthreadinfo: *mut UMS_SYSTEM_THREAD_INFORMATION) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn InitOnceBeginInitialize(lpinitonce: *mut RTL_RUN_ONCE, dwflags: u32, fpending: *mut super::super::Foundation::BOOL, lpcontext: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn InitOnceComplete(lpinitonce: *mut RTL_RUN_ONCE, dwflags: u32, lpcontext: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn InitOnceExecuteOnce(initonce: *mut RTL_RUN_ONCE, initfn: PINIT_ONCE_FN, parameter: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn InitOnceInitialize(initonce: *mut RTL_RUN_ONCE); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn InitializeConditionVariable(conditionvariable: *mut RTL_CONDITION_VARIABLE); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] - pub fn InitializeCriticalSection(lpcriticalsection: *mut RTL_CRITICAL_SECTION); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] - pub fn InitializeCriticalSectionAndSpinCount(lpcriticalsection: *mut RTL_CRITICAL_SECTION, dwspincount: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] - pub fn InitializeCriticalSectionEx(lpcriticalsection: *mut RTL_CRITICAL_SECTION, dwspincount: u32, flags: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn InitializeProcThreadAttributeList(lpattributelist: LPPROC_THREAD_ATTRIBUTE_LIST, dwattributecount: u32, dwflags: u32, lpsize: *mut usize) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(feature = "Win32_System_Kernel")] - pub fn InitializeSListHead(listhead: *mut super::Kernel::SLIST_HEADER); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn InitializeSRWLock(srwlock: *mut RTL_SRWLOCK); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn InitializeSynchronizationBarrier(lpbarrier: *mut RTL_BARRIER, ltotalthreads: i32, lspincount: i32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(feature = "Win32_System_Kernel")] - pub fn InterlockedFlushSList(listhead: *mut super::Kernel::SLIST_HEADER) -> *mut super::Kernel::SLIST_ENTRY; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(feature = "Win32_System_Kernel")] - pub fn InterlockedPopEntrySList(listhead: *mut super::Kernel::SLIST_HEADER) -> *mut super::Kernel::SLIST_ENTRY; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(feature = "Win32_System_Kernel")] - pub fn InterlockedPushEntrySList(listhead: *mut super::Kernel::SLIST_HEADER, listentry: *mut super::Kernel::SLIST_ENTRY) -> *mut super::Kernel::SLIST_ENTRY; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(feature = "Win32_System_Kernel")] - pub fn InterlockedPushListSListEx(listhead: *mut super::Kernel::SLIST_HEADER, list: *mut super::Kernel::SLIST_ENTRY, listend: *mut super::Kernel::SLIST_ENTRY, count: u32) -> *mut super::Kernel::SLIST_ENTRY; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn IsImmersiveProcess(hprocess: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn IsProcessCritical(hprocess: super::super::Foundation::HANDLE, critical: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn IsProcessorFeaturePresent(processorfeature: PROCESSOR_FEATURE_ID) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn IsThreadAFiber() -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn IsThreadpoolTimerSet(pti: *mut TP_TIMER) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn IsWow64Process(hprocess: super::super::Foundation::HANDLE, wow64process: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] - pub fn IsWow64Process2(hprocess: super::super::Foundation::HANDLE, pprocessmachine: *mut super::SystemInformation::IMAGE_FILE_MACHINE, pnativemachine: *mut super::SystemInformation::IMAGE_FILE_MACHINE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] - pub fn LeaveCriticalSection(lpcriticalsection: *mut RTL_CRITICAL_SECTION); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] - pub fn LeaveCriticalSectionWhenCallbackReturns(pci: *mut TP_CALLBACK_INSTANCE, pcs: *mut RTL_CRITICAL_SECTION); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn NtQueryInformationProcess(processhandle: super::super::Foundation::HANDLE, processinformationclass: PROCESSINFOCLASS, processinformation: *mut ::core::ffi::c_void, processinformationlength: u32, returnlength: *mut u32) -> super::super::Foundation::NTSTATUS; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn NtQueryInformationThread(threadhandle: super::super::Foundation::HANDLE, threadinformationclass: THREADINFOCLASS, threadinformation: *mut ::core::ffi::c_void, threadinformationlength: u32, returnlength: *mut u32) -> super::super::Foundation::NTSTATUS; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn NtSetInformationThread(threadhandle: super::super::Foundation::HANDLE, threadinformationclass: THREADINFOCLASS, threadinformation: *const ::core::ffi::c_void, threadinformationlength: u32) -> super::super::Foundation::NTSTATUS; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn OpenEventA(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle: super::super::Foundation::BOOL, lpname: ::windows_sys::core::PCSTR) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn OpenEventW(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle: super::super::Foundation::BOOL, lpname: ::windows_sys::core::PCWSTR) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn OpenMutexW(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle: super::super::Foundation::BOOL, lpname: ::windows_sys::core::PCWSTR) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn OpenPrivateNamespaceA(lpboundarydescriptor: *const ::core::ffi::c_void, lpaliasprefix: ::windows_sys::core::PCSTR) -> NamespaceHandle; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn OpenPrivateNamespaceW(lpboundarydescriptor: *const ::core::ffi::c_void, lpaliasprefix: ::windows_sys::core::PCWSTR) -> NamespaceHandle; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn OpenProcess(dwdesiredaccess: PROCESS_ACCESS_RIGHTS, binherithandle: super::super::Foundation::BOOL, dwprocessid: u32) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn OpenProcessToken(processhandle: super::super::Foundation::HANDLE, desiredaccess: super::super::Security::TOKEN_ACCESS_MASK, tokenhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn OpenSemaphoreW(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle: super::super::Foundation::BOOL, lpname: ::windows_sys::core::PCWSTR) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn OpenThread(dwdesiredaccess: THREAD_ACCESS_RIGHTS, binherithandle: super::super::Foundation::BOOL, dwthreadid: u32) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn OpenThreadToken(threadhandle: super::super::Foundation::HANDLE, desiredaccess: super::super::Security::TOKEN_ACCESS_MASK, openasself: super::super::Foundation::BOOL, tokenhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn OpenWaitableTimerW(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle: super::super::Foundation::BOOL, lptimername: ::windows_sys::core::PCWSTR) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn PulseEvent(hevent: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(feature = "Win32_System_Kernel")] - pub fn QueryDepthSList(listhead: *const super::Kernel::SLIST_HEADER) -> u16; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn QueryFullProcessImageNameA(hprocess: super::super::Foundation::HANDLE, dwflags: PROCESS_NAME_FORMAT, lpexename: ::windows_sys::core::PSTR, lpdwsize: *mut u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn QueryFullProcessImageNameW(hprocess: super::super::Foundation::HANDLE, dwflags: PROCESS_NAME_FORMAT, lpexename: ::windows_sys::core::PWSTR, lpdwsize: *mut u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn QueryProcessAffinityUpdateMode(hprocess: super::super::Foundation::HANDLE, lpdwflags: *mut PROCESS_AFFINITY_AUTO_UPDATE_FLAGS) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn QueryProtectedPolicy(policyguid: *const ::windows_sys::core::GUID, policyvalue: *mut usize) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn QueryThreadpoolStackInformation(ptpp: PTP_POOL, ptpsi: *mut TP_POOL_STACK_INFORMATION) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn QueryUmsThreadInformation(umsthread: *const ::core::ffi::c_void, umsthreadinfoclass: RTL_UMS_THREAD_INFO_CLASS, umsthreadinformation: *mut ::core::ffi::c_void, umsthreadinformationlength: u32, returnlength: *mut u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn QueueUserAPC(pfnapc: super::super::Foundation::PAPCFUNC, hthread: super::super::Foundation::HANDLE, dwdata: usize) -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn QueueUserAPC2(apcroutine: super::super::Foundation::PAPCFUNC, thread: super::super::Foundation::HANDLE, data: usize, flags: QUEUE_USER_APC_FLAGS) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn QueueUserWorkItem(function: LPTHREAD_START_ROUTINE, context: *const ::core::ffi::c_void, flags: WORKER_THREAD_FLAGS) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RegisterWaitForSingleObject(phnewwaitobject: *mut super::super::Foundation::HANDLE, hobject: super::super::Foundation::HANDLE, callback: WAITORTIMERCALLBACK, context: *const ::core::ffi::c_void, dwmilliseconds: u32, dwflags: WORKER_THREAD_FLAGS) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ReleaseMutex(hmutex: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ReleaseMutexWhenCallbackReturns(pci: *mut TP_CALLBACK_INSTANCE, r#mut: super::super::Foundation::HANDLE); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn ReleaseSRWLockExclusive(srwlock: *mut RTL_SRWLOCK); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn ReleaseSRWLockShared(srwlock: *mut RTL_SRWLOCK); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ReleaseSemaphore(hsemaphore: super::super::Foundation::HANDLE, lreleasecount: i32, lppreviouscount: *mut i32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ReleaseSemaphoreWhenCallbackReturns(pci: *mut TP_CALLBACK_INSTANCE, sem: super::super::Foundation::HANDLE, crel: u32); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ResetEvent(hevent: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ResumeThread(hthread: super::super::Foundation::HANDLE) -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] - pub fn SetCriticalSectionSpinCount(lpcriticalsection: *mut RTL_CRITICAL_SECTION, dwspincount: u32) -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetEvent(hevent: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetEventWhenCallbackReturns(pci: *mut TP_CALLBACK_INSTANCE, evt: super::super::Foundation::HANDLE); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetPriorityClass(hprocess: super::super::Foundation::HANDLE, dwpriorityclass: PROCESS_CREATION_FLAGS) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetProcessAffinityMask(hprocess: super::super::Foundation::HANDLE, dwprocessaffinitymask: usize) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetProcessAffinityUpdateMode(hprocess: super::super::Foundation::HANDLE, dwflags: PROCESS_AFFINITY_AUTO_UPDATE_FLAGS) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetProcessDEPPolicy(dwflags: PROCESS_DEP_FLAGS) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] - pub fn SetProcessDefaultCpuSetMasks(process: super::super::Foundation::HANDLE, cpusetmasks: *const super::SystemInformation::GROUP_AFFINITY, cpusetmaskcount: u16) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetProcessDefaultCpuSets(process: super::super::Foundation::HANDLE, cpusetids: *const u32, cpusetidcount: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetProcessDynamicEHContinuationTargets(process: super::super::Foundation::HANDLE, numberoftargets: u16, targets: *mut PROCESS_DYNAMIC_EH_CONTINUATION_TARGET) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetProcessDynamicEnforcedCetCompatibleRanges(process: super::super::Foundation::HANDLE, numberofranges: u16, ranges: *mut PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetProcessInformation(hprocess: super::super::Foundation::HANDLE, processinformationclass: PROCESS_INFORMATION_CLASS, processinformation: *const ::core::ffi::c_void, processinformationsize: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetProcessMitigationPolicy(mitigationpolicy: PROCESS_MITIGATION_POLICY, lpbuffer: *const ::core::ffi::c_void, dwlength: usize) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetProcessPriorityBoost(hprocess: super::super::Foundation::HANDLE, bdisablepriorityboost: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetProcessRestrictionExemption(fenableexemption: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetProcessShutdownParameters(dwlevel: u32, dwflags: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetProcessWorkingSetSize(hprocess: super::super::Foundation::HANDLE, dwminimumworkingsetsize: usize, dwmaximumworkingsetsize: usize) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetProtectedPolicy(policyguid: *const ::windows_sys::core::GUID, policyvalue: usize, oldpolicyvalue: *mut usize) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetThreadAffinityMask(hthread: super::super::Foundation::HANDLE, dwthreadaffinitymask: usize) -> usize; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetThreadDescription(hthread: super::super::Foundation::HANDLE, lpthreaddescription: ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] - pub fn SetThreadGroupAffinity(hthread: super::super::Foundation::HANDLE, groupaffinity: *const super::SystemInformation::GROUP_AFFINITY, previousgroupaffinity: *mut super::SystemInformation::GROUP_AFFINITY) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetThreadIdealProcessor(hthread: super::super::Foundation::HANDLE, dwidealprocessor: u32) -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] - pub fn SetThreadIdealProcessorEx(hthread: super::super::Foundation::HANDLE, lpidealprocessor: *const super::Kernel::PROCESSOR_NUMBER, lppreviousidealprocessor: *mut super::Kernel::PROCESSOR_NUMBER) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetThreadInformation(hthread: super::super::Foundation::HANDLE, threadinformationclass: THREAD_INFORMATION_CLASS, threadinformation: *const ::core::ffi::c_void, threadinformationsize: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetThreadPriority(hthread: super::super::Foundation::HANDLE, npriority: THREAD_PRIORITY) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetThreadPriorityBoost(hthread: super::super::Foundation::HANDLE, bdisablepriorityboost: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] - pub fn SetThreadSelectedCpuSetMasks(thread: super::super::Foundation::HANDLE, cpusetmasks: *const super::SystemInformation::GROUP_AFFINITY, cpusetmaskcount: u16) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetThreadSelectedCpuSets(thread: super::super::Foundation::HANDLE, cpusetids: *const u32, cpusetidcount: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetThreadStackGuarantee(stacksizeinbytes: *mut u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetThreadToken(thread: *const super::super::Foundation::HANDLE, token: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetThreadpoolStackInformation(ptpp: PTP_POOL, ptpsi: *const TP_POOL_STACK_INFORMATION) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn SetThreadpoolThreadMaximum(ptpp: PTP_POOL, cthrdmost: u32); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetThreadpoolThreadMinimum(ptpp: PTP_POOL, cthrdmic: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetThreadpoolTimer(pti: *mut TP_TIMER, pftduetime: *const super::super::Foundation::FILETIME, msperiod: u32, mswindowlength: u32); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetThreadpoolTimerEx(pti: *mut TP_TIMER, pftduetime: *const super::super::Foundation::FILETIME, msperiod: u32, mswindowlength: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetThreadpoolWait(pwa: *mut TP_WAIT, h: super::super::Foundation::HANDLE, pfttimeout: *const super::super::Foundation::FILETIME); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetThreadpoolWaitEx(pwa: *mut TP_WAIT, h: super::super::Foundation::HANDLE, pfttimeout: *const super::super::Foundation::FILETIME, reserved: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetTimerQueueTimer(timerqueue: super::super::Foundation::HANDLE, callback: WAITORTIMERCALLBACK, parameter: *const ::core::ffi::c_void, duetime: u32, period: u32, preferio: super::super::Foundation::BOOL) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetUmsThreadInformation(umsthread: *const ::core::ffi::c_void, umsthreadinfoclass: RTL_UMS_THREAD_INFO_CLASS, umsthreadinformation: *const ::core::ffi::c_void, umsthreadinformationlength: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetWaitableTimer(htimer: super::super::Foundation::HANDLE, lpduetime: *const i64, lperiod: i32, pfncompletionroutine: PTIMERAPCROUTINE, lpargtocompletionroutine: *const ::core::ffi::c_void, fresume: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SetWaitableTimerEx(htimer: super::super::Foundation::HANDLE, lpduetime: *const i64, lperiod: i32, pfncompletionroutine: PTIMERAPCROUTINE, lpargtocompletionroutine: *const ::core::ffi::c_void, wakecontext: *const REASON_CONTEXT, tolerabledelay: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn Sleep(dwmilliseconds: u32); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] - pub fn SleepConditionVariableCS(conditionvariable: *mut RTL_CONDITION_VARIABLE, criticalsection: *mut RTL_CRITICAL_SECTION, dwmilliseconds: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SleepConditionVariableSRW(conditionvariable: *mut RTL_CONDITION_VARIABLE, srwlock: *mut RTL_SRWLOCK, dwmilliseconds: u32, flags: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SleepEx(dwmilliseconds: u32, balertable: super::super::Foundation::BOOL) -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn StartThreadpoolIo(pio: *mut TP_IO); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn SubmitThreadpoolWork(pwk: *mut TP_WORK); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SuspendThread(hthread: super::super::Foundation::HANDLE) -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn SwitchToFiber(lpfiber: *const ::core::ffi::c_void); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SwitchToThread() -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn TerminateProcess(hprocess: super::super::Foundation::HANDLE, uexitcode: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn TerminateThread(hthread: super::super::Foundation::HANDLE, dwexitcode: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn TlsAlloc() -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn TlsFree(dwtlsindex: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn TlsGetValue(dwtlsindex: u32) -> *mut ::core::ffi::c_void; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn TlsSetValue(dwtlsindex: u32, lptlsvalue: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn TryAcquireSRWLockExclusive(srwlock: *mut RTL_SRWLOCK) -> super::super::Foundation::BOOLEAN; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn TryAcquireSRWLockShared(srwlock: *mut RTL_SRWLOCK) -> super::super::Foundation::BOOLEAN; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] - pub fn TryEnterCriticalSection(lpcriticalsection: *mut RTL_CRITICAL_SECTION) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn TrySubmitThreadpoolCallback(pfns: PTP_SIMPLE_CALLBACK, pv: *mut ::core::ffi::c_void, pcbe: *const TP_CALLBACK_ENVIRON_V3) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn UmsThreadYield(schedulerparam: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn UnregisterWait(waithandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn UnregisterWaitEx(waithandle: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn UpdateProcThreadAttribute(lpattributelist: LPPROC_THREAD_ATTRIBUTE_LIST, dwflags: u32, attribute: usize, lpvalue: *const ::core::ffi::c_void, cbsize: usize, lppreviousvalue: *mut ::core::ffi::c_void, lpreturnsize: *const usize) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn WaitForInputIdle(hprocess: super::super::Foundation::HANDLE, dwmilliseconds: u32) -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn WaitForMultipleObjects(ncount: u32, lphandles: *const super::super::Foundation::HANDLE, bwaitall: super::super::Foundation::BOOL, dwmilliseconds: u32) -> super::super::Foundation::WIN32_ERROR; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn WaitForMultipleObjectsEx(ncount: u32, lphandles: *const super::super::Foundation::HANDLE, bwaitall: super::super::Foundation::BOOL, dwmilliseconds: u32, balertable: super::super::Foundation::BOOL) -> super::super::Foundation::WIN32_ERROR; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn WaitForSingleObject(hhandle: super::super::Foundation::HANDLE, dwmilliseconds: u32) -> super::super::Foundation::WIN32_ERROR; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn WaitForSingleObjectEx(hhandle: super::super::Foundation::HANDLE, dwmilliseconds: u32, balertable: super::super::Foundation::BOOL) -> super::super::Foundation::WIN32_ERROR; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn WaitForThreadpoolIoCallbacks(pio: *mut TP_IO, fcancelpendingcallbacks: super::super::Foundation::BOOL); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn WaitForThreadpoolTimerCallbacks(pti: *mut TP_TIMER, fcancelpendingcallbacks: super::super::Foundation::BOOL); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn WaitForThreadpoolWaitCallbacks(pwa: *mut TP_WAIT, fcancelpendingcallbacks: super::super::Foundation::BOOL); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn WaitForThreadpoolWorkCallbacks(pwk: *mut TP_WORK, fcancelpendingcallbacks: super::super::Foundation::BOOL); - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn WaitOnAddress(address: *const ::core::ffi::c_void, compareaddress: *const ::core::ffi::c_void, addresssize: usize, dwmilliseconds: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn WakeAllConditionVariable(conditionvariable: *mut RTL_CONDITION_VARIABLE); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn WakeByAddressAll(address: *const ::core::ffi::c_void); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn WakeByAddressSingle(address: *const ::core::ffi::c_void); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn WakeConditionVariable(conditionvariable: *mut RTL_CONDITION_VARIABLE); - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn WinExec(lpcmdline: ::windows_sys::core::PCSTR, ucmdshow: u32) -> u32; - #[doc = "*Required features: `\"Win32_System_Threading\"`*"] - pub fn Wow64SetThreadDefaultGuestMachine(machine: u16) -> u16; - #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn Wow64SuspendThread(hthread: super::super::Foundation::HANDLE) -> u32; -} +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn AcquireSRWLockExclusive ( srwlock : *mut RTL_SRWLOCK ) -> ( ) ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn AcquireSRWLockShared ( srwlock : *mut RTL_SRWLOCK ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn AddIntegrityLabelToBoundaryDescriptor ( boundarydescriptor : *mut super::super::Foundation:: HANDLE , integritylabel : super::super::Foundation:: PSID ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn AddSIDToBoundaryDescriptor ( boundarydescriptor : *mut super::super::Foundation:: HANDLE , requiredsid : super::super::Foundation:: PSID ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn AttachThreadInput ( idattach : u32 , idattachto : u32 , fattach : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "avrt.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn AvQuerySystemResponsiveness ( avrthandle : super::super::Foundation:: HANDLE , systemresponsivenessvalue : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "avrt.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn AvRevertMmThreadCharacteristics ( avrthandle : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "avrt.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn AvRtCreateThreadOrderingGroup ( context : *mut super::super::Foundation:: HANDLE , period : *const i64 , threadorderingguid : *mut :: windows_sys::core::GUID , timeout : *const i64 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "avrt.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn AvRtCreateThreadOrderingGroupExA ( context : *mut super::super::Foundation:: HANDLE , period : *const i64 , threadorderingguid : *mut :: windows_sys::core::GUID , timeout : *const i64 , taskname : :: windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "avrt.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn AvRtCreateThreadOrderingGroupExW ( context : *mut super::super::Foundation:: HANDLE , period : *const i64 , threadorderingguid : *mut :: windows_sys::core::GUID , timeout : *const i64 , taskname : :: windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "avrt.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn AvRtDeleteThreadOrderingGroup ( context : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "avrt.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn AvRtJoinThreadOrderingGroup ( context : *mut super::super::Foundation:: HANDLE , threadorderingguid : *const :: windows_sys::core::GUID , before : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "avrt.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn AvRtLeaveThreadOrderingGroup ( context : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "avrt.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn AvRtWaitOnThreadOrderingGroup ( context : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "avrt.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn AvSetMmMaxThreadCharacteristicsA ( firsttask : :: windows_sys::core::PCSTR , secondtask : :: windows_sys::core::PCSTR , taskindex : *mut u32 ) -> super::super::Foundation:: HANDLE ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "avrt.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn AvSetMmMaxThreadCharacteristicsW ( firsttask : :: windows_sys::core::PCWSTR , secondtask : :: windows_sys::core::PCWSTR , taskindex : *mut u32 ) -> super::super::Foundation:: HANDLE ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "avrt.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn AvSetMmThreadCharacteristicsA ( taskname : :: windows_sys::core::PCSTR , taskindex : *mut u32 ) -> super::super::Foundation:: HANDLE ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "avrt.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn AvSetMmThreadCharacteristicsW ( taskname : :: windows_sys::core::PCWSTR , taskindex : *mut u32 ) -> super::super::Foundation:: HANDLE ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "avrt.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn AvSetMmThreadPriority ( avrthandle : super::super::Foundation:: HANDLE , priority : AVRT_PRIORITY ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn CallbackMayRunLong ( pci : *mut TP_CALLBACK_INSTANCE ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn CancelThreadpoolIo ( pio : *mut TP_IO ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn CancelWaitableTimer ( htimer : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn ChangeTimerQueueTimer ( timerqueue : super::super::Foundation:: HANDLE , timer : super::super::Foundation:: HANDLE , duetime : u32 , period : u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn ClosePrivateNamespace ( handle : NamespaceHandle , flags : u32 ) -> super::super::Foundation:: BOOLEAN ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn CloseThreadpool ( ptpp : PTP_POOL ) -> ( ) ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn CloseThreadpoolCleanupGroup ( ptpcg : isize ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn CloseThreadpoolCleanupGroupMembers ( ptpcg : isize , fcancelpendingcallbacks : super::super::Foundation:: BOOL , pvcleanupcontext : *mut ::core::ffi::c_void ) -> ( ) ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn CloseThreadpoolIo ( pio : *mut TP_IO ) -> ( ) ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn CloseThreadpoolTimer ( pti : *mut TP_TIMER ) -> ( ) ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn CloseThreadpoolWait ( pwa : *mut TP_WAIT ) -> ( ) ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn CloseThreadpoolWork ( pwk : *mut TP_WORK ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn ConvertFiberToThread ( ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn ConvertThreadToFiber ( lpparameter : *const ::core::ffi::c_void ) -> *mut ::core::ffi::c_void ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn ConvertThreadToFiberEx ( lpparameter : *const ::core::ffi::c_void , dwflags : u32 ) -> *mut ::core::ffi::c_void ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn CreateBoundaryDescriptorA ( name : :: windows_sys::core::PCSTR , flags : u32 ) -> BoundaryDescriptorHandle ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn CreateBoundaryDescriptorW ( name : :: windows_sys::core::PCWSTR , flags : u32 ) -> BoundaryDescriptorHandle ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateEventA ( lpeventattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , bmanualreset : super::super::Foundation:: BOOL , binitialstate : super::super::Foundation:: BOOL , lpname : :: windows_sys::core::PCSTR ) -> super::super::Foundation:: HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateEventExA ( lpeventattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , lpname : :: windows_sys::core::PCSTR , dwflags : CREATE_EVENT , dwdesiredaccess : u32 ) -> super::super::Foundation:: HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateEventExW ( lpeventattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , lpname : :: windows_sys::core::PCWSTR , dwflags : CREATE_EVENT , dwdesiredaccess : u32 ) -> super::super::Foundation:: HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateEventW ( lpeventattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , bmanualreset : super::super::Foundation:: BOOL , binitialstate : super::super::Foundation:: BOOL , lpname : :: windows_sys::core::PCWSTR ) -> super::super::Foundation:: HANDLE ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn CreateFiber ( dwstacksize : usize , lpstartaddress : LPFIBER_START_ROUTINE , lpparameter : *const ::core::ffi::c_void ) -> *mut ::core::ffi::c_void ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn CreateFiberEx ( dwstackcommitsize : usize , dwstackreservesize : usize , dwflags : u32 , lpstartaddress : LPFIBER_START_ROUTINE , lpparameter : *const ::core::ffi::c_void ) -> *mut ::core::ffi::c_void ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateMutexA ( lpmutexattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , binitialowner : super::super::Foundation:: BOOL , lpname : :: windows_sys::core::PCSTR ) -> super::super::Foundation:: HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateMutexExA ( lpmutexattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , lpname : :: windows_sys::core::PCSTR , dwflags : u32 , dwdesiredaccess : u32 ) -> super::super::Foundation:: HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateMutexExW ( lpmutexattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , lpname : :: windows_sys::core::PCWSTR , dwflags : u32 , dwdesiredaccess : u32 ) -> super::super::Foundation:: HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateMutexW ( lpmutexattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , binitialowner : super::super::Foundation:: BOOL , lpname : :: windows_sys::core::PCWSTR ) -> super::super::Foundation:: HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreatePrivateNamespaceA ( lpprivatenamespaceattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , lpboundarydescriptor : *const ::core::ffi::c_void , lpaliasprefix : :: windows_sys::core::PCSTR ) -> NamespaceHandle ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreatePrivateNamespaceW ( lpprivatenamespaceattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , lpboundarydescriptor : *const ::core::ffi::c_void , lpaliasprefix : :: windows_sys::core::PCWSTR ) -> NamespaceHandle ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateProcessA ( lpapplicationname : :: windows_sys::core::PCSTR , lpcommandline : :: windows_sys::core::PSTR , lpprocessattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , binherithandles : super::super::Foundation:: BOOL , dwcreationflags : PROCESS_CREATION_FLAGS , lpenvironment : *const ::core::ffi::c_void , lpcurrentdirectory : :: windows_sys::core::PCSTR , lpstartupinfo : *const STARTUPINFOA , lpprocessinformation : *mut PROCESS_INFORMATION ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateProcessAsUserA ( htoken : super::super::Foundation:: HANDLE , lpapplicationname : :: windows_sys::core::PCSTR , lpcommandline : :: windows_sys::core::PSTR , lpprocessattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , binherithandles : super::super::Foundation:: BOOL , dwcreationflags : PROCESS_CREATION_FLAGS , lpenvironment : *const ::core::ffi::c_void , lpcurrentdirectory : :: windows_sys::core::PCSTR , lpstartupinfo : *const STARTUPINFOA , lpprocessinformation : *mut PROCESS_INFORMATION ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateProcessAsUserW ( htoken : super::super::Foundation:: HANDLE , lpapplicationname : :: windows_sys::core::PCWSTR , lpcommandline : :: windows_sys::core::PWSTR , lpprocessattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , binherithandles : super::super::Foundation:: BOOL , dwcreationflags : PROCESS_CREATION_FLAGS , lpenvironment : *const ::core::ffi::c_void , lpcurrentdirectory : :: windows_sys::core::PCWSTR , lpstartupinfo : *const STARTUPINFOW , lpprocessinformation : *mut PROCESS_INFORMATION ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateProcessW ( lpapplicationname : :: windows_sys::core::PCWSTR , lpcommandline : :: windows_sys::core::PWSTR , lpprocessattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , binherithandles : super::super::Foundation:: BOOL , dwcreationflags : PROCESS_CREATION_FLAGS , lpenvironment : *const ::core::ffi::c_void , lpcurrentdirectory : :: windows_sys::core::PCWSTR , lpstartupinfo : *const STARTUPINFOW , lpprocessinformation : *mut PROCESS_INFORMATION ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn CreateProcessWithLogonW ( lpusername : :: windows_sys::core::PCWSTR , lpdomain : :: windows_sys::core::PCWSTR , lppassword : :: windows_sys::core::PCWSTR , dwlogonflags : CREATE_PROCESS_LOGON_FLAGS , lpapplicationname : :: windows_sys::core::PCWSTR , lpcommandline : :: windows_sys::core::PWSTR , dwcreationflags : PROCESS_CREATION_FLAGS , lpenvironment : *const ::core::ffi::c_void , lpcurrentdirectory : :: windows_sys::core::PCWSTR , lpstartupinfo : *const STARTUPINFOW , lpprocessinformation : *mut PROCESS_INFORMATION ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn CreateProcessWithTokenW ( htoken : super::super::Foundation:: HANDLE , dwlogonflags : CREATE_PROCESS_LOGON_FLAGS , lpapplicationname : :: windows_sys::core::PCWSTR , lpcommandline : :: windows_sys::core::PWSTR , dwcreationflags : PROCESS_CREATION_FLAGS , lpenvironment : *const ::core::ffi::c_void , lpcurrentdirectory : :: windows_sys::core::PCWSTR , lpstartupinfo : *const STARTUPINFOW , lpprocessinformation : *mut PROCESS_INFORMATION ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateRemoteThread ( hprocess : super::super::Foundation:: HANDLE , lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , dwstacksize : usize , lpstartaddress : LPTHREAD_START_ROUTINE , lpparameter : *const ::core::ffi::c_void , dwcreationflags : u32 , lpthreadid : *mut u32 ) -> super::super::Foundation:: HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateRemoteThreadEx ( hprocess : super::super::Foundation:: HANDLE , lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , dwstacksize : usize , lpstartaddress : LPTHREAD_START_ROUTINE , lpparameter : *const ::core::ffi::c_void , dwcreationflags : u32 , lpattributelist : LPPROC_THREAD_ATTRIBUTE_LIST , lpthreadid : *mut u32 ) -> super::super::Foundation:: HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateSemaphoreA ( lpsemaphoreattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , linitialcount : i32 , lmaximumcount : i32 , lpname : :: windows_sys::core::PCSTR ) -> super::super::Foundation:: HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateSemaphoreExA ( lpsemaphoreattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , linitialcount : i32 , lmaximumcount : i32 , lpname : :: windows_sys::core::PCSTR , dwflags : u32 , dwdesiredaccess : u32 ) -> super::super::Foundation:: HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateSemaphoreExW ( lpsemaphoreattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , linitialcount : i32 , lmaximumcount : i32 , lpname : :: windows_sys::core::PCWSTR , dwflags : u32 , dwdesiredaccess : u32 ) -> super::super::Foundation:: HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateSemaphoreW ( lpsemaphoreattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , linitialcount : i32 , lmaximumcount : i32 , lpname : :: windows_sys::core::PCWSTR ) -> super::super::Foundation:: HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateThread ( lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , dwstacksize : usize , lpstartaddress : LPTHREAD_START_ROUTINE , lpparameter : *const ::core::ffi::c_void , dwcreationflags : THREAD_CREATION_FLAGS , lpthreadid : *mut u32 ) -> super::super::Foundation:: HANDLE ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn CreateThreadpool ( reserved : *mut ::core::ffi::c_void ) -> PTP_POOL ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn CreateThreadpoolCleanupGroup ( ) -> isize ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn CreateThreadpoolIo ( fl : super::super::Foundation:: HANDLE , pfnio : PTP_WIN32_IO_CALLBACK , pv : *mut ::core::ffi::c_void , pcbe : *const TP_CALLBACK_ENVIRON_V3 ) -> *mut TP_IO ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn CreateThreadpoolTimer ( pfnti : PTP_TIMER_CALLBACK , pv : *mut ::core::ffi::c_void , pcbe : *const TP_CALLBACK_ENVIRON_V3 ) -> *mut TP_TIMER ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn CreateThreadpoolWait ( pfnwa : PTP_WAIT_CALLBACK , pv : *mut ::core::ffi::c_void , pcbe : *const TP_CALLBACK_ENVIRON_V3 ) -> *mut TP_WAIT ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn CreateThreadpoolWork ( pfnwk : PTP_WORK_CALLBACK , pv : *mut ::core::ffi::c_void , pcbe : *const TP_CALLBACK_ENVIRON_V3 ) -> *mut TP_WORK ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn CreateTimerQueue ( ) -> super::super::Foundation:: HANDLE ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn CreateTimerQueueTimer ( phnewtimer : *mut super::super::Foundation:: HANDLE , timerqueue : super::super::Foundation:: HANDLE , callback : WAITORTIMERCALLBACK , parameter : *const ::core::ffi::c_void , duetime : u32 , period : u32 , flags : WORKER_THREAD_FLAGS ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn CreateUmsCompletionList ( umscompletionlist : *mut *mut ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn CreateUmsThreadContext ( lpumsthread : *mut *mut ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateWaitableTimerExW ( lptimerattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , lptimername : :: windows_sys::core::PCWSTR , dwflags : u32 , dwdesiredaccess : u32 ) -> super::super::Foundation:: HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CreateWaitableTimerW ( lptimerattributes : *const super::super::Security:: SECURITY_ATTRIBUTES , bmanualreset : super::super::Foundation:: BOOL , lptimername : :: windows_sys::core::PCWSTR ) -> super::super::Foundation:: HANDLE ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn DeleteBoundaryDescriptor ( boundarydescriptor : BoundaryDescriptorHandle ) -> ( ) ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] fn DeleteCriticalSection ( lpcriticalsection : *mut RTL_CRITICAL_SECTION ) -> ( ) ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn DeleteFiber ( lpfiber : *const ::core::ffi::c_void ) -> ( ) ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn DeleteProcThreadAttributeList ( lpattributelist : LPPROC_THREAD_ATTRIBUTE_LIST ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn DeleteSynchronizationBarrier ( lpbarrier : *mut RTL_BARRIER ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn DeleteTimerQueue ( timerqueue : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn DeleteTimerQueueEx ( timerqueue : super::super::Foundation:: HANDLE , completionevent : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn DeleteTimerQueueTimer ( timerqueue : super::super::Foundation:: HANDLE , timer : super::super::Foundation:: HANDLE , completionevent : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn DeleteUmsCompletionList ( umscompletionlist : *const ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn DeleteUmsThreadContext ( umsthread : *const ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn DequeueUmsCompletionListItems ( umscompletionlist : *const ::core::ffi::c_void , waittimeout : u32 , umsthreadlist : *mut *mut ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn DisassociateCurrentThreadFromCallback ( pci : *mut TP_CALLBACK_INSTANCE ) -> ( ) ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] fn EnterCriticalSection ( lpcriticalsection : *mut RTL_CRITICAL_SECTION ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn EnterSynchronizationBarrier ( lpbarrier : *mut RTL_BARRIER , dwflags : u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemServices"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemServices\"`*"] fn EnterUmsSchedulingMode ( schedulerstartupinfo : *const UMS_SCHEDULER_STARTUP_INFO ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn ExecuteUmsThread ( umsthread : *mut ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn ExitProcess ( uexitcode : u32 ) -> ! ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn ExitThread ( dwexitcode : u32 ) -> ! ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn FlsAlloc ( lpcallback : PFLS_CALLBACK_FUNCTION ) -> u32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn FlsFree ( dwflsindex : u32 ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn FlsGetValue ( dwflsindex : u32 ) -> *mut ::core::ffi::c_void ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn FlsSetValue ( dwflsindex : u32 , lpflsdata : *const ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn FlushProcessWriteBuffers ( ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn FreeLibraryWhenCallbackReturns ( pci : *mut TP_CALLBACK_INSTANCE , r#mod : super::super::Foundation:: HINSTANCE ) -> ( ) ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn GetActiveProcessorCount ( groupnumber : u16 ) -> u32 ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn GetActiveProcessorGroupCount ( ) -> u16 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetCurrentProcess ( ) -> super::super::Foundation:: HANDLE ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn GetCurrentProcessId ( ) -> u32 ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn GetCurrentProcessorNumber ( ) -> u32 ); +#[cfg(feature = "Win32_System_Kernel")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_System_Kernel\"`*"] fn GetCurrentProcessorNumberEx ( procnumber : *mut super::Kernel:: PROCESSOR_NUMBER ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetCurrentThread ( ) -> super::super::Foundation:: HANDLE ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn GetCurrentThreadId ( ) -> u32 ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn GetCurrentThreadStackLimits ( lowlimit : *mut usize , highlimit : *mut usize ) -> ( ) ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn GetCurrentUmsThread ( ) -> *mut ::core::ffi::c_void ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetExitCodeProcess ( hprocess : super::super::Foundation:: HANDLE , lpexitcode : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetExitCodeThread ( hthread : super::super::Foundation:: HANDLE , lpexitcode : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetGuiResources ( hprocess : super::super::Foundation:: HANDLE , uiflags : GET_GUI_RESOURCES_FLAGS ) -> u32 ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn GetMachineTypeAttributes ( machine : u16 , machinetypeattributes : *mut MACHINE_ATTRIBUTES ) -> :: windows_sys::core::HRESULT ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn GetMaximumProcessorCount ( groupnumber : u16 ) -> u32 ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn GetMaximumProcessorGroupCount ( ) -> u16 ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn GetNextUmsListItem ( umscontext : *mut ::core::ffi::c_void ) -> *mut ::core::ffi::c_void ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetNumaAvailableMemoryNode ( node : u8 , availablebytes : *mut u64 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetNumaAvailableMemoryNodeEx ( node : u16 , availablebytes : *mut u64 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetNumaHighestNodeNumber ( highestnodenumber : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetNumaNodeNumberFromHandle ( hfile : super::super::Foundation:: HANDLE , nodenumber : *mut u16 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetNumaNodeProcessorMask ( node : u8 , processormask : *mut u64 ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] fn GetNumaNodeProcessorMask2 ( nodenumber : u16 , processormasks : *mut super::SystemInformation:: GROUP_AFFINITY , processormaskcount : u16 , requiredmaskcount : *mut u16 ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] fn GetNumaNodeProcessorMaskEx ( node : u16 , processormask : *mut super::SystemInformation:: GROUP_AFFINITY ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetNumaProcessorNode ( processor : u8 , nodenumber : *mut u8 ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] fn GetNumaProcessorNodeEx ( processor : *const super::Kernel:: PROCESSOR_NUMBER , nodenumber : *mut u16 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetNumaProximityNode ( proximityid : u32 , nodenumber : *mut u8 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetNumaProximityNodeEx ( proximityid : u32 , nodenumber : *mut u16 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetPriorityClass ( hprocess : super::super::Foundation:: HANDLE ) -> u32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetProcessAffinityMask ( hprocess : super::super::Foundation:: HANDLE , lpprocessaffinitymask : *mut usize , lpsystemaffinitymask : *mut usize ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetProcessDEPPolicy ( hprocess : super::super::Foundation:: HANDLE , lpflags : *mut u32 , lppermanent : *mut super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] fn GetProcessDefaultCpuSetMasks ( process : super::super::Foundation:: HANDLE , cpusetmasks : *mut super::SystemInformation:: GROUP_AFFINITY , cpusetmaskcount : u16 , requiredmaskcount : *mut u16 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetProcessDefaultCpuSets ( process : super::super::Foundation:: HANDLE , cpusetids : *mut u32 , cpusetidcount : u32 , requiredidcount : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetProcessGroupAffinity ( hprocess : super::super::Foundation:: HANDLE , groupcount : *mut u16 , grouparray : *mut u16 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetProcessHandleCount ( hprocess : super::super::Foundation:: HANDLE , pdwhandlecount : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetProcessId ( process : super::super::Foundation:: HANDLE ) -> u32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetProcessIdOfThread ( thread : super::super::Foundation:: HANDLE ) -> u32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetProcessInformation ( hprocess : super::super::Foundation:: HANDLE , processinformationclass : PROCESS_INFORMATION_CLASS , processinformation : *mut ::core::ffi::c_void , processinformationsize : u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetProcessIoCounters ( hprocess : super::super::Foundation:: HANDLE , lpiocounters : *mut IO_COUNTERS ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetProcessMitigationPolicy ( hprocess : super::super::Foundation:: HANDLE , mitigationpolicy : PROCESS_MITIGATION_POLICY , lpbuffer : *mut ::core::ffi::c_void , dwlength : usize ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetProcessPriorityBoost ( hprocess : super::super::Foundation:: HANDLE , pdisablepriorityboost : *mut super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetProcessShutdownParameters ( lpdwlevel : *mut u32 , lpdwflags : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetProcessTimes ( hprocess : super::super::Foundation:: HANDLE , lpcreationtime : *mut super::super::Foundation:: FILETIME , lpexittime : *mut super::super::Foundation:: FILETIME , lpkerneltime : *mut super::super::Foundation:: FILETIME , lpusertime : *mut super::super::Foundation:: FILETIME ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn GetProcessVersion ( processid : u32 ) -> u32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetProcessWorkingSetSize ( hprocess : super::super::Foundation:: HANDLE , lpminimumworkingsetsize : *mut usize , lpmaximumworkingsetsize : *mut usize ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetStartupInfoA ( lpstartupinfo : *mut STARTUPINFOA ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetStartupInfoW ( lpstartupinfo : *mut STARTUPINFOW ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetSystemTimes ( lpidletime : *mut super::super::Foundation:: FILETIME , lpkerneltime : *mut super::super::Foundation:: FILETIME , lpusertime : *mut super::super::Foundation:: FILETIME ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetThreadDescription ( hthread : super::super::Foundation:: HANDLE , ppszthreaddescription : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] fn GetThreadGroupAffinity ( hthread : super::super::Foundation:: HANDLE , groupaffinity : *mut super::SystemInformation:: GROUP_AFFINITY ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetThreadIOPendingFlag ( hthread : super::super::Foundation:: HANDLE , lpioispending : *mut super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetThreadId ( thread : super::super::Foundation:: HANDLE ) -> u32 ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] fn GetThreadIdealProcessorEx ( hthread : super::super::Foundation:: HANDLE , lpidealprocessor : *mut super::Kernel:: PROCESSOR_NUMBER ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetThreadInformation ( hthread : super::super::Foundation:: HANDLE , threadinformationclass : THREAD_INFORMATION_CLASS , threadinformation : *mut ::core::ffi::c_void , threadinformationsize : u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetThreadPriority ( hthread : super::super::Foundation:: HANDLE ) -> i32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetThreadPriorityBoost ( hthread : super::super::Foundation:: HANDLE , pdisablepriorityboost : *mut super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] fn GetThreadSelectedCpuSetMasks ( thread : super::super::Foundation:: HANDLE , cpusetmasks : *mut super::SystemInformation:: GROUP_AFFINITY , cpusetmaskcount : u16 , requiredmaskcount : *mut u16 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetThreadSelectedCpuSets ( thread : super::super::Foundation:: HANDLE , cpusetids : *mut u32 , cpusetidcount : u32 , requiredidcount : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetThreadTimes ( hthread : super::super::Foundation:: HANDLE , lpcreationtime : *mut super::super::Foundation:: FILETIME , lpexittime : *mut super::super::Foundation:: FILETIME , lpkerneltime : *mut super::super::Foundation:: FILETIME , lpusertime : *mut super::super::Foundation:: FILETIME ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetUmsCompletionListEvent ( umscompletionlist : *const ::core::ffi::c_void , umscompletionevent : *mut super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn GetUmsSystemThreadInformation ( threadhandle : super::super::Foundation:: HANDLE , systemthreadinfo : *mut UMS_SYSTEM_THREAD_INFORMATION ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn InitOnceBeginInitialize ( lpinitonce : *mut RTL_RUN_ONCE , dwflags : u32 , fpending : *mut super::super::Foundation:: BOOL , lpcontext : *mut *mut ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn InitOnceComplete ( lpinitonce : *mut RTL_RUN_ONCE , dwflags : u32 , lpcontext : *const ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn InitOnceExecuteOnce ( initonce : *mut RTL_RUN_ONCE , initfn : PINIT_ONCE_FN , parameter : *mut ::core::ffi::c_void , context : *mut *mut ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn InitOnceInitialize ( initonce : *mut RTL_RUN_ONCE ) -> ( ) ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn InitializeConditionVariable ( conditionvariable : *mut RTL_CONDITION_VARIABLE ) -> ( ) ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] fn InitializeCriticalSection ( lpcriticalsection : *mut RTL_CRITICAL_SECTION ) -> ( ) ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] fn InitializeCriticalSectionAndSpinCount ( lpcriticalsection : *mut RTL_CRITICAL_SECTION , dwspincount : u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] fn InitializeCriticalSectionEx ( lpcriticalsection : *mut RTL_CRITICAL_SECTION , dwspincount : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn InitializeProcThreadAttributeList ( lpattributelist : LPPROC_THREAD_ATTRIBUTE_LIST , dwattributecount : u32 , dwflags : u32 , lpsize : *mut usize ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_System_Kernel")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_System_Kernel\"`*"] fn InitializeSListHead ( listhead : *mut super::Kernel:: SLIST_HEADER ) -> ( ) ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn InitializeSRWLock ( srwlock : *mut RTL_SRWLOCK ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn InitializeSynchronizationBarrier ( lpbarrier : *mut RTL_BARRIER , ltotalthreads : i32 , lspincount : i32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_System_Kernel")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_System_Kernel\"`*"] fn InterlockedFlushSList ( listhead : *mut super::Kernel:: SLIST_HEADER ) -> *mut super::Kernel:: SLIST_ENTRY ); +#[cfg(feature = "Win32_System_Kernel")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_System_Kernel\"`*"] fn InterlockedPopEntrySList ( listhead : *mut super::Kernel:: SLIST_HEADER ) -> *mut super::Kernel:: SLIST_ENTRY ); +#[cfg(feature = "Win32_System_Kernel")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_System_Kernel\"`*"] fn InterlockedPushEntrySList ( listhead : *mut super::Kernel:: SLIST_HEADER , listentry : *mut super::Kernel:: SLIST_ENTRY ) -> *mut super::Kernel:: SLIST_ENTRY ); +#[cfg(feature = "Win32_System_Kernel")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_System_Kernel\"`*"] fn InterlockedPushListSListEx ( listhead : *mut super::Kernel:: SLIST_HEADER , list : *mut super::Kernel:: SLIST_ENTRY , listend : *mut super::Kernel:: SLIST_ENTRY , count : u32 ) -> *mut super::Kernel:: SLIST_ENTRY ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn IsImmersiveProcess ( hprocess : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn IsProcessCritical ( hprocess : super::super::Foundation:: HANDLE , critical : *mut super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn IsProcessorFeaturePresent ( processorfeature : PROCESSOR_FEATURE_ID ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn IsThreadAFiber ( ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn IsThreadpoolTimerSet ( pti : *mut TP_TIMER ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn IsWow64Process ( hprocess : super::super::Foundation:: HANDLE , wow64process : *mut super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] fn IsWow64Process2 ( hprocess : super::super::Foundation:: HANDLE , pprocessmachine : *mut super::SystemInformation:: IMAGE_FILE_MACHINE , pnativemachine : *mut super::SystemInformation:: IMAGE_FILE_MACHINE ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] fn LeaveCriticalSection ( lpcriticalsection : *mut RTL_CRITICAL_SECTION ) -> ( ) ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] fn LeaveCriticalSectionWhenCallbackReturns ( pci : *mut TP_CALLBACK_INSTANCE , pcs : *mut RTL_CRITICAL_SECTION ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn NtQueryInformationProcess ( processhandle : super::super::Foundation:: HANDLE , processinformationclass : PROCESSINFOCLASS , processinformation : *mut ::core::ffi::c_void , processinformationlength : u32 , returnlength : *mut u32 ) -> super::super::Foundation:: NTSTATUS ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn NtQueryInformationThread ( threadhandle : super::super::Foundation:: HANDLE , threadinformationclass : THREADINFOCLASS , threadinformation : *mut ::core::ffi::c_void , threadinformationlength : u32 , returnlength : *mut u32 ) -> super::super::Foundation:: NTSTATUS ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn NtSetInformationThread ( threadhandle : super::super::Foundation:: HANDLE , threadinformationclass : THREADINFOCLASS , threadinformation : *const ::core::ffi::c_void , threadinformationlength : u32 ) -> super::super::Foundation:: NTSTATUS ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn OpenEventA ( dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS , binherithandle : super::super::Foundation:: BOOL , lpname : :: windows_sys::core::PCSTR ) -> super::super::Foundation:: HANDLE ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn OpenEventW ( dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS , binherithandle : super::super::Foundation:: BOOL , lpname : :: windows_sys::core::PCWSTR ) -> super::super::Foundation:: HANDLE ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn OpenMutexW ( dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS , binherithandle : super::super::Foundation:: BOOL , lpname : :: windows_sys::core::PCWSTR ) -> super::super::Foundation:: HANDLE ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn OpenPrivateNamespaceA ( lpboundarydescriptor : *const ::core::ffi::c_void , lpaliasprefix : :: windows_sys::core::PCSTR ) -> NamespaceHandle ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn OpenPrivateNamespaceW ( lpboundarydescriptor : *const ::core::ffi::c_void , lpaliasprefix : :: windows_sys::core::PCWSTR ) -> NamespaceHandle ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn OpenProcess ( dwdesiredaccess : PROCESS_ACCESS_RIGHTS , binherithandle : super::super::Foundation:: BOOL , dwprocessid : u32 ) -> super::super::Foundation:: HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn OpenProcessToken ( processhandle : super::super::Foundation:: HANDLE , desiredaccess : super::super::Security:: TOKEN_ACCESS_MASK , tokenhandle : *mut super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn OpenSemaphoreW ( dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS , binherithandle : super::super::Foundation:: BOOL , lpname : :: windows_sys::core::PCWSTR ) -> super::super::Foundation:: HANDLE ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn OpenThread ( dwdesiredaccess : THREAD_ACCESS_RIGHTS , binherithandle : super::super::Foundation:: BOOL , dwthreadid : u32 ) -> super::super::Foundation:: HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn OpenThreadToken ( threadhandle : super::super::Foundation:: HANDLE , desiredaccess : super::super::Security:: TOKEN_ACCESS_MASK , openasself : super::super::Foundation:: BOOL , tokenhandle : *mut super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn OpenWaitableTimerW ( dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS , binherithandle : super::super::Foundation:: BOOL , lptimername : :: windows_sys::core::PCWSTR ) -> super::super::Foundation:: HANDLE ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn PulseEvent ( hevent : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_System_Kernel")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_System_Kernel\"`*"] fn QueryDepthSList ( listhead : *const super::Kernel:: SLIST_HEADER ) -> u16 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn QueryFullProcessImageNameA ( hprocess : super::super::Foundation:: HANDLE , dwflags : PROCESS_NAME_FORMAT , lpexename : :: windows_sys::core::PSTR , lpdwsize : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn QueryFullProcessImageNameW ( hprocess : super::super::Foundation:: HANDLE , dwflags : PROCESS_NAME_FORMAT , lpexename : :: windows_sys::core::PWSTR , lpdwsize : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn QueryProcessAffinityUpdateMode ( hprocess : super::super::Foundation:: HANDLE , lpdwflags : *mut PROCESS_AFFINITY_AUTO_UPDATE_FLAGS ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn QueryProtectedPolicy ( policyguid : *const :: windows_sys::core::GUID , policyvalue : *mut usize ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn QueryThreadpoolStackInformation ( ptpp : PTP_POOL , ptpsi : *mut TP_POOL_STACK_INFORMATION ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn QueryUmsThreadInformation ( umsthread : *const ::core::ffi::c_void , umsthreadinfoclass : RTL_UMS_THREAD_INFO_CLASS , umsthreadinformation : *mut ::core::ffi::c_void , umsthreadinformationlength : u32 , returnlength : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn QueueUserAPC ( pfnapc : super::super::Foundation:: PAPCFUNC , hthread : super::super::Foundation:: HANDLE , dwdata : usize ) -> u32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn QueueUserAPC2 ( apcroutine : super::super::Foundation:: PAPCFUNC , thread : super::super::Foundation:: HANDLE , data : usize , flags : QUEUE_USER_APC_FLAGS ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn QueueUserWorkItem ( function : LPTHREAD_START_ROUTINE , context : *const ::core::ffi::c_void , flags : WORKER_THREAD_FLAGS ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn RegisterWaitForSingleObject ( phnewwaitobject : *mut super::super::Foundation:: HANDLE , hobject : super::super::Foundation:: HANDLE , callback : WAITORTIMERCALLBACK , context : *const ::core::ffi::c_void , dwmilliseconds : u32 , dwflags : WORKER_THREAD_FLAGS ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn ReleaseMutex ( hmutex : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn ReleaseMutexWhenCallbackReturns ( pci : *mut TP_CALLBACK_INSTANCE , r#mut : super::super::Foundation:: HANDLE ) -> ( ) ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn ReleaseSRWLockExclusive ( srwlock : *mut RTL_SRWLOCK ) -> ( ) ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn ReleaseSRWLockShared ( srwlock : *mut RTL_SRWLOCK ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn ReleaseSemaphore ( hsemaphore : super::super::Foundation:: HANDLE , lreleasecount : i32 , lppreviouscount : *mut i32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn ReleaseSemaphoreWhenCallbackReturns ( pci : *mut TP_CALLBACK_INSTANCE , sem : super::super::Foundation:: HANDLE , crel : u32 ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn ResetEvent ( hevent : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn ResumeThread ( hthread : super::super::Foundation:: HANDLE ) -> u32 ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] fn SetCriticalSectionSpinCount ( lpcriticalsection : *mut RTL_CRITICAL_SECTION , dwspincount : u32 ) -> u32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetEvent ( hevent : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetEventWhenCallbackReturns ( pci : *mut TP_CALLBACK_INSTANCE , evt : super::super::Foundation:: HANDLE ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetPriorityClass ( hprocess : super::super::Foundation:: HANDLE , dwpriorityclass : PROCESS_CREATION_FLAGS ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetProcessAffinityMask ( hprocess : super::super::Foundation:: HANDLE , dwprocessaffinitymask : usize ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetProcessAffinityUpdateMode ( hprocess : super::super::Foundation:: HANDLE , dwflags : PROCESS_AFFINITY_AUTO_UPDATE_FLAGS ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetProcessDEPPolicy ( dwflags : PROCESS_DEP_FLAGS ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] fn SetProcessDefaultCpuSetMasks ( process : super::super::Foundation:: HANDLE , cpusetmasks : *const super::SystemInformation:: GROUP_AFFINITY , cpusetmaskcount : u16 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetProcessDefaultCpuSets ( process : super::super::Foundation:: HANDLE , cpusetids : *const u32 , cpusetidcount : u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetProcessDynamicEHContinuationTargets ( process : super::super::Foundation:: HANDLE , numberoftargets : u16 , targets : *mut PROCESS_DYNAMIC_EH_CONTINUATION_TARGET ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetProcessDynamicEnforcedCetCompatibleRanges ( process : super::super::Foundation:: HANDLE , numberofranges : u16 , ranges : *mut PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetProcessInformation ( hprocess : super::super::Foundation:: HANDLE , processinformationclass : PROCESS_INFORMATION_CLASS , processinformation : *const ::core::ffi::c_void , processinformationsize : u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetProcessMitigationPolicy ( mitigationpolicy : PROCESS_MITIGATION_POLICY , lpbuffer : *const ::core::ffi::c_void , dwlength : usize ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetProcessPriorityBoost ( hprocess : super::super::Foundation:: HANDLE , bdisablepriorityboost : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetProcessRestrictionExemption ( fenableexemption : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetProcessShutdownParameters ( dwlevel : u32 , dwflags : u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetProcessWorkingSetSize ( hprocess : super::super::Foundation:: HANDLE , dwminimumworkingsetsize : usize , dwmaximumworkingsetsize : usize ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetProtectedPolicy ( policyguid : *const :: windows_sys::core::GUID , policyvalue : usize , oldpolicyvalue : *mut usize ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetThreadAffinityMask ( hthread : super::super::Foundation:: HANDLE , dwthreadaffinitymask : usize ) -> usize ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetThreadDescription ( hthread : super::super::Foundation:: HANDLE , lpthreaddescription : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] fn SetThreadGroupAffinity ( hthread : super::super::Foundation:: HANDLE , groupaffinity : *const super::SystemInformation:: GROUP_AFFINITY , previousgroupaffinity : *mut super::SystemInformation:: GROUP_AFFINITY ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetThreadIdealProcessor ( hthread : super::super::Foundation:: HANDLE , dwidealprocessor : u32 ) -> u32 ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] fn SetThreadIdealProcessorEx ( hthread : super::super::Foundation:: HANDLE , lpidealprocessor : *const super::Kernel:: PROCESSOR_NUMBER , lppreviousidealprocessor : *mut super::Kernel:: PROCESSOR_NUMBER ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetThreadInformation ( hthread : super::super::Foundation:: HANDLE , threadinformationclass : THREAD_INFORMATION_CLASS , threadinformation : *const ::core::ffi::c_void , threadinformationsize : u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetThreadPriority ( hthread : super::super::Foundation:: HANDLE , npriority : THREAD_PRIORITY ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetThreadPriorityBoost ( hthread : super::super::Foundation:: HANDLE , bdisablepriorityboost : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_SystemInformation\"`*"] fn SetThreadSelectedCpuSetMasks ( thread : super::super::Foundation:: HANDLE , cpusetmasks : *const super::SystemInformation:: GROUP_AFFINITY , cpusetmaskcount : u16 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetThreadSelectedCpuSets ( thread : super::super::Foundation:: HANDLE , cpusetids : *const u32 , cpusetidcount : u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetThreadStackGuarantee ( stacksizeinbytes : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetThreadToken ( thread : *const super::super::Foundation:: HANDLE , token : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetThreadpoolStackInformation ( ptpp : PTP_POOL , ptpsi : *const TP_POOL_STACK_INFORMATION ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn SetThreadpoolThreadMaximum ( ptpp : PTP_POOL , cthrdmost : u32 ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetThreadpoolThreadMinimum ( ptpp : PTP_POOL , cthrdmic : u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetThreadpoolTimer ( pti : *mut TP_TIMER , pftduetime : *const super::super::Foundation:: FILETIME , msperiod : u32 , mswindowlength : u32 ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetThreadpoolTimerEx ( pti : *mut TP_TIMER , pftduetime : *const super::super::Foundation:: FILETIME , msperiod : u32 , mswindowlength : u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetThreadpoolWait ( pwa : *mut TP_WAIT , h : super::super::Foundation:: HANDLE , pfttimeout : *const super::super::Foundation:: FILETIME ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetThreadpoolWaitEx ( pwa : *mut TP_WAIT , h : super::super::Foundation:: HANDLE , pfttimeout : *const super::super::Foundation:: FILETIME , reserved : *mut ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetTimerQueueTimer ( timerqueue : super::super::Foundation:: HANDLE , callback : WAITORTIMERCALLBACK , parameter : *const ::core::ffi::c_void , duetime : u32 , period : u32 , preferio : super::super::Foundation:: BOOL ) -> super::super::Foundation:: HANDLE ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetUmsThreadInformation ( umsthread : *const ::core::ffi::c_void , umsthreadinfoclass : RTL_UMS_THREAD_INFO_CLASS , umsthreadinformation : *const ::core::ffi::c_void , umsthreadinformationlength : u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetWaitableTimer ( htimer : super::super::Foundation:: HANDLE , lpduetime : *const i64 , lperiod : i32 , pfncompletionroutine : PTIMERAPCROUTINE , lpargtocompletionroutine : *const ::core::ffi::c_void , fresume : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SetWaitableTimerEx ( htimer : super::super::Foundation:: HANDLE , lpduetime : *const i64 , lperiod : i32 , pfncompletionroutine : PTIMERAPCROUTINE , lpargtocompletionroutine : *const ::core::ffi::c_void , wakecontext : *const REASON_CONTEXT , tolerabledelay : u32 ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn Sleep ( dwmilliseconds : u32 ) -> ( ) ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] fn SleepConditionVariableCS ( conditionvariable : *mut RTL_CONDITION_VARIABLE , criticalsection : *mut RTL_CRITICAL_SECTION , dwmilliseconds : u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SleepConditionVariableSRW ( conditionvariable : *mut RTL_CONDITION_VARIABLE , srwlock : *mut RTL_SRWLOCK , dwmilliseconds : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SleepEx ( dwmilliseconds : u32 , balertable : super::super::Foundation:: BOOL ) -> u32 ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn StartThreadpoolIo ( pio : *mut TP_IO ) -> ( ) ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn SubmitThreadpoolWork ( pwk : *mut TP_WORK ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SuspendThread ( hthread : super::super::Foundation:: HANDLE ) -> u32 ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn SwitchToFiber ( lpfiber : *const ::core::ffi::c_void ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn SwitchToThread ( ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn TerminateProcess ( hprocess : super::super::Foundation:: HANDLE , uexitcode : u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn TerminateThread ( hthread : super::super::Foundation:: HANDLE , dwexitcode : u32 ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn TlsAlloc ( ) -> u32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn TlsFree ( dwtlsindex : u32 ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn TlsGetValue ( dwtlsindex : u32 ) -> *mut ::core::ffi::c_void ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn TlsSetValue ( dwtlsindex : u32 , lptlsvalue : *const ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn TryAcquireSRWLockExclusive ( srwlock : *mut RTL_SRWLOCK ) -> super::super::Foundation:: BOOLEAN ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn TryAcquireSRWLockShared ( srwlock : *mut RTL_SRWLOCK ) -> super::super::Foundation:: BOOLEAN ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] fn TryEnterCriticalSection ( lpcriticalsection : *mut RTL_CRITICAL_SECTION ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn TrySubmitThreadpoolCallback ( pfns : PTP_SIMPLE_CALLBACK , pv : *mut ::core::ffi::c_void , pcbe : *const TP_CALLBACK_ENVIRON_V3 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn UmsThreadYield ( schedulerparam : *const ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn UnregisterWait ( waithandle : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn UnregisterWaitEx ( waithandle : super::super::Foundation:: HANDLE , completionevent : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn UpdateProcThreadAttribute ( lpattributelist : LPPROC_THREAD_ATTRIBUTE_LIST , dwflags : u32 , attribute : usize , lpvalue : *const ::core::ffi::c_void , cbsize : usize , lppreviousvalue : *mut ::core::ffi::c_void , lpreturnsize : *const usize ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn WaitForInputIdle ( hprocess : super::super::Foundation:: HANDLE , dwmilliseconds : u32 ) -> u32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn WaitForMultipleObjects ( ncount : u32 , lphandles : *const super::super::Foundation:: HANDLE , bwaitall : super::super::Foundation:: BOOL , dwmilliseconds : u32 ) -> super::super::Foundation:: WIN32_ERROR ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn WaitForMultipleObjectsEx ( ncount : u32 , lphandles : *const super::super::Foundation:: HANDLE , bwaitall : super::super::Foundation:: BOOL , dwmilliseconds : u32 , balertable : super::super::Foundation:: BOOL ) -> super::super::Foundation:: WIN32_ERROR ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn WaitForSingleObject ( hhandle : super::super::Foundation:: HANDLE , dwmilliseconds : u32 ) -> super::super::Foundation:: WIN32_ERROR ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn WaitForSingleObjectEx ( hhandle : super::super::Foundation:: HANDLE , dwmilliseconds : u32 , balertable : super::super::Foundation:: BOOL ) -> super::super::Foundation:: WIN32_ERROR ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn WaitForThreadpoolIoCallbacks ( pio : *mut TP_IO , fcancelpendingcallbacks : super::super::Foundation:: BOOL ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn WaitForThreadpoolTimerCallbacks ( pti : *mut TP_TIMER , fcancelpendingcallbacks : super::super::Foundation:: BOOL ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn WaitForThreadpoolWaitCallbacks ( pwa : *mut TP_WAIT , fcancelpendingcallbacks : super::super::Foundation:: BOOL ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn WaitForThreadpoolWorkCallbacks ( pwk : *mut TP_WORK , fcancelpendingcallbacks : super::super::Foundation:: BOOL ) -> ( ) ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "api-ms-win-core-synch-l1-2-0.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn WaitOnAddress ( address : *const ::core::ffi::c_void , compareaddress : *const ::core::ffi::c_void , addresssize : usize , dwmilliseconds : u32 ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn WakeAllConditionVariable ( conditionvariable : *mut RTL_CONDITION_VARIABLE ) -> ( ) ); +::windows_sys::core::link ! ( "api-ms-win-core-synch-l1-2-0.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn WakeByAddressAll ( address : *const ::core::ffi::c_void ) -> ( ) ); +::windows_sys::core::link ! ( "api-ms-win-core-synch-l1-2-0.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn WakeByAddressSingle ( address : *const ::core::ffi::c_void ) -> ( ) ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn WakeConditionVariable ( conditionvariable : *mut RTL_CONDITION_VARIABLE ) -> ( ) ); +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn WinExec ( lpcmdline : :: windows_sys::core::PCSTR , ucmdshow : u32 ) -> u32 ); +::windows_sys::core::link ! ( "api-ms-win-core-wow64-l1-1-1.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`*"] fn Wow64SetThreadDefaultGuestMachine ( machine : u16 ) -> u16 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] fn Wow64SuspendThread ( hthread : super::super::Foundation:: HANDLE ) -> u32 ); #[doc = "*Required features: `\"Win32_System_Threading\"`*"] pub const CONDITION_VARIABLE_LOCKMODE_SHARED: u32 = 1u32; #[doc = "*Required features: `\"Win32_System_Threading\"`*"] @@ -843,6 +542,8 @@ pub const CREATE_WAITABLE_TIMER_HIGH_RESOLUTION: u32 = 2u32; #[doc = "*Required features: `\"Win32_System_Threading\"`*"] pub const CREATE_WAITABLE_TIMER_MANUAL_RESET: u32 = 1u32; #[doc = "*Required features: `\"Win32_System_Threading\"`*"] +pub const FLS_OUT_OF_INDEXES: u32 = 4294967295u32; +#[doc = "*Required features: `\"Win32_System_Threading\"`*"] pub const INIT_ONCE_ASYNC: u32 = 2u32; #[doc = "*Required features: `\"Win32_System_Threading\"`*"] pub const INIT_ONCE_CHECK_ONLY: u32 = 1u32; @@ -921,6 +622,8 @@ pub const THREAD_POWER_THROTTLING_EXECUTION_SPEED: u32 = 1u32; #[doc = "*Required features: `\"Win32_System_Threading\"`*"] pub const THREAD_POWER_THROTTLING_VALID_FLAGS: u32 = 1u32; #[doc = "*Required features: `\"Win32_System_Threading\"`*"] +pub const TLS_OUT_OF_INDEXES: u32 = 4294967295u32; +#[doc = "*Required features: `\"Win32_System_Threading\"`*"] pub type AVRT_PRIORITY = i32; #[doc = "*Required features: `\"Win32_System_Threading\"`*"] pub const AVRT_PRIORITY_VERYLOW: AVRT_PRIORITY = -2i32; @@ -2139,33 +1842,33 @@ impl ::core::clone::Clone for UMS_SYSTEM_THREAD_INFORMATION_0_0 { } } #[doc = "*Required features: `\"Win32_System_Threading\"`*"] -pub type LPFIBER_START_ROUTINE = ::core::option::Option; +pub type LPFIBER_START_ROUTINE = ::core::option::Option ()>; #[doc = "*Required features: `\"Win32_System_Threading\"`*"] pub type LPTHREAD_START_ROUTINE = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_System_Threading\"`*"] -pub type PFLS_CALLBACK_FUNCTION = ::core::option::Option; +pub type PFLS_CALLBACK_FUNCTION = ::core::option::Option ()>; #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type PINIT_ONCE_FN = ::core::option::Option super::super::Foundation::BOOL>; #[doc = "*Required features: `\"Win32_System_Threading\"`*"] -pub type PPS_POST_PROCESS_INIT_ROUTINE = ::core::option::Option; +pub type PPS_POST_PROCESS_INIT_ROUTINE = ::core::option::Option ()>; #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_System_SystemServices\"`*"] #[cfg(feature = "Win32_System_SystemServices")] -pub type PRTL_UMS_SCHEDULER_ENTRY_POINT = ::core::option::Option; +pub type PRTL_UMS_SCHEDULER_ENTRY_POINT = ::core::option::Option ()>; #[doc = "*Required features: `\"Win32_System_Threading\"`*"] -pub type PTIMERAPCROUTINE = ::core::option::Option; +pub type PTIMERAPCROUTINE = ::core::option::Option ()>; #[doc = "*Required features: `\"Win32_System_Threading\"`*"] -pub type PTP_CLEANUP_GROUP_CANCEL_CALLBACK = ::core::option::Option; +pub type PTP_CLEANUP_GROUP_CANCEL_CALLBACK = ::core::option::Option ()>; #[doc = "*Required features: `\"Win32_System_Threading\"`*"] -pub type PTP_SIMPLE_CALLBACK = ::core::option::Option; +pub type PTP_SIMPLE_CALLBACK = ::core::option::Option ()>; #[doc = "*Required features: `\"Win32_System_Threading\"`*"] -pub type PTP_TIMER_CALLBACK = ::core::option::Option; +pub type PTP_TIMER_CALLBACK = ::core::option::Option ()>; #[doc = "*Required features: `\"Win32_System_Threading\"`*"] -pub type PTP_WAIT_CALLBACK = ::core::option::Option; +pub type PTP_WAIT_CALLBACK = ::core::option::Option ()>; #[doc = "*Required features: `\"Win32_System_Threading\"`*"] -pub type PTP_WIN32_IO_CALLBACK = ::core::option::Option; +pub type PTP_WIN32_IO_CALLBACK = ::core::option::Option ()>; #[doc = "*Required features: `\"Win32_System_Threading\"`*"] -pub type PTP_WORK_CALLBACK = ::core::option::Option; +pub type PTP_WORK_CALLBACK = ::core::option::Option ()>; #[doc = "*Required features: `\"Win32_System_Threading\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type WAITORTIMERCALLBACK = ::core::option::Option; +pub type WAITORTIMERCALLBACK = ::core::option::Option ()>; -- cgit v1.2.3