Results 1 to 4 of 4

Thread: Big Problem!!!!

  1. #1
    assbeef
    Guest

    Exclamation 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.

  2. #2
    Addicted Member
    Join Date
    Feb 2001
    Location
    Upstate NY
    Posts
    210

    Angry

    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
    < o >

  3. #3
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.

  4. #4
    assbeef
    Guest

    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
  •  



Click Here to Expand Forum to Full Width