I am receiving error code 50
from the code below, which means ERROR_NOT_SUPPORTED
.
I use the QOSStartTrackingClient
method from this winapi document. But it does not say when do I receive this result.
SOCKADDR_IN sin { AF_INET };
inet_pton(AF_INET, "8.8.8.8", &(sin.sin_addr.s_addr));
if (!QOSStartTrackingClient(QoSHandle, (SOCKADDR*)&sin, 0))
cout << GetLastError();
Why is it happening? How can I fix it?