Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <windows.h>
  2. #include <iostream>
  3. using namespace std;
  4. void Stealth()
  5. {
  6. HWND Stealth;
  7. AllocConsole();
  8. Stealth = FindWindowA("ConsoleWindowClass", NULL);
  9. ShowWindow(Stealth,0);
  10. }
  11.  
  12. int main()
  13. {
  14. cout<<"this sentence is visible\n";
  15. Stealth(); //to hide console window
  16. cout<<"this sentence is not visible\n";
  17. system("PAUSE");
  18. return EXIT_SUCCESS;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement