summaryrefslogtreecommitdiff
path: root/src/pal/inc/pal.h
diff options
context:
space:
mode:
authorMike McLaughlin <mikem@microsoft.com>2016-12-18 14:48:36 -0800
committerGitHub <noreply@github.com>2016-12-18 14:48:36 -0800
commite50b22b4f07b452b3ce7261fb543a43aa8f70b88 (patch)
treea3910ccba568b59c4f60cdda7ac7cd9f8357afc9 /src/pal/inc/pal.h
parent4497b25d1107846e0ac8d09fa13e40173528fe9e (diff)
downloadcoreclr-e50b22b4f07b452b3ce7261fb543a43aa8f70b88.tar.gz
coreclr-e50b22b4f07b452b3ce7261fb543a43aa8f70b88.tar.bz2
coreclr-e50b22b4f07b452b3ce7261fb543a43aa8f70b88.zip
Remove Read/WriteProcessMemory from PAL. (#8655)
Ifdef more unused code that uses ReadProcessMemory. Move the current memory probing in the transport to PAL_ProbeMemory. Add PAL_ProbeMemory to dac PAL exports. PAL_ProbeMemory may be changed to use write/read on a pipe to validate the memory as soon as we make it perform as well as the current code. Remove ReadProcessMemory tests and add PAL_ProbeMemory pal tests.
Diffstat (limited to 'src/pal/inc/pal.h')
-rw-r--r--src/pal/inc/pal.h26
1 files changed, 7 insertions, 19 deletions
diff --git a/src/pal/inc/pal.h b/src/pal/inc/pal.h
index 28c6278ece..0d7c89e6fa 100644
--- a/src/pal/inc/pal.h
+++ b/src/pal/inc/pal.h
@@ -648,6 +648,13 @@ PAL_DeleteExecWatchpoint(
#endif
+PALIMPORT
+BOOL
+PALAPI
+PAL_ProbeMemory(
+ PVOID pBuffer,
+ DWORD cbBuffer,
+ BOOL fWriteAccess);
/******************* winuser.h Entrypoints *******************************/
@@ -3653,16 +3660,6 @@ VirtualQuery(
IN SIZE_T dwLength);
PALIMPORT
-BOOL
-PALAPI
-ReadProcessMemory(
- IN HANDLE hProcess,
- IN LPCVOID lpBaseAddress,
- OUT LPVOID lpBuffer,
- IN SIZE_T nSize,
- OUT SIZE_T * lpNumberOfBytesRead);
-
-PALIMPORT
VOID
PALAPI
RtlMoveMemory(
@@ -4715,15 +4712,6 @@ typedef struct _RUNTIME_FUNCTION {
DWORD UnwindData;
} RUNTIME_FUNCTION, *PRUNTIME_FUNCTION;
-PALIMPORT
-BOOL
-PALAPI
-WriteProcessMemory(IN HANDLE hProcess,
- IN LPVOID lpBaseAddress,
- IN LPCVOID lpBuffer,
- IN SIZE_T nSize,
- OUT SIZE_T * lpNumberOfBytesWritten);
-
#define STANDARD_RIGHTS_REQUIRED (0x000F0000L)
#define SYNCHRONIZE (0x00100000L)
#define READ_CONTROL (0x00020000L)