Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> wssemaphoretotalget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 WSSemaphoreTotalGet()
------------------------------------------------------------------------------
 Purpose:
 Get the total number of semaphores a workstation has open.

 Syntax:
 iTotal = WSSemaphoreTotalGet( iConNum )

 Parameters:
 iConNum The connection number.

 Returns:
 A numeric value (signed short int).

 The CA-Clipper name for this function is:
 WSSemTotGet()

 Description:
 WSSemaphoreTotalGet() returns the number of semaphores the specified
 connection number iConNum has open. If the connection number is passed
 as the constant NOVDEFINT, the current workstation connection is assumed.

 Returns 0 if the specified workstation has no semaphores open, or NOVERRINT
 if an error occurs.

 Example:
 // To get the number of open semaphores for connection 5:
 iTotal = WSSemaphoreTotalGet(5)
 if ( iTotal != NOVERRINT )
    ? "Connection 5 has ", iTotal, " open semaphores"
 endif

 Notes:
 This function requires console operator or Supervisor rights.

See Also: WSSemaphoreTaskList() WSSemaphoreList()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson