Platform SDK: Quality of Service |
The TcQueryInterface function queries traffic control for related per-interface parameters. A traffic control parameter is queried by providing its globally unique identifier (GUID). Setting the NotifyChange parameter to TRUE enables event notification on the specified GUID, after which notification events are sent to a client whenever the queried parameter changes. GUIDs for which clients can request notification are found in the GUID entry; the column titled "Notification" denotes which GUIDs are available for notification.
DWORD TcQueryInterface ( HANDLE IfcHandle, PGUID pGuidParam, BOOLEAN NotifyChange, OUT PULONG BufferSize, PVOID Buffer );
Note that, with regard to a requested notification state, only a return value of NO_ERROR will result in the application of the requested notification state. If a return value other than NO_ERROR is returned from a call to the TcQueryInterface function, the requested change in notification state will not be accepted.
Error code | Description |
---|---|
NO_ERROR | The function executed without errors. |
ERROR_INVALID_HANDLE | Invalid interface handle. |
ERROR_INVALID_PARAMETER | Invalid or NULL parameter. |
ERROR_INSUFFICIENT_BUFFER | The buffer is too small to store the results. |
ERROR_NOT_SUPPORTED | Querying for the GUID provided is not supported on the provided interface. |
ERROR_WMI_GUID_NOT_FOUND | The device did not register for this GUID. |
ERROR_WMI_INSTANCE_NOT_FOUND | The instance name was not found, likely because the interface is in the process of being closed. |
Note Use of the TcQueryInterface function requires administrative privilege.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Traffic.h.
Library: Use Traffic.lib.