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

Unified Diff: base/win/iat_patch_function.h

Issue 587923002: Extend the CloseHandle interception to all DLLs loaded in the process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 6 years, 3 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
« no previous file with comments | « no previous file | base/win/iat_patch_function.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
//
« no previous file with comments | « no previous file | base/win/iat_patch_function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698