PyHANDLE = CreateSemaphore(SemaphoreAttributes, InitialCount , MaximumCount , SemaphoreName )

Creates a semaphore, or opens an existing one


SemaphoreAttributes : PySECURITY_ATTRIBUTES

Specifies inheritance and security descriptor for object, or None for defaults

InitialCount : int

Initial count

MaximumCount : int

Maximum count

SemaphoreName : str

Semaphore-object name, or None

Win32 API References

Search for CreateSemaphore at msdn, google or google groups.

Return Value

The result is a handle to the object