NWDPNSrvGetNativeNDSContext

Returns the native NDS context handle of the context currently in use and allows access to other features of NDS using the native NDS functions

Local Servers: nonblocking
Remote Servers: blocking
NetWare Server: 4.11, 5.x
Platform: NLM, Windows 95, Windows 98
Service: Distributed Print


Syntax

#include <nwdp_nsr.h>  

N_EXTERN_LIBRARY (nint) NWDPNSrvGetNativeNDSContext (
NWDPAccessorRef accessorRef,
nuint32 contextHandlePtr);


Parameters

accessorRef

(IN) Specifies the NWDPAccessorData structure whose fields are accessed by using the provided error macros.


contextHandlePtr

(OUT) Points to the resulting NDS context handle.


Return Values

0x00000000

N_SUCCESS

0xFFFFFFFE

NWDP_RC_INVALID_ACCESSOR

0xFFFFFFFF

N_FAILURE


Remarks

Before calling NWDPNSrvGetNativeNDSContext, you must call NWDPNSrvSetNativeNDSContext once per application to assign a contextHandle to accessorRef.

If NWDPNSrvGetNativeNDSContext returns N_FAILURE, the NWDPLibErrorMac (accessorRef) contains the following:

0x01000005L NWDP_EC_NDS
0x000B0001L NWDP_LE_NSRV_NO_CONTEXT_IN_USE


See Also

NWDPNSrvSetNativeNDSContext