Creates a new context handle and initializes it with default values.
#include <nwnet.h> or #include <nwdsdc.h> N_EXTERN_LIBRARY (NWDSCCODE) NWDSCreateContextHandle ( NWDSContextHandle N_FAR *newHandle);
uses netwin32 Function NWDSCreateContextHandle (Var newHandle : NWDSContextHandle ) : NWDSCCODE;
(OUT) Points to the newly created context handle.
0x0000 0000 |
SUCCESSFUL |
nonzero value |
Nonzero values indicate errors. See |
NWDSCreateContextHandle allocates a new context handle and initializes the context handle with default values (see Section 5.7, Default Context Key Values).
The number of context handles an application can create is limited only by available resources. Creation can fail if there is insufficient memory or the Unicode tables have not been initialized (see NWInitUnicodeTables (Unicode)).
To view or modify context information, use the NWDSGetContext and the NWDSSetContext functions.