NdisRegisterAdapter (Windows CE 5.0)

Send Feedback

This function tells NDIS to create a new device instance.

VOID NdisRegisterAdapter(PNDIS_STATUS Status,PWSTRMiniportDriverName,PWSTR AdapterInstanceName);

Parameters

  • Status
    [out] On return, contains the status of the operation.
  • MiniportDriverName
    [in] The NULL-terminated name of the miniport driver that should be used to manage the adapter.
  • AdapterInstanceName
    [in] The NULL-terminated name of the adapter instance to create.

Return Values

None.

Remarks

NdisRegisterAdapter is used to dynamically create new device instances. If the specified miniport driver is not loaded then it will be loaded and initialized by this function. The MiniportInitialize handler of the driver will then be invoked as part of the creation of the specified device instance.

Prior to calling this function, registry information for the miniport driver and adapter instance must be configured in HKEY_LOCAL_MACHINE\Comm as for any NDIS driver.

[HKEY_LOCAL_MACHINE\Comm\<MiniportDriverName>]
    "Group"="NDIS"
    "ImagePatch"="<driver>.dll"
[HKEY_LOCAL_MACHINE\Comm\<AdapterInstanceName>\Parms]
    "BusNumber"=dword:<busnumber>
    "BusType"=dword:<bustype>
    <other parameters as needed by the miniport driver, such as IRQ, IOAddr, TcpIP, and so on>

NdisRegisterAdapter should not be used for a NIC on a PCMCIA bus.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Ndis.h.

See Also

IOCTL_NDIS_REGISTER_ADAPTER | DeviceIoControl | NdisDeregisterAdapter | MiniportInitialize

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.