The actual API is a part of Windows. So, it comes with Windows license. However, the headers that describe the API (including definitions of specialised data types etc) are subject to copyright on their own.
So, TwsSocketclient.lib communicates with Widnows directly where it needs it and...