NWScanPhysicalLocksByFile
Scans for all record locks in a specified physical file
#include <nwsync.h> or #include <nwcalls.h> N_EXTERN_LIBRARY(NWCCODE) NWScanPhysicalLocksByFile ( NWCONN_HANDLE conn, NWDIR_HANDLE dirHandle, const nstr8 N_FAR *path, nuint8 dataStream, pnint16 iterHandle, PHYSICAL_LOCK N_FAR *lock, PHYSICAL_LOCKS N_FAR *locks);
uses calwin32 Function NWScanPhysicalLocksByFile (conn : NWCONN_HANDLE; dirHandle : NWDIR_HANDLE; path : pnstr8; dataStream : nuint8; iterHandle : pnint16; Var lock : PHYSICAL_LOCK; Var locks : PHYSICAL_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 NWScanPhysicalLocksByFile.
iterHandle returns -1 upon completion, and should not be changed during the scan.
If lock is a NULL pointer, locks returns the records in groups, instead of one by one.