|
-
Jun 27th, 2001, 08:21 AM
#1
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.
-
Jun 27th, 2001, 08:32 AM
#2
Addicted Member
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
-
Jun 27th, 2001, 08:38 AM
#3
Black Cat
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
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jun 27th, 2001, 08:51 AM
#4
Thanks
Thanks guys, I fixed my program!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|