Microsoft Windows CE 3.0  

NdisOpenConfiguration

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 a handle for an NDIS network adapter driver's HKEY_LOCAL_MACHINE\Comm\DriverName\Parmsregistry key.

VOID
NdisOpenConfiguration(
OUT PNDIS_STATUS
Status
,
OUT PNDIS_HANDLE
ConfigurationHandle
,
IN NDIS_HANDLE
WrapperConfigurationContext
);

Parameters

Status
Pointer to a caller-supplied variable in which this function returns the status of its attempt to open the registry key. Possible return values are the following:
Value Description
NDIS_STATUS_SUCCESS The value at ConfigurationHandleis valid.
NDIS_STATUS_FAILURE The key could not be opened.
ConfigurationHandle
Pointer to a caller-supplied variable in which this function returns a handle to the registry HKEY_LOCAL_MACHINE\Comm\DriverName\Parmskey. Value entries under this key are provided by the driver's installation script.
WrapperConfigurationContext
Handle input to the MiniportInitializefunction.

Remarks

With the handle returned by this function, an NDIS miniport can call the NdisReadConfigurationfunction one or more times to extract configuration information about its network adapter from the registry. A miniport can also call NdisReadNetworkAddresswith this handle to retrieve software-configurable network address information that was stored in the registry when its network adapter was installed in the current computer.

A miniport's installation script must store at least the following configuration information in the registry: