Index: base/win/iat_patch_function.h |
diff --git a/base/win/iat_patch_function.h b/base/win/iat_patch_function.h |
index b400841475007f03f66c6c45687ae7ffcd77f8cf..8be97f82527f1ea62d03031722a1fe913f68dd27 100644 |
--- a/base/win/iat_patch_function.h |
+++ b/base/win/iat_patch_function.h |
@@ -47,6 +47,12 @@ class BASE_EXPORT IATPatchFunction { |
const char* function_name, |
void* new_function); |
+ // Same as Patch(), but uses a handle to a |module| instead of the DLL name. |
+ DWORD PatchFromModule(HMODULE module, |
+ const char* imported_from_module, |
+ const char* function_name, |
+ void* new_function); |
+ |
// Unpatch the IAT entry using internally saved original |
// function. |
// |