Microsoft KB Archive/320939

= INFO: Prevent Adapter Unbind on Suspend =

Article ID: 320939

Article Last Modified on 12/15/2003

-

APPLIES TO


 * Microsoft Windows CE .NET 4.2

-



This article was previously published under Q320939



SUMMARY
A miniport driver can inform network driver interface specification (NDIS) through a registry entry on the target device not to register the adapter with the power management module.

To do this, you can use the following registry entry:

HKEY_LOCAL_MACHINE\Comm\ \Parms\DisablePowerManagement

DWORD:1

where   is the instance name of the adapter in question (for example, NE20001).



MORE INFORMATION
By default in Windows CE .NET, every NDIS adapter is registered with the power manager module. When the device is suspended, the Windows CE .NET power manager sets the power level to D4 for each of these adapters. If the miniport driver supports power management, the request is passed to the miniport; otherwise NDIS unbinds the adapter from all of the protocol drivers.

The advantage of this is that Networking Connection Manager can set the power level of any adapter to D4 to disable the adapter. For a miniport that supports power management, this request is passed to the miniport. Typically, this results in the miniport powering down the adapter. For a miniport that does not support power management, NDIS unbinds the miniport driver from the protocol drivers.

However, some protocol drivers are not designed to handle the unbinding process. For example, the Infrared Data Association (IRDA) protocol driver may cause the system to appear to stop responding (hang) when the device is suspended.

You can use of the registry key that is listed in the &quot;Summary&quot; section to prevent the unbinding process.

Keywords: kbinfo KB320939

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.