NWScanPhysicalLocksByConnFile
Scans for all physical record locks by a specified connection on a specified file
#include <nwsync.h>
or
#include <nwcalls.h>
N_EXTERN_LIBRARY(NWCCODE) NWScanPhysicalLocksByConnFile (
NWCONN_HANDLE conn,
NWCONN_NUM connNum,
NWDIR_HANDLE dirHandle,
const nstr8 N_FAR *path,
nuint8 dataStream,
pnint16 iterHandle,
CONN_PHYSICAL_LOCK N_FAR *lock,
CONN_PHYSICAL_LOCKS N_FAR *locks);
uses calwin32
Function NWScanPhysicalLocksByConnFile
(conn : NWCONN_HANDLE;
connNum : NWCONN_NUM;
dirHandle : NWDIR_HANDLE;
path : pnstr8;
dataStream : nuint8;
iterHandle : pnint16;
Var lock : CONN_PHYSICAL_LOCK;
Var locks : CONN_PHYSICAL_LOCKS
) : NWCCODE;
These are common return values; see Return Values (NDK: Connection, Message, and NCP Extensions) for more information.
For 3.x, a client must have console operator rights to call NWScanPhysicalLocksByConnFile or NO_CONSOLE_PRIVILEGES will be returned.
For 4.x and above, a client can call NWScanPhysicalLocksByConnFile 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 NWScanPhysicalLocksByConnFile and receive information about that connection.
iterHandle returns -1 upon completion and must not be changed during the scan.
If lock is a NULL pointer, locks returns the records in groups, instead of one by one.