Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
d6771b13
Commit
d6771b13
authored
Jan 12, 2004
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 12, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented Toolhelp32ReadProcessMemory.
parent
9db6037d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
kernel32.spec
dlls/kernel/kernel32.spec
+1
-1
toolhelp.c
dlls/kernel/toolhelp.c
+20
-0
tlhelp32.h
include/tlhelp32.h
+1
-0
No files found.
dlls/kernel/kernel32.spec
View file @
d6771b13
...
...
@@ -818,7 +818,7 @@
@ stub TlsFreeInternal
@ stdcall TlsGetValue(long)
@ stdcall TlsSetValue(long ptr)
@ st
ub Toolhelp32ReadProcessMemory
@ st
dcall Toolhelp32ReadProcessMemory(long ptr ptr long ptr)
@ stdcall TransactNamedPipe(long ptr long ptr long ptr ptr)
@ stdcall TransmitCommChar(long long)
@ stdcall TzSpecificLocalTimeToSystemTime(ptr ptr ptr)
...
...
dlls/kernel/toolhelp.c
View file @
d6771b13
...
...
@@ -441,3 +441,23 @@ BOOL WINAPI Heap32ListFirst(HANDLE hSnapshot, LPHEAPLIST32 lphl)
FIXME
(
": stub
\n
"
);
return
FALSE
;
}
/******************************************************************
* Toolhelp32ReadProcessMemory (KERNEL.@)
*
*
*/
BOOL
WINAPI
Toolhelp32ReadProcessMemory
(
DWORD
pid
,
const
void
*
base
,
void
*
buf
,
SIZE_T
len
,
SIZE_T
*
r
)
{
HANDLE
h
;
BOOL
ret
=
FALSE
;
h
=
(
pid
)
?
OpenProcess
(
PROCESS_VM_READ
,
FALSE
,
pid
)
:
GetCurrentProcess
();
if
(
h
!=
NULL
)
{
ret
=
ReadProcessMemory
(
h
,
base
,
buf
,
len
,
r
);
if
(
pid
)
CloseHandle
(
h
);
}
return
ret
;
}
include/tlhelp32.h
View file @
d6771b13
...
...
@@ -154,6 +154,7 @@ typedef struct tagHEAPLIST32 {
}
HEAPLIST32
,
*
PHEAPLIST32
,
*
LPHEAPLIST32
;
BOOL
WINAPI
Heap32ListFirst
(
HANDLE
,
LPHEAPLIST32
);
BOOL
WINAPI
Toolhelp32ReadProcessMemory
(
DWORD
,
LPCVOID
,
LPVOID
,
SIZE_T
,
SIZE_T
*
);
#ifdef __cplusplus
}
/* extern "C" */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment