summaryrefslogtreecommitdiffstats
path: root/sandbox/src/win_utils.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-11 22:20:31 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-11 22:20:31 +0000
commit0483cf1851e39d333d5fdab34506e1ef1006fc8a (patch)
tree2408fa7306b79dfd241b6a8deca616c21197ef2c /sandbox/src/win_utils.h
parent83f30e9abf82b6e1defa5c6fcc3ed2bc6b2aa067 (diff)
downloadchromium_src-0483cf1851e39d333d5fdab34506e1ef1006fc8a.zip
chromium_src-0483cf1851e39d333d5fdab34506e1ef1006fc8a.tar.gz
chromium_src-0483cf1851e39d333d5fdab34506e1ef1006fc8a.tar.bz2
Sandbox: Some cleanup after the previous changes.
No real code change. BUG=27218 TEST=current tests. Review URL: http://codereview.chromium.org/597050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38837 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/src/win_utils.h')
-rw-r--r--sandbox/src/win_utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sandbox/src/win_utils.h b/sandbox/src/win_utils.h
index c52f3e3..8bc44b7 100644
--- a/sandbox/src/win_utils.h
+++ b/sandbox/src/win_utils.h
@@ -88,6 +88,12 @@ HKEY GetReservedKeyFromName(const std::wstring& name);
// cannot be resolved.
bool ResolveRegistryName(std::wstring name, std::wstring* resolved_name);
+// Writes |length| bytes from the provided |buffer| into the address space of
+// |child_process|, at the specified |address|, preserving the original write
+// protection attributes. Returns true on success.
+bool WriteProtectedChildMemory(HANDLE child_process, void* address,
+ const void* buffer, size_t length);
+
} // namespace sandbox
// Resolves a function name in NTDLL to a function pointer. The second parameter