NWDSCreateContext(3nw)


NWDSCreateContext -- creates Directory context for client operations and initializes to default configuration

Synopsis

   #include <nwnet.h> 
   or 
   #include <nwdsdc.h> 
   

NWDSContextHandle N_API NWDSCreateContext (void);

Return Values

0x0000 or higher
A handle to a newly-created context.

0xFEB8
ERR_CONTEXT_CREATION

Remarks

The maximum number of contexts that an application can create depends upon the application's platform. The maximum number of contexts is 8 for DOS, 24 for Windows, and 24 for OS/2. The maximum contexts for NLM applications is limited only by the available memory on the server.

If successful, NWDSCreateContext returns a handle for the newly-created context. The range of values for this handle is from 0 to the platfom's limit, minus one. For example, the range for DOS is 0 to 7.

NWDSCreateContext can fail for the following reasons:

The following list shows the default values set when a Directory context is created: The structure of the Directory context is not available for the developer to manipulate directly. Instead, Directory context variables are modified by calling NWDSSetContext. The current values of Directory context variables are retrieved by calling NWDSGetContext.

Services

Directory

NCP Calls

None

References

NWDSCreateContextHandle(3nw), NWDSFreeContext(3nw), NWDSSetContext(3nw), NWDSGetContext(3nw), NWDSDuplicateContext(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.