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

Side by Side Diff: base/win/iat_patch_function.h

Issue 1550493002: Switch to standard integer types in base/win/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « base/win/i18n_unittest.cc ('k') | base/win/message_window.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_WIN_IAT_PATCH_FUNCTION_H_ 5 #ifndef BASE_WIN_IAT_PATCH_FUNCTION_H_
6 #define BASE_WIN_IAT_PATCH_FUNCTION_H_ 6 #define BASE_WIN_IAT_PATCH_FUNCTION_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "base/base_export.h" 10 #include "base/base_export.h"
11 #include "base/basictypes.h" 11 #include "base/macros.h"
12 12
13 namespace base { 13 namespace base {
14 namespace win { 14 namespace win {
15 15
16 // A class that encapsulates Import Address Table patching helpers and restores 16 // A class that encapsulates Import Address Table patching helpers and restores
17 // the original function in the destructor. 17 // the original function in the destructor.
18 // 18 //
19 // It will intercept functions for a specific DLL imported from another DLL. 19 // It will intercept functions for a specific DLL imported from another DLL.
20 // This is the case when, for example, we want to intercept 20 // This is the case when, for example, we want to intercept
21 // CertDuplicateCertificateContext function (exported from crypt32.dll) called 21 // CertDuplicateCertificateContext function (exported from crypt32.dll) called
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 DISALLOW_COPY_AND_ASSIGN(IATPatchFunction); 75 DISALLOW_COPY_AND_ASSIGN(IATPatchFunction);
76 }; 76 };
77 77
78 BASE_EXPORT DWORD ModifyCode(void* old_code, void* new_code, int length); 78 BASE_EXPORT DWORD ModifyCode(void* old_code, void* new_code, int length);
79 79
80 } // namespace win 80 } // namespace win
81 } // namespace base 81 } // namespace base
82 82
83 #endif // BASE_WIN_IAT_PATCH_FUNCTION_H_ 83 #endif // BASE_WIN_IAT_PATCH_FUNCTION_H_
OLDNEW
« no previous file with comments | « base/win/i18n_unittest.cc ('k') | base/win/message_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698