Converts a NetWare handle to a local file handle
#include <nwmisc.h>
or
#include <nwcalls.h>
N_EXTERN_LIBRARY(NWCCODE) NWConvertHandle (
NWCONN_HANDLE conn,
nuint8 accessMode,
const void N_FAR *NWHandle,
nuint16 handleSize,
nuint32 fileSize,
NWFILE_HANDLE N_FAR *fileHandle);
uses calwin32
Function NWConvertHandle
(conn : NWCONN_HANDLE;
accessMode : nuint8;
const NWHandle : nptr;
handleSize : nuint16;
fileSize : nuint32;
Var fileHandle : NWFILE_HANDLE
) : NWCCODE;
(IN) Specifies the connection where the NetWare handle exists to which the local file handle is being converted.
(IN) Specifies the type of access the user will have to the newly created file handle.
(IN) Points to the 4- or 6-byte NetWare handle being converted to a local file handle.
(IN) Specifies the number of bytes in the NetWare handle; either 4 or 6.
(IN) Specifies the number of bytes in the file being converted.
(OUT) Points to the local file handle created by NWConvertHandle.
These are common return values; see Return Values (Return Values for C)for more information.
The handle returned by the NWConvertFileHandle function should not be used to call NWConvertHandle. Otherwise, a new OS file handle will be created.
The file handle returned is appropriate for the platform for which the function is written. The file handle may be used for access to the attribute value including closing the file as well as reading and writing to the file.
See Section 20.1, Access Right Values for the possible values for the accessMode parameter.
Call the file access functions that are native to your platform.