Platform SDK: Quality of Service

TcGetFlowName

The TcGetFlowName function provides the name of a flow that has been created by the calling client. Flow properties and other characteristics of flows are provided based on the name of a flow. Flow names can also be retrieved by a call to the TcEnumerateFlows function.

DWORD TcGetFlowName(
  HANDLE FlowHandle,
  ULONG StrSize,
  LPTSTR pFlowName 
);

Parameters

FlowHandle
[in] Handle for the flow.
StrSize
[in] Size of the string buffer provided in pFlowName.
pFlowName
[out] Pointer to the output buffer holding the flow name.

Return Values

Error codes Description
NO_ERROR The function executed without errors.
ERROR_INVALID_HANDLE The flow handle is invalid.
ERROR_INVALID_PARAMETER One of the parameters is invalid.
ERROR_INSUFFICIENT_BUFFER The buffer is too small to contain the results.

Note  Use of the TcGetFlowName function requires administrative privilege.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in Traffic.h.
  Library: Use Traffic.lib.

See Also

TcEnumerateFlows