Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
MiniportSetInformationis a required function that allows bound protocol drivers (or NDIS) to request changes in the state information that the miniport maintains for particular OIDs, such as changes in multicast addresses.
NDIS_STATUS MiniportSetInformation( IN NDIS_HANDLE MiniportAdapterContext , IN NDIS_OID Oid , IN PVOID InformationBuffer , IN ULONG InformationBufferLength , OUT PULONG BytesRead , OUT PULONG BytesNeeded );
Parameters
Return Values
MiniportSetInformationcan return one of the following:
Comments
NDIS calls MiniportSetInformationeither on its own behalf, such as to manage bindings to the miniport, or when a bound protocol driver calls NdisRequest.
If MiniportSetInformationreturns NDIS_STATUS_PENDING, the driver must complete the request later by calling NdisMSetInformationComplete. Until it completes any request, the miniport can safely access the memory at InformationBuffer, BytesRead, and BytesNeeded. After the miniport completes any set request, ownership of these variables and the buffer reverts to NDIS or the caller of NdisRequest, whichever allocated the memory.
After a call to MiniportSetInformation, NDIS submits no other requests to the driver until it has completed the operation, either synchronously or asynchronously. Instead, NDIS holds requests queued until the current set operation is completed.
MiniportSetInformationcan be pre-empted by an interrupt.
Requirements
Runs on | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 2.0 and later | Ndis.h | Ndislib.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
MiniportInitialize, NdisMSetInformationComplete, NdisRequest