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

Side by Side Diff: chrome_frame/crash_reporting/nt_loader.h

Issue 872004: Heuristically avoid reporting crashes during DLL loading.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_FRAME_NT_LOADER_H_ 4 #ifndef CHROME_FRAME_NT_LOADER_H_
5 #define CHROME_FRAME_NT_LOADER_H_ 5 #define CHROME_FRAME_NT_LOADER_H_
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <winnt.h> 8 #include <winnt.h>
9 #include <winternl.h> 9 #include <winternl.h>
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 void* EntryPoint; // 0x01c 121 void* EntryPoint; // 0x01c
122 ULONG SizeOfImage; // 0x020 122 ULONG SizeOfImage; // 0x020
123 UNICODE_STRING FullDllName; // 0x024 123 UNICODE_STRING FullDllName; // 0x024
124 UNICODE_STRING BaseDllName; // 0x02c 124 UNICODE_STRING BaseDllName; // 0x02c
125 ULONG Flags; // 0x034 125 ULONG Flags; // 0x034
126 USHORT LoadCount; // 0x038 126 USHORT LoadCount; // 0x038
127 USHORT TlsIndex; // 0x03a 127 USHORT TlsIndex; // 0x03a
128 union { 128 union {
129 LIST_ENTRY HashLinks; // 0x03c 129 LIST_ENTRY HashLinks; // 0x03c
130 struct { 130 struct {
131 void* SectionPointer; // 0x03c 131 void* SectionPointer; // 0x03c
132 ULONG CheckSum; // 0x040 132 ULONG CheckSum; // 0x040
133 }; 133 };
134 }; 134 };
135 union { 135 union {
136 ULONG TimeDateStamp; // 0x044 136 ULONG TimeDateStamp; // 0x044
137 void* LoadedImports; // 0x044 137 void* LoadedImports; // 0x044
138 }; 138 };
139 void *EntryPointActivationContext; // 0x048 139 void *EntryPointActivationContext; // 0x048
140 void* PatchInformation; // 0x04c 140 void* PatchInformation; // 0x04c
141 } _LDR_DATA_TABLE_ENTRY, LDR_DATA_TABLE_ENTRY; 141 } _LDR_DATA_TABLE_ENTRY, LDR_DATA_TABLE_ENTRY;
142 142
143 // Retrieves the current thread's TEB. 143 // Retrieves the current thread's TEB.
144 inline TEB* GetCurrentTeb() { 144 inline TEB* GetCurrentTeb() {
145 return reinterpret_cast<TEB*>(NtCurrentTeb()); 145 return reinterpret_cast<TEB*>(NtCurrentTeb());
146 } 146 }
147 147
(...skipping 18 matching lines...) Expand all
166 } 166 }
167 167
168 // Returns true iff the current thread owns the loader's lock on call. 168 // Returns true iff the current thread owns the loader's lock on call.
169 inline bool OwnsLoaderLock() { 169 inline bool OwnsLoaderLock() {
170 return OwnsCriticalSection(GetLoaderLock()); 170 return OwnsCriticalSection(GetLoaderLock());
171 } 171 }
172 172
173 } // namespace nt_loader 173 } // namespace nt_loader
174 174
175 #endif // CHROME_FRAME_NT_LOADER_H_ 175 #endif // CHROME_FRAME_NT_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698