_CreateMutex

include vmm.h

DWORD SERVICE _CreateMutex(LONG Boost, ULONG Flags)
 

Allocates memory for and initializes a mutex. The priority boost is stored in the mutex, and is used to boost a thread's priority when it acquires the mutex. When a thread blocks waiting for the mutex it is given one half of the priority boost. Uses EAX, ECX, EDX, and flags.

Boost
The amount by which the thread that owns the mutex should be boosted.
Flags
Execution options. It can be the following value:
Value Meaning
MUTEX_MUST_COMPLETE A "must-complete" section is entered each time the mutex is entered.