Share via


Handling an OID_PNP_QUERY_POWER OID (NDIS 5.1)

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

An OID_PNP_QUERY_POWEROID requests a miniport driver to indicate whether it can transition its NIC to a low-power state. A miniport driver must always return NDIS_STATUS_SUCCESS in response to a query of OID_PNP_QUERY_POWER. By returning NDIS_STATUS_SUCCESS to this OID request, the miniport driver guarantees that it will transition the NIC to the specified device power state on receipt of a subsequent OID_PNP_SET_POWERrequest. The miniport driver, in this case, must do nothing to jeopardize the transition.

An OID_PNP_QUERY_POWER request is always followed by an OID_PNP_SET_POWER request. The OID_PNP_SET_POWER request can immediately follow the OID_PNP_QUERY_POWER request or can arrive at an unspecified interval after the OID_PNP_QUERY_POWER request. A device state of D0, specified in the OID_PNP_SET_POWER request, effectively cancels a preceding OID_PNP_QUERY_POWER request.

 

 

Send comments about this topic to Microsoft