Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1368)

Unified Diff: sandbox/sandbox_poc/pocdll/spyware.cc

Issue 113190: Add support for alternate window station. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sandbox/sandbox_poc/pocdll/spyware.cc
===================================================================
--- sandbox/sandbox_poc/pocdll/spyware.cc (revision 16307)
+++ sandbox/sandbox_poc/pocdll/spyware.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -13,6 +13,14 @@
HandleToFile handle2file;
FILE *output = handle2file.Translate(log, "w");
+ if (RegisterHotKey(NULL, 1, 0, 0x42)) {
+ fprintf(output, "[GRANTED] successfully registered hotkey\r\n");
+ UnregisterHotKey(NULL, 1);
+ } else {
+ fprintf(output, "[BLOCKED] Failed to register hotkey. Error = %d\r\n",
+ ::GetLastError());
+ }
+
fprintf(output, "[INFO] Logging keystrokes for 15 seconds\r\n");
fflush(output);
std::wstring logged;

Powered by Google App Engine
This is Rietveld 408576698