Thread: Hidden Program

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    17

    Hidden Program

    how do you make a program so it is hidden and can only be seen in the processes under task manager?
    Drink Yer Wilk

  2. #2
    Registered User
    Join Date
    Mar 2003
    Location
    UK
    Posts
    170
    If its a window application then add the following code during the windows initialization:
    Code:
    long CurrentStyle = GetWindowLong ( m_hWnd , GWL_EXSTYLE);
    CurrentStyle |= WS_EX_TOOLWINDOW;   //add WS_EX_TOOLWINDOW flag
    CurrentStyle &= (0xFFFFFFFF^WS_EX_APPWINDOW);  // remove WS_EX_APPWINDOW flag
    SetWindowLong(m_hWnd, GWL_EXSTYLE, CurrentStyle);

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    17
    no, its a console, sorry, forgot to specify that.
    Drink Yer Wilk

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 02-21-2008, 10:39 AM
  2. Hidden issues in crypto program.
    By KoG Metalgod in forum C++ Programming
    Replies: 1
    Last Post: 11-02-2007, 06:11 PM
  3. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  4. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM