TcSetInterface function (traffic.h)
The TcSetInterface function sets individual parameters for a given interface.
Syntax
ULONG TcSetInterface(
[in] HANDLE IfcHandle,
[in] LPGUID pGuidParam,
[in] ULONG BufferSize,
[in] PVOID Buffer
);
Parameters
[in] IfcHandle
Handle associated with the interface to be set. This handle is obtained by a previous call to the TcOpenInterface function.
[in] pGuidParam
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.
[in] BufferSize
Size of the client-provided buffer, in bytes.
[in] Buffer
Pointer to a client-provided buffer. Buffer must contain the value to which the traffic control parameter provided in pGuidParam should be set.
Return value
Return code | Description |
---|---|
|
The function executed without errors. |
|
Invalid interface handle. |
|
Invalid parameter. |
|
Setting the GUID for the provided interface is not supported. |
|
The GUID is not available. |
|
The device did not register for this GUID. |
Remarks
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 |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for