#include <nwnet.h> or #include <nwdsdc.h>NWDSCCODE N_API NWDSSetContext (NWDSContextHandle context, nint key, nptr value);
The key is identified by key. The following keys are defined in NWDSDC.H:
Key Name | Value | Description |
---|---|---|
DCK_FLAGS | 1 | Bit definitions |
DCK_CONFIDENCE | 2 |
Definitions:
|
DCK_NAME_CONTEXT | 3 | Character string array |
DCK_TRANSPORT_TYPE | 4 | Not currently in use |
DCK_REFERRAL_SCOPE | 5 |
Definitions:
|
DCK_LAST_CONNECTION | 8 | Connection handle |
DCK_TREE_NAME | 11 | Character string array |
----------------------------------------------------------- | Key Name | Value| Description | |--------------------|-------|-----------------------------| | DCK_FLAGS | 1 | Bit definitions | |--------------------|-------|-----------------------------| | DCK_CONFIDENCE | 2 | Definitions: | | | | | | | | 0 DCV_LOW_CONF | | | | | | | | 1 DCV_MED_CONF | | | | | | | | 2 DCV_HIGH_CONF | | | | | |--------------------|-------|-----------------------------| | DCK_NAME_CONTEXT | 3 | Character string array | |--------------------|-------|-----------------------------| | DCK_TRANSPORT_TYPE | 4 | Not currently in use | |--------------------|-------|-----------------------------| | DCK_REFERRAL_SCOPE | 5 | Definitions: | | | | | | | | 0 DCV_ANY_SCOPE | | | | | | | | 1 DCV_COUNTRY_SCOPE | | | | | | | | 2 DCV_ORGANIZATION_SCOPE| | | | | | | | 3 DCV_LOCAL_SCOPE | | | | | |--------------------|-------|-----------------------------| | DCK_LAST_CONNECTION| 8 | Connection handle | |--------------------|-------|-----------------------------| | DCK_TREE_NAME | 11 | Character string array | |--------------------|-------|-----------------------------|value should point to a variable of a type matching the type of the specified variable. The data types associates with each key are listed in the explanations below.
The flags associated with the DCK_FLAGS key are defined as follows:
If key is DCK_CONFIDENCE, the value pointed to by value can be one of the following:
If key is DCK_NAME_CONTEXT, value pointsto a buffer containing the name context. The maximum size of the buffer is ((MAX_DN_CHARS)+1)*sizeof(character size) where character size is 1 for single-byte characters, and 2 for double-byte characters (Unicode is double-byte). One character is used for NULL termination.
DCK_TRANSPORT_TYPE is currently not used. The data type for this value is a nuint32[2].
If key is DCK_REFERRAL_SCOPE, value can be one of the following:
Values stored in a directory context can be read by calling NWDSGetContext.