Code 0x80010119 means RPC_E_TOO_LATE, i.e. CoInitializeSecurity was called already.
So messages "Could not add socket to QoS flow, error=1168" are not because of this error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Code 0x80010119 means RPC_E_TOO_LATE, i.e. CoInitializeSecurity was called already.
So messages "Could not add socket to QoS flow, error=1168" are not because of this error.
Code 1168 on QOSAddSocketToFlow means ERROR_NOT_FOUND.
Also I see a lot of "Could not set QoS flow, error=87" messages.
Error 87 on QOSSetFlow means ERROR_INVALID_PARAMETER "The FlowId parameter is invalid".
Fixed COM security error message. Is not a "real" problem, as just a bogus trace log.
I do not get the "Could not add socket to QoS flow, error=1168" on Windows 8. Maybe a permission thing? No idea, and google didn't help.