PyHANDLE = CreateSemaphore(SemaphoreAttributes, InitialCount
, MaximumCount
, SemaphoreName
)
Creates a semaphore, or opens an existing one
Parameters
SemaphoreAttributes : PySECURITY_ATTRIBUTES
Specifies inheritance and security descriptor for object, or None for defaultsInitialCount : int
Initial countMaximumCount : int
Maximum countSemaphoreName : str
Semaphore-object name, or NoneWin32 API References
Search for CreateSemaphore at msdn, google or google groups.
Return Value
The result is a handle to the object