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> wssemaphorelist()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 WSSemaphoreList()
------------------------------------------------------------------------------
 Purpose:
 Lists open semaphore names for a workstation.

 Syntax:
 lpszSemName = WSSemaphoreList( iConNum, bStartFlag )

 Parameters:
 iConNum    The connection number.
 bStartFlag The start of list indicator

 Returns:
 A character string of length 127.

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

 Description:
 WSSemaphoreList() is used to obtain a list of open semaphores for the
 specified connection iConNum. It is initially called with bStartFlag set
 to TRUE, and then called repeatedly with bStartFlag set to FALSE until
 it returns an empty string. Returns an empty string on the first call
 if the specified workstation has no semaphores open, or if an error occurs.

 Example:
 // To get a list of the open semaphore names for connection 5:
 lpszNameStr = WSSemaphoreList ( 5, TRUE )
 do while !empty( lpszNameStr )
    ? lpszNameStr
    lpszNameStr = WSSemaphoreList( 5, FALSE )
 enddo

 Notes:
 This function requires console operator or Supervisor rights.

 After an empty string is returned, check NWErrorGet().

See Also: WSSemaphoreTaskList() WSSemaphoreTotalGet()

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