NWScanLogicalLocksByConn
Scans for all logical record locks in a specified connection
#include <nwsync.h>
or
#include <nwcalls.h>
N_EXTERN_LIBRARY( NWCCODE )NWScanLogicalLocksByConn (
NWCONN_HANDLE conn,
NWCONN_NUM connNum,
pnint16 iterHandle,
CONN_LOGICAL_LOCK N_FAR *logicalLock,
CONN_LOGICAL_LOCKS N_FAR *logicalLocks);
uses calwin32
Function NWScanLogicalLocksByConn
(conn : NWCONN_HANDLE;
connNum : NWCONN_NUM;
iterHandle : pnint16;
Var logicalLock : CONN_LOGICAL_LOCK;
Var logicalLocks : CONN_LOGICAL_LOCKS
) : NWCCODE;
These are common return values; see Return Values (NDK: Connection, Message, and NCP Extensions) for more information.
The client must have console operator rights to call NWScanLogicalLocksByConn.
iterHandle should be set to 0 initially. Each subsequent call returns the number of the next record to be scanned. iterHandle returns -1 upon completion and should not be changed during the scan.
CONN_LOGICAL_LOCKS is a buffer and should be passed to subsequent NWScanLogicalLocksByConn calls without modification.
If you pass a non-NULL pointer to logicalLock, CONN_LOGICAL_LOCKS passes one record at a time to CONN_LOGICAL_LOCK. If you pass a NULL pointer to logicalLock, CONN_LOGICAL_LOCKS is filled but no records are passed to CONN_LOGICAL_LOCK.
0x88FF is returned when the last record has been passed to CONN_LOGICAL_LOCK and NWScanLogicalLocksByConn is called subsequently.