OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This file declares a helpers to intercept functions from a DLL. | 5 // This file declares a helpers to intercept functions from a DLL. |
6 // | 6 // |
7 // This set of functions are designed to intercept functions for a | 7 // This set of functions are designed to intercept functions for a |
8 // specific DLL imported from another DLL. This is the case when, | 8 // specific DLL imported from another DLL. This is the case when, |
9 // for example, we want to intercept CertDuplicateCertificateContext | 9 // for example, we want to intercept CertDuplicateCertificateContext |
10 // function (exported from crypt32.dll) called by wininet.dll. | 10 // function (exported from crypt32.dll) called by wininet.dll. |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 void* intercept_function_; | 113 void* intercept_function_; |
114 void* original_function_; | 114 void* original_function_; |
115 IMAGE_THUNK_DATA* iat_thunk_; | 115 IMAGE_THUNK_DATA* iat_thunk_; |
116 | 116 |
117 DISALLOW_EVIL_CONSTRUCTORS(IATPatchFunction); | 117 DISALLOW_EVIL_CONSTRUCTORS(IATPatchFunction); |
118 }; | 118 }; |
119 | 119 |
120 } // namespace iat_patch | 120 } // namespace iat_patch |
121 | 121 |
122 #endif // BASE_IAT_PATCH_H__ | 122 #endif // BASE_IAT_PATCH_H__ |
123 | |
OLD | NEW |