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

 Syntax:
 iConNum = SemWSLst( lpszSemName, bStartFlag )

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

 Returns:
 A numeric value (signed short int).

 Description:
 SemWSLst() 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, SemWSLst()
 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 = SemWSLst( "MYSEM", TRUE )
 for i = 1 to iSemCount
    ? SemWSLst( "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