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

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

Issue 3836005: Move pe_image and registry from base to base/win and use the namespace. It re... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | app/win/iat_patch_function.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 APP_WIN_IAT_PATCH_FUNCTION_H_ 5 #ifndef APP_WIN_IAT_PATCH_FUNCTION_H_
6 #define APP_WIN_IAT_PATCH_FUNCTION_H_ 6 #define APP_WIN_IAT_PATCH_FUNCTION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <windows.h> 9 #include <windows.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/pe_image.h"
13 12
14 namespace app { 13 namespace app {
15 namespace win { 14 namespace win {
16 15
17 // A class that encapsulates Import Address Table patching helpers and restores 16 // A class that encapsulates Import Address Table patching helpers and restores
18 // the original function in the destructor. 17 // the original function in the destructor.
19 // 18 //
20 // 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.
21 // This is the case when, for example, we want to intercept 20 // This is the case when, for example, we want to intercept
22 // CertDuplicateCertificateContext function (exported from crypt32.dll) called 21 // CertDuplicateCertificateContext function (exported from crypt32.dll) called
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void* original_function_; 63 void* original_function_;
65 IMAGE_THUNK_DATA* iat_thunk_; 64 IMAGE_THUNK_DATA* iat_thunk_;
66 65
67 DISALLOW_COPY_AND_ASSIGN(IATPatchFunction); 66 DISALLOW_COPY_AND_ASSIGN(IATPatchFunction);
68 }; 67 };
69 68
70 } // namespace win 69 } // namespace win
71 } // namespace app 70 } // namespace app
72 71
73 #endif // APP_WIN_IAT_PATCH_FUNCTION_H_ 72 #endif // APP_WIN_IAT_PATCH_FUNCTION_H_
OLDNEW
« no previous file with comments | « no previous file | app/win/iat_patch_function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698