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> semwslist()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SemWSList()
------------------------------------------------------------------------------
 Purpose:
 Get a list of workstations with a semaphore open.

 Syntax:
 iConNum = SemWSList( lpszSemName, bStartFlag )

 Parameters:
 lpszSemName The name of the semaphore.
 bStartFlag  Flag signifying start of list.

 Returns:
 A numeric value (signed short int).

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

 Description:
 SemWSList() is used to obtain a list of connection numbers that have
 the semaphore specified by the name lpszSemName open.

 The function is initially called with lpszSemName set to the name of the
 semaphore and bStartFlag set to TRUE. On the first call, SemWSList()
 returns the number of workstations that have the semaphore open. Subsequent
 repeated calls with bStartFlag set to FALSE return the connection numbers
 that have the semaphore open.

 Returns NOVERRINT if an error occurs.

 Example:
 // To retrieve a list of workstations that have the semaphore MYSEM open:
 iSemCount = SemWSList( "MYSEM", TRUE )
 for i = 1 to iSemCount
    ? SemWSList( "MYSEM", FALSE ) // Get each connection number
 next

 Notes:
 This function requires Console Operator or Supervisor rights.

See Also: SemOpen() SemClose()

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