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

Unified Diff: sandbox/win/src/win_utils.h

Issue 2323443003: Implement new method to get process base address in Windows sandbox. (Closed)
Patch Set: Remove redundant close handle call Created 4 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
Index: sandbox/win/src/win_utils.h
diff --git a/sandbox/win/src/win_utils.h b/sandbox/win/src/win_utils.h
index 13dc569c10ac90cefa853ae715f1f5c5bf6f225a..2327e65becfd0fc3af6b14b981164b66e8d75680 100644
--- a/sandbox/win/src/win_utils.h
+++ b/sandbox/win/src/win_utils.h
@@ -112,6 +112,10 @@ bool IsPipe(const base::string16& path);
// Converts a NTSTATUS code to a Win32 error code.
DWORD GetLastErrorFromNtStatus(NTSTATUS status);
+// Returns the address of the main exe module in memory taking in account
+// address space layout randomization.
+void* GetProcessBaseAddress(HANDLE process);
+
} // namespace sandbox
// Resolves a function name in NTDLL to a function pointer. The second parameter

Powered by Google App Engine
This is Rietveld 408576698