mirror of
https://github.com/34736384/RSAPatch.git
synced 2024-11-16 01:39:18 +00:00
Added ability to hide console window
This commit is contained in:
parent
f178750fea
commit
a76daddf31
@ -1,5 +1,6 @@
|
||||
#include "Utils.h"
|
||||
#include <stdio.h>
|
||||
#include <fstream>
|
||||
|
||||
HANDLE _out = NULL, _old_out = NULL;
|
||||
HANDLE _err = NULL, _old_err = NULL;
|
||||
@ -7,6 +8,9 @@ HANDLE _in = NULL, _old_in = NULL;
|
||||
|
||||
void Utils::AttachConsole()
|
||||
{
|
||||
std::ifstream f(".noconsole");
|
||||
if (f.good()) return;
|
||||
|
||||
_old_out = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||
_old_err = GetStdHandle(STD_ERROR_HANDLE);
|
||||
_old_in = GetStdHandle(STD_INPUT_HANDLE);
|
||||
|
Loading…
Reference in New Issue
Block a user