Hide the Console

Discussion in 'Programming Tutorials' started by hehe45, June 6, 2008.

  1. hehe45

    hehe45 New Member

    Hello all, i'm new to this community, i hope i'm welcome !

    I don't know if i am at the good section, if not move it to the good section !

    This is just an code that hide the console ! very nice for keylogger, trojan !

    I hope you like it !

    First include this :

    Code:
    #include <windows.h>
    Here is the code :

    Code:
    HWND hideConsole;
    hideConsole = FindWindowA("ConsoleWindowClass",NULL); // Find the console window
    ShowWindow(hideConsole, 0); //Hide it ! use 0 for hide it !
    Sorry for my english! i'm French !

    Thank,

    java_coderz;
     
  2. Krzywy

    Krzywy Moderator

    Code:
    ShowWindow(hWnd, SW_HIDE);
    That's make the job for me.
     
  3. hot_wired13

    hot_wired13 FS Member

    actually, if you have an incessant console which keeps popping up, it's better to pre-set the startup coordinates
     
  4. joniE

    joniE New Member

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice