#include <nwnet.h> or #include <nwdsdc.h>NWDSCCODE N_API NWDSGetContext (NWDSContextHandle context, nint key, nptr value);
The context 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 appropriate to receive the specified variable. The data types associated with each key are listed in the explanations below.
The flags associated with DCK_FLAGS are defined as follows:
The data type used to retrieve the flags is a nuint32.
If key is DCK_CONFIDENCE, the value pointed to by value can be one of the following:
The data type used to retrieve the confidence level is a nuint32.
If key is DCK_NAME_CONTEXT, value points to a buffer containing the name context. You must allocate space for this buffer. The size of the memory needed to store the name context 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:
The data type used to retrieve the referral scope is a nuint32.
Directory context variables can be changed by calling NWDSSetContext.