Connection

Hi, I need to get information about incoming connections and decide whether to Enable. Can I do something in win32?
I need help :).
Yeah, it's called a firewall... Take a look here: https://msdn.microsoft.com/en-us/library/windows/desktop/dd339602(v=vs.85).aspx

If you're feeling REALLY brave or you just need to inspect the target on a deeper level before saying "Yay" or "Nay" then you'll want to take a look at WFP: https://msdn.microsoft.com/en-us/library/windows/desktop/aa366510%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

I recommend the first solution since I've used it and I can tell you that it's easy enough to use post Vista.
Last edited on
Any progress? I wouldn't offer either of these as a solution if I couldn't field any questions that may have come up. Don't get discouraged because it's using COM, COM is just C pretending to be C++ hence all of the indirection. Once you have everything wrapped in a proper C++ class a lot of the ugliness goes away. If you're confused about something please ask.
Topic archived. No new replies allowed.