TcModifyFlow function (traffic.h)
The TcModifyFlow function modifies an existing flow. When calling TcModifyFlow, new Flowspec parameters and any traffic control objects should be filled.
Traffic control clients that have registered a ModifyFlowComplete handler (a mechanism for allowing traffic control to call the ClModifyFlowComplete callback function in order to alert clients of completed flow modifications) can expect a return value of ERROR_SIGNAL_PENDING.
Syntax
ULONG TcModifyFlow(
[in] HANDLE FlowHandle,
[in] PTC_GEN_FLOW pGenericFlow
);
Parameters
[in] FlowHandle
Handle for the flow, as received from a previous call to the TcAddFlow function.
[in] pGenericFlow
Pointer to a description of the flow modifications.
Return value
Return code | Description |
---|---|
|
The function executed without errors. |
|
The function is being executed asynchronously; the client will be called back through the client-exposed ClModifyFlowComplete function when the flow has been added, or when the process has been completed. |
|
The interface handle is invalid. |
|
The system is out of memory. |
|
Action performed on the flow by a previous function call to the TcAddFlow, TcModifyFlow, or TcDeleteFlow has not yet completed. |
|
A parameter is invalid. |
|
An unspecified or bad intserv service type has been provided. |
|
An unspecified or bad TokenRate value has been provided. |
|
The PeakBandwidth value is invalid. |
|
The ShapeDiscardMode is invalid. |
|
The priority value is invalid. |
|
The traffic class value is invalid. |
|
There are not enough resources to accommodate the requested flow. |
|
Bad length specified for the TC objects. |
|
Applies to Diffserv flows. Indicates that the QOS_DIFFSERV object was passed with an invalid parameter. |
|
Applies to Diffserv flows. Indicates that the QOS_DIFFSERV_RULE specified in TC_GEN_FLOW already applies to an existing flow on the interface. |
|
The QOS_SHAPING_RATE was passed with an invalid ShapeRate. |
|
QOS_DS_CLASS is invalid. |
|
The network cable is not plugged into the adapter. |
Remarks
If the TcModifyFlow function returns ERROR_SIGNAL_PENDING, the ClModifyFlowComplete function will be called on a different thread than the thread that called the TcModifyFlow function.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | traffic.h |
Library | Traffic.lib |
DLL | Traffic.dll |