Guardian Programming Reference Summary for C

Functions Summary (D-F)
Guardian Programming Reference Summary for C522630-001
5-30
FILE_GETINFOLISTBYNAME_
Obtains detailed information about a file identified by file name.
FILE_GETLOCKINFO_
Obtains information about locks (held or pending) on a local disk file or on a set of files
on a local disk volume. This procedure operates only on Guardian objects.
return value:
#include <cextdecs(FILE_GETINFOLISTBYNAME_)>
short FILE_GETINFOLISTBYNAME_ ( const char *filename /* i */
,short length /* i */
,short *item-list /* i */
,short number-of-items /* i */
,short *result /* o */
,short result-max /* i */
,[ short *result-length] /* o */
,[ short *error-item ] ); /* o */
#include <cextdecs(FILE_GETLOCKINFO_)>
short FILE_GETLOCKINFO_ ( const char *name /* i */
,short length /* i */
,[ short *processhandle ] /* i */
,[ short *transid ] /* i */
,short *control /* i,o */
,short *lock-descr /* o */
,short lock-descr-length /* i */
,short *participants /* o */
,short max-participants /* i */
,[ char *locked-name ] /* o */
, short maxlen ] /* i */
,[ short *locked-name-length ] ); /* o */
0 = Information for one locked file and all its lock holders/waiters was returned
without error. More locks might exist; continue calling
FILE_GETLOCKINFO_.
1 = End of information about locks associated with a process or transid.
11 = Lock information for the file processor transaction was not found. If any
information has been returned already it is now invalid.