| // Copyright 2018 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 CHROME_ELF_THIRD_PARTY_DLLS_HOOK_H_ |
| #define CHROME_ELF_THIRD_PARTY_DLLS_HOOK_H_ |
| |
| #include <windows.h> |
| |
| #include <string> |
| |
| #include "chrome_elf/third_party_dlls/status_codes.h" |
| |
| namespace third_party_dlls { |
| |
| // Apply hook. |
| // - Ensure the rest of third_party_dlls is initialized before hooking. |
| ThirdPartyStatus ApplyHook(); |
| |
| // Testing-only access to private GetDataFromImage() function. |
| bool GetDataFromImageForTesting(PVOID mapped_image, |
| DWORD* time_date_stamp, |
| DWORD* image_size, |
| std::string* image_name, |
| std::string* section_path, |
| std::string* section_basename); |
| |
| } // namespace third_party_dlls |
| |
| #endif // CHROME_ELF_THIRD_PARTY_DLLS_HOOK_H_ |