How to use InternetSetOption? I go throught the details here. It also says something related with OptionFlags. Anybody know how to use the second parameter to the function ?. The information can be found here. Its little bit confusing, for example
INTERNET_OPTION_CONNECTED_STATE: 50:
Sets or retrieves an unsigned long integer value that contains the connected state. This is used by InternetQueryOption and InternetSetOption.
What does it mean if I pass a 50 as the second parameter?
What are you actually trying to accomplish?
Generally speaking, you shouldn’t be trying to set the INTERNET_OPTION_CONNECTED_STATE, as this is set automatically by the system and allows you to collect information about the status of the system’s network connection.
You generally use the InternetSetOption API thusly:
But if you’re doing something more complicated, like setting the proxy using INTERNET_PER_CONN_OPTION, you can use a different signature to more easily pass in the required structure.