-
Big Problem!!!!
I am working on a huge security program, and one of its main features is being able to restrict a number senstive things in windows (ie: Contorl Panel, Display Settings, Registry Editor, etc.)
It works by scan through all the open windows every 10 milliseconds, if it finds a Window Handle like "Control Panel" it will attempt to go and destroy it, then display a nice little message to the user.
It works nice and all, but yesterday I discovered a huge security hole!!!!!!!!!! This program depends on a timer that MUST executed every 10 milliseconds, but if a message box pops up... well .... the timer doesn't work anymore! I guess VB has a limited number of Threads or something because EVERYTHING is haulted when a Modal form is displayed :(
Is there anyway I can use the MsgBox command without stopping all the Threads in VB? I really do not feel like making a standard form to replace every one of my msgbox's !! PLEASE HELP!!!!
Thanks.
-
i hate to break it to you, but i'm pretty sure no matter what you do everything will hault when a messagebox popups up, sorry :(
-
Create the message box on the call back procedure for an API Timer. Make sure you call KillTimer before you show the messagebox.
Here's a link:
http://www.vbapi.com/ref/s/settimer.html
-
Thanks
Thanks guys, I fixed my program!