NWScanLogicalLocksByName
Scans for all record locks in a specified logical name
#include <nwsync.h>
or
#include <nwcalls.h>
N_EXTERN_LIBRARY(NWCCODE) NWScanLogicalLocksByName (
NWCONN_HANDLE conn,
const nstr8 N_FAR *logicalName,
pnint16 iterHandle,
LOGICAL_LOCK N_FAR *logicalLock,
LOGICAL_LOCKS N_FAR *logicalLocks);
uses calwin32
Function NWScanLogicalLocksByName
(conn : NWCONN_HANDLE;
logicalName : pnstr8;
iterHandle : pnint16;
Var logicalLock : LOGICAL_LOCK;
Var logicalLocks : LOGICAL_LOCKS
) : NWCCODE;
These are common return values; see Return Values (NDK: Connection, Message, and NCP Extensions) for more information.
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.
If logicalLock is a NULL pointer, logicalLocks returns the records in groups, instead of one by one.