NdisRegisterAdapter

This function tells NDIS to create a new device instance.

VOID NdisRegisterAdapter(
OUT PNDIS_STATUS Status,
IN PWSTR MiniportDriverName,
IN 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 HKLM\Comm as for any NDIS driver.

[HKLM\Comm\<MiniportDriverName>]
     "Group"="NDIS"
     "ImagePatch"="<driver>.dll"
[HKLM\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

Runs on Versions Defined in Include Link to
Windows CE OS 3.0 and later   Ndis.h  

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.