OID_PM_REMOVE_WOL_PATTERN

As a set, NDIS and protocol drivers use the OID_PM_REMOVE_WOL_PATTERN OID to remove a power management wake on LAN (WOL) pattern from a network adapter. The InformationBuffer member of the NDIS_OID_REQUEST structure contains a pointer to a ULONG pattern identifier.

Remarks

NDIS and protocol drivers use OID_PM_REMOVE_WOL_PATTERN to remove a wake on LAN (WOL) pattern from the underlying network adapter.

The DATA.SET_INFORMATION.InformationBuffer member of the NDIS_OID_REQUEST structure must point to a ULONG value for a previously added WOL pattern identifier. NDIS set this pattern identifier in the PatternId member of the NDIS_PM_WOL_PATTERN structure when NDIS sent the prior OID_PM_ADD_WOL_PATTERN OID request to the underlying network adapter.

Return Status Codes

The miniport driver's MiniportOidRequest function returns one of the following values for this request:

Term Description

NDIS_STATUS_SUCCESS

The miniport driver completed the request successfully.

NDIS_STATUS_PENDING

The miniport driver will complete the request asynchronously. After the miniport driver has completed all processing, it must succeed the request by calling the NdisMOidRequestComplete function, passing NDIS_STATUS_SUCCESS for the Status parameter.

NDIS_STATUS_NOT_ACCEPTED

The miniport driver is resetting.

NDIS_STATUS_REQUEST_ABORTED

The miniport driver stopped processing the request. For example, NDIS called the MiniportResetEx function.

NDIS returns one of the following status codes for this request:

Term Description

NDIS_STATUS_SUCCESS

The OID request completed successfully.

NDIS_STATUS_NOT_SUPPORTED

The NDIS version of the miniport driver is less than NDIS 6.20.

NDIS_STATUS_FILE_NOT_FOUND

The pattern identifier in the OID request is invalid.

NDIS_STATUS_INVALID_LENGTH

The information buffer is too small. NDIS sets the DATA.SET_INFORMATION.BytesNeeded member in the NDIS_OID_REQUEST structure to the minimum buffer size that is required.

Requirements

Version

Supported in NDIS 6.20 and later. Mandatory for miniport drivers.

Header

Ntddndis.h (include Ndis.h)

See also

NDIS_OID_REQUEST

NDIS_PM_WOL_PATTERN

OID_PM_ADD_WOL_PATTERN

NDIS_STATUS_PM_WOL_PATTERN_REJECTED