Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.18 KB

File metadata and controls

53 lines (36 loc) · 1.18 KB

Home

Function name : ReleaseSemaphore

Group: Synchronization - Library: kernel32


The ReleaseSemaphore function increases the count of the specified semaphore object by a specified amount


Code examples:

Using the Semaphore object

Declaration:

BOOL ReleaseSemaphore(
    HANDLE  hSemaphore,	// handle of the semaphore object
    LONG  cReleaseCount,	// amount to add to current count
    LPLONG  lplPreviousCount 	// address of previous count
   );	
  

FoxPro declaration:

DECLARE INTEGER ReleaseSemaphore IN kernel32;
	INTEGER   hSemaphore,;
	INTEGER   lReleaseCount,;
	INTEGER @ lpPreviousCount
  

Parameters:

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


Return value:

If the function succeeds, the return value is TRUE