Platform SDK: Quality of Service |
The TcQueryFlow function queries traffic control for the value of a specific flow parameter based on the name of the flow. The name of a flow can be retrieved from the TcEnumerateFlows function or from the TcGetFlowName function.
DWORD TcQueryFlow ( LPTSTR FlowName, PGUID pGuidParam, OUT PULONG pBufferSize, PVOID Buffer );
Error codes | Description |
---|---|
NO_ERROR | The function executed without errors. |
ERROR_INVALID_PARAMETER | A parameter is invalid. |
ERROR_INSUFFICIENT_BUFFER | The provided buffer is too small to hold the results. |
ERROR_NOT_SUPPORTED | The requested GUID is not supported. |
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 flow or the interface is in the process of being closed. |
Note Use of the TcQueryFlow function requires administrative privilege.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Traffic.h.
Library: Use Traffic.lib.