CritSecCallback

mov     ebx, VMHandle
mov     edi, ThreadHandle
mov     edx, RefData
mov     ebp, OFFSET32 Client_Reg_Struc
call    [CritSecCallback]
 

Performs programmer-defined processing when a virtual device releases the critical section. CritSecCallback is a programmer-defined callback function installed by the Call_When_Not_Critical service. Uses Flags.

VMHandle
Handle of the current virtual machine.
ThreadHandle
Handle of the current thread.
RefData
Reference data from the virtual device that installed the callback function.
Client_Reg_Struc
Address of a Client_Reg_Struc structure containing the registers of the current virtual machine.

The callback function can carry out any operation and can modify the EAX, EBX, ECX, EDX, ESI, EDI, and Flags registers.

See Also

Call_When_Not_Critical