Converts a file handle to a 4- or 6-byte NetWare handle
#include <nwmisc.h>
or
#include <nwcalls.h>
N_EXTERN_LIBRARY( NWCCODE )NWConvertFileHandle (
NWFILE_HANDLE fileHandle,
nuint16 handleType,
pnuint8 NWHandle,
NWCONN_HANDLE N_FAR *conn);
uses calwin32
Function NWConvertFileHandle
(fileHandle : NWFILE_HANDLE;
handleType : nuint16;
NWHandle : pnuint8;
Var conn : NWCONN_HANDLE
) : NWCCODE;
(IN) Specifies the name of the local file handle to be converted to a NetWare handle.
(IN) Specifies the type of handle to create:
(OUT) Points to a 4- or 6-byte NetWare Handle to which the local file handle is being converted.
(OUT) Points to the connection for which the NetWare handle is valid (optional).
These are common return values; see Return Values (Return Values for C) for more information.
The handle returned by NWConvertFileHandle should not be used to call the NWConvertHandle function. Otherwise, a new OS file handle will be created.
If NWConvertFileHandle is called with only the NETX shell running, INVALID_CONNECTION will be returned. However, the NetWare handle will still be valid and the conn parameter will be set to zero.
If a pointer is passed in the conn parameter and the NETX shell is running, a valid NetWare handle will be returned as well as 0x8801.
When a connection handle is obtained, a new licensed connection handle will be created. Close the new connection handle by calling the NWCCCloseConn function.