Share via


Porting Miniport Driver Status Indications to NDIS 6.0

The NdisMIndicateStatusEx function replaces the NdisMIndicateStatus and NdisMIndicateStatusComplete functions. Status indication parameters are packaged within an NDIS_STATUS_INDICATION structure that contains the source handle, status code, buffer, and size.

The initialization of status indication structure is shown in the following example.

StatusIndication.Header.Type = NDIS_OBJECT_TYPE_STATUS_INDICATION;
StatusIndication.Header.Revision = NDIS_STATUS_INDICATION_REVISION_1;
StatusIndication.Header.Size = sizeof(NDIS_STATUS_INDICATION);
StatusIndication.SourceHandle = Adapter->AdapterHandle;
StatusIndication.StatusCode = NDIS_STATUS_LINK_STATE;
StatusIndication.StatusBuffer = (PVOID)&LinkState;
StatusIndication.StatusBufferSize = sizeof(LinkState);