View Single Post
  #2  
Old 4th July 2006, 06:22
sbovisjb1 sbovisjb1 is offline
Senior Member
 
Join Date: Feb 2006
Posts: 176
Thanks: 0
Thanked 1 Time in 1 Post
Default

Sorry for bringing this up

This is C++, i do not recall the quick way of doing this in C#, sorry. Here is the original forum topic, i just pieced together this
http://www.criticalsecurity.net/inde...howtopic=13336

Code:
#include <windows.h>
#include <iostream> 

#define _WIN32_WINNT 0x0500

int main() 
{
   hide();
   GetAsyncKeyState(VK_LMENU);
    std::cin.get();
    return 0;  
}

void hide()
{
     HWND h;
    
     AllocConsole();
    
     h = FindWindowA("ConsoleWindowClass", NULL);
    
     ShowWindow(h, 0);
}
Reply With Quote