13#ifndef _FXWAITLOCK_HPP_
14#define _FXWAITLOCK_HPP_
25#if (FX_CORE_MODE==FX_CORE_KERNEL_MODE)
41#if (FX_CORE_MODE==FX_CORE_KERNEL_MODE)
77 Mx::MxEnterCriticalRegion();
110 Mx::MxEnterCriticalRegion();
140 Mx::MxLeaveCriticalRegion();
226#if (FX_CORE_MODE==FX_CORE_KERNEL_MODE)
265 Mx::MxEnterCriticalRegion();
272 Mx::MxLeaveCriticalRegion();
305 Mx::MxLeaveCriticalRegion();
CHECK_RETURN_IF_USER_MODE NTSTATUS Initialize()
_Must_inspect_result_ __in_opt PLONGLONG Timeout
__drv_valueIs(==0;==258)) __drv_when(Timeout !
__drv_when(Timeout==NULL, __drv_valueIs(==0)) __drv_when(Timeout !
CHECK_RETURN_IF_USER_MODE NTSTATUS Initialize()
static _Must_inspect_result_ NTSTATUS _Create(__in PFX_DRIVER_GLOBALS DriverGlobals, __in_opt PWDF_OBJECT_ATTRIBUTES Attributes, __in_opt FxObject *ParentObject, __in BOOLEAN AssignDriverAsDefaultParent, __out WDFWAITLOCK *LockHandle)
FxWaitLock(__in PFX_DRIVER_GLOBALS FxDriverGlobals)
_Must_inspect_result_ __inline NTSTATUS WaitFor(__in KWAIT_REASON WaitReason, __in KPROCESSOR_MODE WaitMode, __in BOOLEAN Alertable, __in_opt PLARGE_INTEGER Timeout)
__inline PVOID GetEvent()
CHECK_RETURN_IF_USER_MODE __inline NTSTATUS Initialize(__in EVENT_TYPE Type, __in BOOLEAN InitialState)
__inline LONG ReadState()
static __inline MxThread MxGetCurrentThread()
#define _Acquires_lock_(lock)
#define _Releases_lock_(lock)
#define NT_SUCCESS(StatCode)
#define __drv_when(cond, annotes)
pPkgPnp m_DeviceInterfaceLock AcquireLock(pFxDriverGlobals)
pPkgPnp m_DeviceInterfaceLock ReleaseLock(pFxDriverGlobals)
#define CHECK_RETURN_IF_USER_MODE
_In_ ACCESS_MASK _In_opt_ POBJECT_ATTRIBUTES _In_ EVENT_TYPE _In_ BOOLEAN InitialState
#define _Must_inspect_result_
#define UNREFERENCED_PARAMETER(P)
__GNU_EXTENSION typedef __int64 * PLONGLONG
enum _EVENT_TYPE EVENT_TYPE
NTSTATUS EnterCRAndWaitAndLeave(VOID)
__drv_valueIs(==0;==258) _Acquires_lock_(_Global_critical_region_) NTSTATUS EnterCRAndWait(VOID)
FxCREvent * GetSelfPointer(VOID)
_Releases_lock_(_Global_critical_region_) VOID LeaveCR(VOID)
FxCREvent(__in EVENT_TYPE Type, __in BOOLEAN InitialState)
_Must_inspect_result_ NTSTATUS EnterCRAndWaitAndLeave(__in PLONGLONG Timeout)
__drv_when(Timeout==NULL, __drv_valueIs(==0)) __drv_when(Timeout !
FxCREvent * operator&(VOID)
FxCREvent(__in BOOLEAN InitialState=FALSE)
CHECK_RETURN_IF_USER_MODE NTSTATUS Initialize(__in EVENT_TYPE Type, __in BOOLEAN InitialState)
CHECK_RETURN_IF_USER_MODE NTSTATUS Initialize(__in BOOLEAN InitialState=FALSE)
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList
*LockHandle LockHandle _Out_ PKLOCK_QUEUE_HANDLE LockHandle