Platform SDK: Quality of Service |
The TcRegisterClient function is used to register a client with the traffic control interface (TCI). The TcRegisterClient function must be the first function call a client makes to the TCI.
Client registration provides callback routines that allow the TCI to complete either client-initiated operations or asynchronous events. Upon successful registration, the caller of the TcRegisterClient function must be ready to have any of its TCI handlers called. See Entry Points Exposed by Clients of the Traffic Control Interface for more information.
DWORD TcRegisterClient( ULONG TciVersion, HANDLE ClRegCtx, PTCI_CLIENT_FUNC_LIST pClientHandlerList, PHANDLE pClientHandle );
Error code | Description |
---|---|
NO_ERROR | The function executed without errors. |
ERROR_NOT_ENOUGH_MEMORY | The system is out of memory. |
ERROR_INVALID_PARAMETER | One of the parameters is NULL. |
ERROR_INCOMPATIBLE_TCI_VERSION | The TCI version is wrong. |
ERROR_OPEN_FAILED | Traffic control failed to open a system device. The likely cause is insufficient privileges. |
Note Use of the TcRegisterClient function requires administrative privilege.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Traffic.h.
Library: Use Traffic.lib.