diff options
author | José Fonseca <jfonseca@vmware.com> | 2014-09-14 22:28:49 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2014-09-24 14:55:56 +0100 |
commit | 0952a6206ac215facd7b6c05de2ecb4879ad2532 (patch) | |
tree | 1a8fbc175f1d748f37704c82ae419c4dd55a4098 /inject | |
parent | 712c8c0b9735da20f0487cc8b745f54fbb334817 (diff) |
inject: Try invoke devcon directly.
Diffstat (limited to 'inject')
-rw-r--r-- | inject/injector.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inject/injector.cpp b/inject/injector.cpp index f47741f8..791b2b37 100644 --- a/inject/injector.cpp +++ b/inject/injector.cpp @@ -196,7 +196,9 @@ restartDwmComposition(HANDLE hProcess) // http://code.msdn.microsoft.com/windowshardware/DevCon-Sample-4e95d71c // http://support.microsoft.com/kb/311272 // TODO: - fprintf(stderr, "run `devcon restart =DISPLAY` now\n"); + if (system("devcon restart =DISPLAY") == -1) { + fprintf(stderr, "run `devcon restart =DISPLAY` now\n"); + } } else { BOOL fEnabled = FALSE; |