#include <nwprint.h> or #include <nwcalls.h>NWCCODE NWAPI NWStartFileCapture (NWCONN_HANDLE conn, nuint8 LPTDevice, NWDIR_HANDLE dirHandle, pnstr8 filePath);
conn is only valid when NETX.VLM is loaded. Otherwise, conn is ignored.
The requesting workstation must have Read, Write, and Create rights to the directory where the file is created.
To call NWStartFileCapture, an application should:
If the default capture flags are used in capturing the file, the file will
automatically close upon receipt of the data. If you wish the file to stay
open, set flushCaptureOnClose
to off (1) in the
NWCAPTURE_FLAGS1 structure. The file will then remain open for
more data input until NWCancelCapture is called.
flushCaptureOnClose
will default to on (0).
An application can reopen the file and capture additional data. However, reopening the file moves the file pointer back to the beginning of the file, and the previously captured data is overwritten from the beginning of the file.
Under Netx, LPTDevice can have the following values:
dirHandle is an index number (1 to 255) that points to a volume or a directory on the NetWare server. Drive handles are recorded in the directory handle table that a NetWare server maintains for each logged-in workstation.
filePath can identify a full or a partial directory path. The partial directory path must combine with the path pointed to by dirHandle to create a full path. A full directory path defines a volume or a directory on a given NetWare server in the format:
VOLUME:DIRECTORY\ . . . \DIRECTORYA partial directory path specifies at least a directory, and possibly one or more parent directories.
A partial file path includes a file name and (optionally) one or more antecedent directory names. A file name can be 1 to 8 characters long and can also include an extension of 1 to 3 characters. All letters must appear in upper case.
Applications can combine a directory handle and a partial file path to identify a file.
0x2222 | 22 | 01 | Get Directory Path |
0x2222 22 01 Get Directory Path