From 911d332c523848023e3c6564788b72b7f419fca1 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Sat, 9 Jun 2018 13:39:58 -0700 Subject: Avoid NativeOverlapped pinning by allocating unmanaged memory for it (#18360) It makes PinnableBufferCache unnecessary --- src/pal/inc/pal.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/pal/inc/pal.h') diff --git a/src/pal/inc/pal.h b/src/pal/inc/pal.h index f89798ceab..d5587b9f41 100644 --- a/src/pal/inc/pal.h +++ b/src/pal/inc/pal.h @@ -873,7 +873,13 @@ SetFileAttributesW( #define SetFileAttributes SetFileAttributesA #endif -typedef LPVOID LPOVERLAPPED; // diff from winbase.h +typedef struct _OVERLAPPED { + ULONG_PTR Internal; + ULONG_PTR InternalHigh; + DWORD Offset; + DWORD OffsetHigh; + HANDLE hEvent; +} OVERLAPPED, *LPOVERLAPPED; PALIMPORT BOOL -- cgit v1.2.3