Platform SDK: Quality of Service |
The TcOpenInterface function opens an interface. The TcOpenInterface function identifies and opens an interface based on its text string, which is available from a call to TcEnumerateInterfaces.. Once an interface is opened, the client must be prepared to receive notification regarding the open interface, through traffic control's use of the interface context.
DWORD TcOpenInterface( LPTSTR pInterfaceName, HANDLE ClientHandle, HANDLE ClIfcCtx, PHANDLE pIfcHandle );
Error code | Description |
---|---|
NO_ERROR | The function executed without errors. |
ERROR_INVALID_PARAMETER | One of the parameters is NULL. |
ERROR_NOT_ENOUGH_MEMORY | The system is out of memory. |
ERROR_NOT_FOUND | Traffic control failed to find an interface with the name provided in pInterfaceName. |
ERROR_INVALID_HANDLE | The client handle is invalid. |
Note Use of the TcOpenInterface function requires administrative privilege.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Traffic.h.
Library: Use Traffic.lib.