Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This function returns the value of a named entry of the specified type from the registry, as long as it has the handle to an open registry key.
VOID NdisReadConfiguration( OUT PNDIS_STATUS Status , OUT PNDIS_CONFIGURATION_PARAMETER * ParameterValue , IN NDIS_HANDLE ConfigurationHandle , IN PNDIS_STRING Keyword , IN NDIS_PARAMETER_TYPE ParameterType );
Parameters
Value | Description |
---|---|
NDIS_STATUS_SUCCESS | The buffer specified at ParameterValuecontains the returned configuration information. |
NDIS_STATUS_RESOURCES | NDIS could not allocate resources, usually enough memory, to return the requested information. |
NDIS_STATUS_FAILURE | The requested information could not be found under the opened registry key designated by the ConfigurationHandle. |
This parameter can also point to one of the following predefined global keywords for all NDIS drivers:
Value | Description |
---|---|
NdisParameterInteger | Specifies an integer in decimal notation. |
NdisParameterHexInteger | Specifies an integer in hexadecimal notation. |
NdisParameterString | Specifies a string of type NDIS_STRING. |
NdisParameterMultiString | Specifies a multistring parameter of the Windows NT-defined REG_MULTI_SZ type. |
Remarks
Every NDIS driver can set up configuration information in the registry for itself under the driver's Parameterskey, using an installation script. For example, a protocol driver might store its own name as an entry with a preformatted string value that can be passed in calls to the NdisRegisterProtocolfunction.
Each NIC driver also has associated value entries under the driver's Parametersregistry key. The value entries for any particular NIC driver can be device-dependent in nature. For example, an Ethernet NIC driver might have keywords such as InterruptNumber, SharedMemoryAddress, and MulticastListSize. The value associated with such an NDIS keyword can be either an integer ( ULONG-type) or a string (NDIS_STRING-type). For example, the set of possible values for the InterruptNumberentry mentioned might be NdisParameterInteger values 2, 3, 4, or 5, or the equivalents in hexadecimal as NdisParameterHexInteger values.
This function buffers and copies the caller-supplied string at Keywordand releases the storage that it allocates for this copy before it returns control to the caller. The memory that it allocates for the NDIS_CONFIGURATION_PARAMETERstructure is freed when the driver releases the ConfigurationHandlewith the NdisCloseConfigurationfunction. The caller of this function is responsible for releasing the buffered string at Keyword.
A driver that calls this function runs at IRQL PASSIVE_LEVEL.
Requirements
Runs on | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 2.0 and later | Ndis.h |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
NdisAnsiStringToUnicodeString, NdisCloseConfiguration, NdisFreeString, NdisInitAnsiString, NdisInitializeString, NdisInitUnicodeString, NdisOpenConfiguration, NdisOpenProtocolConfiguration, NdisReadNetworkAddress, NdisUnicodeStringToAnsiString, NdisWriteConfiguration
Last updated on Tuesday, July 13, 2004