Controls entries to or exits from a critical section in MTDLL servers.
SYS(2336 [, nAction]) |
Parameters
- nAction
-
Specifies the action performed by the SYS(2336) function according to the following table.
nAction Description (none)
Returns the current reference count. (Default)
1
Calls EnterCriticalSection.
2
Calls LeaveCriticalSection.
3
Calls LeaveCriticalSection as many times as necessary to reduce the reference count to 0, thereby freeing the critical section.
Return Value
Character. SYS(2336) returns the reference count for all values of nAction.
Remarks
SYS(2336) accesses EnterCriticalSection and LeaveCriticalSection Windows API calls. You can find details of these functions in the MSDN Library Platform SDK reference at