TcSetFlowW function (traffic.h)
The TcSetFlow function sets individual parameters for a given flow.
ULONG TcSetFlowW( [in] LPWSTR pFlowName, [in] LPGUID pGuidParam, [in] ULONG BufferSize, [in] PVOID Buffer );
Pointer to the globally unique identifier (GUID) that corresponds to the parameter to be set. A list of available GUIDs can be found in GUID.
Size of the client-provided buffer, in bytes.
Pointer to a client-provided buffer. Buffer must contain the value to which the traffic control parameter provided in pGuidParam should be set.
The TcSetFlow function has the following return values.
||The function executed without errors.|
||The flow is currently being modified.|
||The buffer size was insufficient for the GUID.|
||Setting the GUID for the provided flow is not supported.|
||The instance name was not found, likely due to the flow or the interface being in the process of being closed.|
||The device did not register for this GUID.|
Use of the TcSetFlow function requires administrative privilege.
The traffic.h header defines TcSetFlow as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|