I just want to make sure I am doing this correct as I am learning C# currently.
I know you must first open the process, read or write to the memory then close the process. My question is..
If you Open the process will that value be the window handle? ex.
Intptr hReadProcess = OpenProcess(0x001F0FFF, false, ProcessID);
The reason I am asking is because every time I call open process it returns a value(the window handle?) but changes every time you read it.
I am calling OpenProcess, and this is my code to convert the integer to a string
TXTBA.Text = Convert.ToString(hReadProcess);
Any help is appreciated, thank you in advance.