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

Unified Diff: third_party/crashpad/crashpad/util/win/nt_internals.cc

Issue 1921833002: Update Crashpad to 00d458adaf3868999eeab5341fce5bedb81d17a1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win fixes Created 4 years, 8 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
« no previous file with comments | « third_party/crashpad/crashpad/util/win/nt_internals.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/crashpad/crashpad/util/win/nt_internals.cc
diff --git a/third_party/crashpad/crashpad/util/win/nt_internals.cc b/third_party/crashpad/crashpad/util/win/nt_internals.cc
index 6fc0999d9e1d0febcf5e048d1e668e6c34e98adb..8cf96a450f9a531867336342cfe843c911fd77f5 100644
--- a/third_party/crashpad/crashpad/util/win/nt_internals.cc
+++ b/third_party/crashpad/crashpad/util/win/nt_internals.cc
@@ -21,6 +21,18 @@
struct CLIENT_ID;
+NTSTATUS NTAPI NtCreateThreadEx(PHANDLE ThreadHandle,
+ ACCESS_MASK DesiredAccess,
+ POBJECT_ATTRIBUTES ObjectAttributes,
+ HANDLE ProcessHandle,
+ PVOID StartRoutine,
+ PVOID Argument,
+ ULONG CreateFlags,
+ SIZE_T ZeroBits,
+ SIZE_T StackSize,
+ SIZE_T MaximumStackSize,
+ PVOID /*PPS_ATTRIBUTE_LIST*/ AttributeList);
+
NTSTATUS NTAPI NtOpenThread(HANDLE* ThreadHandle,
ACCESS_MASK DesiredAccess,
OBJECT_ATTRIBUTES* ObjectAttributes,
@@ -30,6 +42,38 @@ void* NTAPI RtlGetUnloadEventTrace();
namespace crashpad {
+NTSTATUS NtClose(HANDLE handle) {
+ static const auto nt_close = GET_FUNCTION_REQUIRED(L"ntdll.dll", ::NtClose);
+ return nt_close(handle);
+}
+
+NTSTATUS
+NtCreateThreadEx(PHANDLE thread_handle,
+ ACCESS_MASK desired_access,
+ POBJECT_ATTRIBUTES object_attributes,
+ HANDLE process_handle,
+ PVOID start_routine,
+ PVOID argument,
+ ULONG create_flags,
+ SIZE_T zero_bits,
+ SIZE_T stack_size,
+ SIZE_T maximum_stack_size,
+ PVOID attribute_list) {
+ static const auto nt_create_thread_ex =
+ GET_FUNCTION_REQUIRED(L"ntdll.dll", ::NtCreateThreadEx);
+ return nt_create_thread_ex(thread_handle,
+ desired_access,
+ object_attributes,
+ process_handle,
+ start_routine,
+ argument,
+ create_flags,
+ zero_bits,
+ stack_size,
+ maximum_stack_size,
+ attribute_list);
+}
+
NTSTATUS NtQuerySystemInformation(
SYSTEM_INFORMATION_CLASS system_information_class,
PVOID system_information,
« no previous file with comments | « third_party/crashpad/crashpad/util/win/nt_internals.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698