Is there a way to keep Windows CE from unloading and reloading the miniport driver for my PCMCIA-based network card?
Yes. The registry entry “ResetOnResume” tells NDIS not to unload the NDIS PCMCIA miniport driver during resume. NDIS does this by setting CFG_ATTR_NO_SUSPEND_UNLOAD in CardRequestConfiguration() call to PCMCIA card services. During resume, the miniport’s ResetHandler is invoked to get it back to known state. Example: [HKEY_LOCAL_MACHINE\Comm\Cisco1\Parms] “ResetOnResume”=dword:1 This registry entry is not new; it now simply applies also to PCMCIA adapters. The default value of ResetOnResume for PCMCIA network adapters is FALSE. For more information about CFG_ATTR_NO_SUSPEND_UNLOAD, which is new in Windows CE .NET v4.1, see the PCMCIA documentation. Note that devices do not need to support OID_PNP_CAPABILITIES for this mechanism to work. Also, the PCMCIA driver needs support from the OAL to enable this configuration attribute.