alloc_console does work, but it create another cmd window, seems not

better than dialog
This commit is contained in:
rustdesk
2023-07-17 18:52:43 +08:00
parent 4ed9aa39c7
commit 76a6b4e09e
2 changed files with 11 additions and 0 deletions

View File

@@ -628,4 +628,8 @@ extern "C"
return bSystem;
}
void alloc_console_and_redirect() {
AllocConsole();
freopen("CONOUT$", "w", stdout);
}
} // end of extern "C"