Handling an Interface Object Query Request
To obtain the current value that is associated with an interface object, NDIS calls an interface provider's ProviderQueryObject function. This function returns NDIS_STATUS_SUCCESS if it successfully processes the query request or an NDIS_STATUS_Xxx error code otherwise.
For a list of interface provider-specific OID requests, see NDIS Network Interface OIDs. For a list of OIDs that NDIS uses with providers, miniport adapters, and filter modules to support network interface objects, see NDIS Network Interface to OID Mapping.
The handle at the ProviderIfContext parameter of ProviderQueryObject identifies the context area that the interface provider passed to NDIS when it called the NdisIfRegisterInterface function to register the interface. The ObjectId parameter specifies the OID for the object that is being queried. The pOutputBufferLength and pOutputBuffer parameters provide a pointer to the resulting length of the output buffer and a pointer to the output buffer, respectively.