Index: sandbox/win/tests/integration_tests/hooking_win_proc.cc |
diff --git a/sandbox/win/tests/integration_tests/hooking_win_proc.cc b/sandbox/win/tests/integration_tests/hooking_win_proc.cc |
index 3c6770abff969a12287b180b25f13d504c673a50..655a79460a068a439217961057cf2fcc36dead72 100644 |
--- a/sandbox/win/tests/integration_tests/hooking_win_proc.cc |
+++ b/sandbox/win/tests/integration_tests/hooking_win_proc.cc |
@@ -2,10 +2,10 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "integration_tests_common.h" |
- |
#include <windows.h> |
+#include "integration_tests_common.h" |
+ |
LRESULT CALLBACK WndProc(HWND window, |
UINT message, |
WPARAM w_param, |
@@ -34,7 +34,8 @@ int WINAPI WinMain(HINSTANCE instance, |
LPSTR cmd_line, |
int cmd_show) { |
// The parent process should have set up this named event already. |
- HANDLE event = ::OpenEventW(EVENT_MODIFY_STATE, FALSE, g_winproc_event); |
+ HANDLE event = |
+ ::OpenEventW(EVENT_MODIFY_STATE, FALSE, sandbox::g_winproc_event); |
if (event == NULL || event == INVALID_HANDLE_VALUE) |
return 1; |
@@ -50,17 +51,17 @@ int WINAPI WinMain(HINSTANCE instance, |
window_class.hCursor = ::LoadCursor(NULL, IDC_ARROW); |
window_class.hbrBackground = reinterpret_cast<HBRUSH>(COLOR_WINDOWFRAME); |
window_class.lpszMenuName = NULL; |
- window_class.lpszClassName = g_winproc_class_name; |
+ window_class.lpszClassName = sandbox::g_winproc_class_name; |
window_class.hIconSm = ::LoadIcon(NULL, IDI_APPLICATION); |
if (!::RegisterClassEx(&window_class)) |
return 1; |
// Step 2: Create the Window. |
- HWND window = ::CreateWindowExW(WS_EX_CLIENTEDGE, g_winproc_class_name, |
- g_winproc_window_name, WS_OVERLAPPEDWINDOW, |
- CW_USEDEFAULT, CW_USEDEFAULT, 240, 120, NULL, |
- NULL, instance, NULL); |
+ HWND window = ::CreateWindowExW( |
+ WS_EX_CLIENTEDGE, sandbox::g_winproc_class_name, |
+ sandbox::g_winproc_window_name, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, |
+ CW_USEDEFAULT, 240, 120, NULL, NULL, instance, NULL); |
if (window == NULL) |
return 1; |