I need a little help :)
My program opens up internet ports in the windows firewall for help with downloading via bit torrent or conenction issues with msn or steam.
Now at the moment i have 3 settings , 1 hour, 2 hours or permenant but since this program leaves internet ports open i feel it would be a bit risky to just leave them like they are so i want to create a Till Shutdown Button
Im not sure how to go about this though, would i have to use a timer to check the process list every 2 seconds for shutdown.exe or is there another way?
haxor98
0
Newbie Poster
Recommended Answers
Jump to PostYou can catch the shutdown message with
Microsoft.Win32.SystemEvents
:
http://blogs.msdn.com/jaredpar/archive/2006/10/20/responding-to-windows-shutdown.aspx
http://discuss.joelonsoftware.com/default.asp?dotnet.12.528750.10
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.