Questions tagged [openprocess]
50 questions
0
votes
1 answer
how to move a drawing in open processing
I have created the image of a dinosaur in openprocessing.org using multiple lines of code. I want to move the dinosaur around the environment as a whole, but moveMouse fn only lets me use one shape at a time. Any advice?

Tara
- 1
0
votes
1 answer
P5js/Openprocessing Character moving question?
I'm trying to get mario to move side to side. The character is moving fine, but everytime the x-position changes the draw function seems to create a new image.
enter image description here
[The code results like this ]
function…

Hayul
- 1
- 1
0
votes
1 answer
How do I accessing a protected process's .exe address?
I am writing anti cheat software for a video game. Using CreateToolhelp32Snapshot I can get a list of open processes. From there I would like to find the address of each process and read through its .exe file. While this works for most processes,…

Loran1156
- 9
- 1
0
votes
0 answers
return 0, Error Code 6, OpenProcess() in c++
Finding the paths of all currently running processes.
I am using mfc and I have also implemented a source for elevation.
Some of the paths are known, but about 50 out of 100 processes are returning 0 from the OpenProcessHandle. The error code is…

안재욱
- 1
- 1
0
votes
1 answer
C# open rasphone.exe with arguments
Can you find my problem?
I can't open rasphone.exe with the right arguments.
private void Button_Click_1(object sender, RoutedEventArgs e)
{
System.Diagnostics.ProcessStartInfo proc = new System.Diagnostics.ProcessStartInfo();
proc.FileName…

root_id
- 9
- 7
0
votes
1 answer
Invalid Handle when using a single HANDLE with two calls of ReadProcessMemory
I'm just starting to learn about Windows API and I want to make a simple program which read values in a given process.
Here is my code
#include
#include
void printError();
int main()
{
int *buffer;
// process input
…

Michaël Randria
- 453
- 1
- 5
- 21
0
votes
1 answer
OpenProcess call returns pseudo handle
MSDN says that OpenProcess() must return either a valid handle, or NULL on error.
However, I met a rare situation on Win7 x64 (and also on Win 8.1 x86, Win XP x64, Win Vista x64) where OpenProcess() returned -1 for the current process, i.e. the…

Rom098
- 2,445
- 4
- 35
- 52
0
votes
1 answer
Read memory from application which does not allow it
I am currently trying to read the entirety of the memory of a game which blocks calls to OpenProcess and ReadProcessMemory (I believe this is done through a windows driver/service, although I'm not sure how).
I use the following code to do try and…

rodit
- 1,746
- 2
- 19
- 33
0
votes
1 answer
lvalue required as left operand of assignment at isProcessRunning(handle)=true
i don't get what is wrong with my code, sry if it's a silly question i'm a beginner
#include
#include
#include
#include
bool isProcessRunning(HANDLE process)
{
return WaitForSingleObject( process, 0…

Michael
- 3
- 1
0
votes
1 answer
Executing function in remote process using code injection
I'm using advanced code injection code to start up .dll on remote process.
You can find how this works / code snipet for example from here:
https://sourceforge.net/p/diagnostic/svn/HEAD/tree/src/RemoteInit.cpp
I've noticed that with some…

TarmoPikaro
- 4,723
- 2
- 50
- 62
0
votes
1 answer
Vista/7 compile and XP/2000 execution issues with OpenProcess in C++
I've been using OpenProcess with PROCESS_ALL_ACCESS rights for the following functions:
-EnumProcessModules
-GetModuleFileNameEx
-ReadProcessMemory
-WriteProcessMemory
which works fine on Windows Vista/7. However, in Windows XP/2000, it won't open…

Dororo
- 3,420
- 2
- 30
- 46
0
votes
4 answers
GetProcessName in C++
I have a function with blow detail.
typedef part
typedef DWORD (WINAPI *GETMODULEFILENAMEEX)(HANDLE hProcess, HMODULE hModule, LPTSTR lpBaseName,DWORD nSize);
typedef BOOL (WINAPI *PFNTERMINATEPROCESS)(HANDLE hProcess,UINT…

Phoenix
- 129
- 5
- 11
0
votes
1 answer
getting base address from an exe c++
I tried to get the base starting address from this exe with openprocess, but I keep crashing when I run the code and I don't really see anything wrong with it.
HMODULE GetModule(HANDLE han)
{
HMODULE hMods[1024];
int i;
DWORD cbNeeded;
…

Jhon Brian
- 9
- 2
0
votes
1 answer
OpenProcess Failure (SeDebugPrivilege?)
I'm trying to use OpenProcess, for some reason it keeps failing.
HANDLE GetProcessPid()
{
DWORD pid = 0;
wchar_t ProcessName[] = L"notepad.exe";
// Create toolhelp snapshot.
HANDLE snapshot =…

Tom Ryan
- 1
- 3
0
votes
1 answer
Getting error - Access is denied in OpenProcess() after enabling privileges
I want to get executable path of csrss process. I enabled privileges, but GetLastError() function returns error 5 in OpenProcess. I'm running Visual Studio as administrator and compiling program in 64bit mode, also I'm using Windows 8. Thanks to…

user3125052
- 1
- 1
- 2