| // Copyright 2016 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. |
| |
| #ifndef SANDBOX_TESTS_INTEGRATION_TESTS_HOOKING_DLL_H_ |
| #define SANDBOX_TESTS_INTEGRATION_TESTS_HOOKING_DLL_H_ |
| |
| #include <windows.h> |
| |
| #ifdef BUILDING_DLL |
| #define DLL_EXPORT __declspec(dllexport) |
| #else |
| #define DLL_EXPORT __declspec(dllimport) |
| #endif |
| |
| namespace hooking_dll { |
| |
| constexpr wchar_t g_hook_dll_file[] = L"sbox_integration_test_hook_dll.dll"; |
| constexpr wchar_t g_hook_event[] = L"ChromeExtensionTestHookEvent"; |
| |
| DLL_EXPORT void SetHook(HHOOK hook_handle); |
| DLL_EXPORT bool WasHookCalled(); |
| DLL_EXPORT LRESULT HookProc(int code, WPARAM w_param, LPARAM l_param); |
| |
| } // namespace hooking_dll |
| |
| #endif // SANDBOX_TESTS_INTEGRATION_TESTS_HOOKING_DLL_H_ |