Jungo WinDriver  
Official Documentation

◆ OsSemaphoreCreate()

DWORD DLLCALLCONV OsSemaphoreCreate ( _Outptr_ HANDLE *  phOsSemaphore,
_In_ DWORD  dwInitialCount,
_In_ DWORD  dwMaximumCount 
)

Creates a semaphore object.

Parameters
[out]phOsSemaphoreThe pointer to a variable that receives a handle to the newly created semaphore object
[in]dwInitialCountThe initial count of the semaphore
[in]dwMaximumCountThe maximum count of the semaphore
Returns
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise