Platform SDK: Quality of Service |
The TcSetFlow function sets individual parameters for a given flow.
DWORD TcSetFlow( LPWSTR pFlowName, PGUID pGuidParam, ULONG BufferSize, PVOID Buffer );
The TcSetFlow function has the following return values.
Error codes | Description |
---|---|
NO_ERROR | The function executed without errors. |
ERROR_NOT_READY | The flow is currently being modified. |
ERROR_NOT_ENOUGH_MEMORY | The buffer size was insufficient for the GUID. |
ERROR_INVALID_PARAMETER | Invalid parameter. |
ERROR_NOT_SUPPORTED | Setting the GUID for the provided flow is not supported. |
ERROR_WMI_INSTANCE_NOT_FOUND | The instance name was not found, likely due to the flow or the interface being in the process of being closed. |
ERROR_WMI_GUID_NOT_FOUND | The device did not register for this GUID. |
Note Use of the TcSetFlow function requires administrative privilege.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Traffic.h.
Library: Use Traffic.lib.