Results 1 to 5 of 5

Thread: .Net -> How to close a external Msgbox !quick! ??

  1. #1

    Red face .Net -> How to close a external Msgbox !quick! ??

    Hey Guys

    I want to close a external Msgbox very quick. Now I use following code:

    Private Sub MessabgeboxFinder_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DemomessageFinder.Tick
    MessabgeboxFinder.Enabled = False
    Dim APPMSGBOXHandle As Integer
    APPMSGBOXHandle = FindWindow("#32770", "Can Terminal 1.0")
    If APPMSGBOXHandle > 0 Then
    SendMessage(APPMSGBOXHandle, WM_CLOSE, 0, 0)
    End If
    APPMSGBOXHandle = FindWindow("#32770", "Best Canterminal 1.0")
    If APPMSGBOXHandle > 0 Then
    SendMessage(APPMSGBOXHandle, WM_CLOSE, 0, 0)
    End If
    APPMSGBOXHandle = FindWindow("#32770", "Ultimative Can Terminal 1.0")
    If APPMSGBOXHandle > 0 Then
    SendMessage(APPMSGBOXHandle, WM_CLOSE, 0, 0)
    End If
    APPMSGBOXHandle = FindWindow("#32770", " Can Terminal 1.0")
    MessabgeboxFinder.Enabled = True
    End Sub

    Timertick = 10ms
    10ms are faster then 1ms -> I don't know why.

    But this is not fast enough. With Do Loop I have to much CPU Performance (Yes I use DoEvent).

    Does anybody know, how i can make this faster??

    Thanks for all answers.

  2. #2
    Inject code into the processes causing the dialog box and prevent them from showing it by either overwriting there code, or the function in the system DLL?

  3. #3
    Can't inject a code in the app, because very ugly anti debug tricks.
    So i decide, to close it with a external app.
    Trying a loader, but app crash -> anti debug tricks

    Anti DEbug Tricks are very heavy. Process Memory is compared with a encryptes file.

  4. #4
    Musician member evaluator's Avatar
    Join Date
    Sep 2001
    Posts
    1,479
    Blog Entries
    1
    upgrade your first code: change simple timer to MMtimer

  5. #5
    Administrator dELTA's Avatar
    Join Date
    Oct 2000
    Location
    Ring -1
    Posts
    4,206
    Blog Entries
    5
    Oh, and read the FAQ, you named the target (through your source code) and asked how to manipulate its "demo protections". Not allowed, thread locked.
    "Give a man a quote from the FAQ, and he'll ignore it. Print the FAQ, shove it up his ass, kick him in the balls, DDoS his ass and kick/ban him, and the point usually gets through eventually."

Similar Threads

  1. Replies: 8
    Last Post: July 17th, 2009, 15:14
  2. Sendshortcut - ALT key state (needed for close deb
    By focht in forum Plugins (General)
    Replies: 4
    Last Post: February 7th, 2004, 17:06
  3. Change setting in application from external app.
    By Sunrise in forum Advanced Reversing and Programming
    Replies: 7
    Last Post: January 6th, 2004, 02:16
  4. [OT] We are close to you friends
    By BobTheRock in forum Malware Analysis and Unpacking Forum
    Replies: 8
    Last Post: September 13th, 2001, 15:03
  5. what API calls for a program to close itself ?
    By WoZX in forum Malware Analysis and Unpacking Forum
    Replies: 1
    Last Post: September 10th, 2001, 01:14

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •