This is because lmclient.h includes some winsock2 headers. And if you include windows.h before lmclient.h you get this problem because windows.h includes the version 1 winsock headers.I fixed this by defining WIN32_LEAN_AND_MEAN early on so that win...
I believe the idptr field returns the value of the HOSTID= field in the feature line (not the actual hostid of the client machine). Floating licenses often don't have HOSTID= set so check if your license file has this.