NWScanSemaphoresByConn
Scans information about the semaphores opened by a specified connection
#include <nwsync.h> or #include <nwcalls.h> N_EXTERN_LIBRARY( NWCCODE )NWScanSemaphoresByConn ( NWCONN_HANDLE conn, NWCONN_NUM connNum, pnint16 iterHandle, CONN_SEMAPHORE NWPTR semaphore, CONN_SEMAPHORES NWPTR semaphores);
uses calwin32 Function NWScanSemaphoresByConn (conn : NWCONN_HANDLE; connNum : NWCONN_NUM; iterHandle : pnint16; Var semaphore : CONN_SEMAPHORE; Var semaphores : CONN_SEMAPHORES ) : NWCCODE;
These are common return values; see Return Values (NDK: Connection, Message, and NCP Extensions) for more information.
For 3.x, you must have console operator privileges to call NWScanSemaphoresByConn or NO_CONSOLE_PRIVILEGES will be returned.
For 4.x and above, a client can call NWScanSemaphoresByConn to return information about its connection without needing console operator privileges. To return information about other connection numbers, you must have console rights. A client with console privileges can pass any valid connection number to NWScanSemaphoresByConn and receive information about that connection.
iterHandle returns -1 upon completion, and should not be changed during the scan.
If semaphore is a NULL pointer, semaphores returns the records in a group, instead of one by one.
NWScanSemaphoresByConn returns SUCCESSFUL even when connNum is invalid. Call NWGetFileServerInformation to return the maxConns supported for the specific server. Only use connNum in the range of zero- maxConns.