Get_Crit_Section_Status


include vmm.inc

VMMcall Get_Crit_Section_Status

mov     [VMHandle], ebx
mov     [Claims], ecx
jc      high_priority

Retrieves the claim count and owner of the critical section. Uses Flags

Windows 3.1 sometimes delays releasing the critical section until events are processed. This service causes the system to complete any delayed releases before the service returns the status. This may cause a task switch if another virtual machine has a delayed release.

If a virtual device must ensure that it owns the critical section to successfully complete an operation, it should call this service to make sure that the critical section status is up to date.

This is not an asynchronous service; it must not be called at interrupt time.

See also Get_Crit_Status_No_Block