SEMAPHORES

Returns a list of semaphores

Service:Synchronization
Defined In:nwsync.h

Structure

  typedef struct 
  { 
     nuint16     nextRequest; 
     nuint16     openCount; 
     nuint16     semaphoreValue; 
     nuint16     semaphoreCount; 
     SEMAPHORE   semaphores[170]; 
     nuint16     curRecord; 
  } SEMAPHORES;
  

Delphi Structure

  uses calwin32 
   
  SEMAPHORES = Record 
     nextRequest : nuint16;  
     openCount : nuint16;  
     semaphoreValue : nuint16;  
     semaphoreCount : nuint16;  
     semaphores : Array[0..169] Of SEMAPHORE;  
     curRecord : nuint16; 
  End;
  

Fields

nextRequest
Is used internally by NWScanSemaphoresByName to retrieve the next request.
openCount
Specifies the number of logical connections that have the semaphore open.
semaphoreValue
Specifies the current value of the semaphore (-127 to 128).
semaphoreCount
Specifies the number of SEMAPHORE structures.
semaphores
Specifies a buffer of SEMAPHORE structures.
curRecord
Is for internal use only.

Remarks

You must not modify the values in nextRequest and curRecord; they are used internally to return the next record in a request.