Group: Synchronization - Library: kernel32
The ReleaseSemaphore function increases the count of the specified semaphore object by a specified amount
BOOL ReleaseSemaphore(
HANDLE hSemaphore, // handle of the semaphore object
LONG cReleaseCount, // amount to add to current count
LPLONG lplPreviousCount // address of previous count
);
DECLARE INTEGER ReleaseSemaphore IN kernel32;
INTEGER hSemaphore,;
INTEGER lReleaseCount,;
INTEGER @ lpPreviousCount
hSemaphore Identifies the semaphore object
cReleaseCount Specifies the amount by which the semaphore object"s current count is to be increased
lplPreviousCount Points to a 32-bit variable to receive the previous count for the semaphore
If the function succeeds, the return value is TRUE
Home