Click here to Skip to main content
15,905,875 members
Home / Discussions / C#
   

C#

 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
Jimmanuel6-Jul-07 9:35
Jimmanuel6-Jul-07 9:35 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
games guru6-Jul-07 9:43
games guru6-Jul-07 9:43 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
PhilDanger6-Jul-07 11:23
PhilDanger6-Jul-07 11:23 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
Luc Pattyn6-Jul-07 15:55
sitebuilderLuc Pattyn6-Jul-07 15:55 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
games guru6-Jul-07 16:01
games guru6-Jul-07 16:01 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
Luc Pattyn6-Jul-07 16:38
sitebuilderLuc Pattyn6-Jul-07 16:38 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
games guru6-Jul-07 16:46
games guru6-Jul-07 16:46 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
Luc Pattyn6-Jul-07 17:03
sitebuilderLuc Pattyn6-Jul-07 17:03 
Communicating with another process takes one of three routes:

- use an appropriate CLR class, when available; no warries here
- for simple things: use an existing Win32 function, call it with P/Invoke;
works fine as long as the function does not need pointers (so SetWindowText
is fine, SendMessage may be fine depending on the message code, i.e. do
wParam/lParam hold values or pointers ?)
- for complex things: allocate memory in the other process (this requires the
use of several Win32 functions such as VirtualAllocEx), transfer data
to/from your process address space from/to the other process' address space
(using ReadProcessMemory or WriteProcessMemory), and call the intended
Win32 function (all in appropriate order!). There are some examples of this
on CodeProject, at least one article describes a C++ class that facilitates
this; I wont repeat it all.

What you were talking about before (offset indirect addressing and the like) is
not applicable to the above; at most data is read/written somewhere, and a
pointer (a real one, not something fancy) to it gets passed back/forth.

Smile | :)





Questionmerge two files in a file Pin
WhiteGirl236-Jul-07 3:58
WhiteGirl236-Jul-07 3:58 
AnswerRe: merge two files in a file Pin
BoneSoft6-Jul-07 4:07
BoneSoft6-Jul-07 4:07 
AnswerRe: merge two files in a file Pin
Colin Angus Mackay6-Jul-07 4:07
Colin Angus Mackay6-Jul-07 4:07 
AnswerRe: merge two files in a file Pin
Christian Graus6-Jul-07 4:09
protectorChristian Graus6-Jul-07 4:09 
GeneralRe: merge two files in a file Pin
Martin#6-Jul-07 7:32
Martin#6-Jul-07 7:32 
GeneralRe: merge two files in a file Pin
Colin Angus Mackay6-Jul-07 9:18
Colin Angus Mackay6-Jul-07 9:18 
AnswerRe: merge two files in a file Pin
snorkie6-Jul-07 4:11
professionalsnorkie6-Jul-07 4:11 
GeneralRe: merge two files in a file Pin
Luc Pattyn6-Jul-07 4:20
sitebuilderLuc Pattyn6-Jul-07 4:20 
GeneralRe: merge two files in a file Pin
Jimmanuel6-Jul-07 4:46
Jimmanuel6-Jul-07 4:46 
JokeRe: merge two files in a file Pin
Luc Pattyn6-Jul-07 5:01
sitebuilderLuc Pattyn6-Jul-07 5:01 
JokeRe: merge two files in a file Pin
Jimmanuel6-Jul-07 5:12
Jimmanuel6-Jul-07 5:12 
AnswerRe: merge two files in a file Pin
WhiteGirl236-Jul-07 20:14
WhiteGirl236-Jul-07 20:14 
QuestionSqlDataSourceQuery.Select Pin
dboy2216-Jul-07 3:38
dboy2216-Jul-07 3:38 
QuestionI am making C# program that interacts with webpage.get js val exec js function Pin
(kcd)6-Jul-07 3:36
(kcd)6-Jul-07 3:36 
QuestionGenerate AxInterop files Pin
Laurent.iss6-Jul-07 3:29
Laurent.iss6-Jul-07 3:29 
QuestionUpdate designer after updating a property Pin
Christopher Stratmann6-Jul-07 3:06
Christopher Stratmann6-Jul-07 3:06 
AnswerRe: Update designer after updating a property Pin
snorkie6-Jul-07 4:14
professionalsnorkie6-Jul-07 4:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.