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> wssemaphoretasklist()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 WSSemaphoreTaskList()
------------------------------------------------------------------------------
 Purpose:
 Get task numbers using semaphores on a workstation.

 Syntax:
 iTask = WSSemaphoreTaskList( iConNum, bStartFlag )

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

 Returns:
 A numeric value (signed short int).

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

 Description:
 WSSemaphoreTaskList() can be used to obtain a list of semaphore task
 numbers for a specified connection iConNum. It is first called with
 bStartFlag set to TRUE, then called repeatedly with bStartFlag set to
 FALSE until NOVERRINT is returned, indicating the end of the list.

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

 Example:
 // To return the list of semaphore task numbers for connection 5:
 iTaskNum = WSSemaphoreTaskList( 5, TRUE )
 do while iTaskNum != NOVERRINT
    ? iTaskNum
    iTaskNum = WSSemaphoreTaskList( 5, FALSE )
 enddo

 Notes:
 This function requires console operator or Supervisor rights.

 If NOVERRINT is returned, check NWErrorGet().

See Also: WSSemaphoreList() WSSemaphoreTotalGet()

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