Questions tagged [openprocess]
50 questions
1
vote
1 answer
I have try to open process in cpp by using psapi library but *some process not openning* and I displaying it in webpage using tomcat server and jni
Problem 1
I try to open process in cpp by using psapi library but some SYSTEM process not opening and display it in webpage using tomcat server.
i am using jni to transfer data between cpp to java (servlet).
process in task manager (fig 1)
process…

Abella
- 21
- 2
1
vote
1 answer
OpenProcess() fails for some users with access denied
I'm using Java JNA in order to access a process' memory on Windows. My code looks like this:
static WinNT.HANDLE openProcessHandle(int processId)
{
val processAccessRights = PROCESS_VM_OPERATION | PROCESS_VM_READ | PROCESS_VM_WRITE |…

BullyWiiPlaza
- 17,329
- 10
- 113
- 185
1
vote
1 answer
ReadProcessMemory returns nothing
I was following this Stackoverflow question here. I'm trying to read the data stored in notepad.exe memory space. But my get_data function seems to return nothing. I have some text stored in notepad, i would like to retrieve that text from RAM and…
user9321739
1
vote
2 answers
Creating Visualisations in Processing and Understanding Code
I am trying to get into creative coding mainly for creating live visuals. I have recently stumbled upon this great website called https://www.openprocessing.org/ where people can share their creations.
I have attached code below for creating two…

ApexSnake
- 37
- 1
- 7
1
vote
2 answers
open a process and capture screen of its area in c++ on Windows using Qt
how to open a process and capture the screen of its area into a image file in c++ on Windows?
i am using Qt, but it seems Qt doesnot have API for this.
so i want to know is there any API or lib to do this.
thank you

gpu
- 129
- 10
1
vote
1 answer
Question about process access privilege
I got the following scenario:
Process A create process B, and then B try to get a handle of A with OpenProcess(). I want B to have PROCESS_ALL_ACCESS rights to A.
How should I achieve this?
Thanks.

smwikipedia
- 61,609
- 92
- 309
- 482
1
vote
2 answers
OpenProcessToken() gives "Access is denied"
As part of a project which runs as a service that spawns a process in the login screen (for desktop control) we call OpenProcessToken(), which is then duplicated and a process created. This works successfully as expected under LocalSystem, however…

Ross Harvey
- 11
- 4
1
vote
2 answers
Win32 C++ OpenProceess should return null if user has exited application but doesnt?
I have a program (runs as a background process) in which I installed a hook to capture EVENT_SYSTEM_FOREGROUND events (i.e - when the user switches between windows). The callback which is registered for the hook basically logs what application…

Tommy
- 176
- 1
- 2
- 17
1
vote
1 answer
Java Open external program then close java program
Alright, I have a shutdown hook that makes sure I close my connection nicely whenever I close. What I need to do now is open another program (terminal emulator) then close mine while leaving the terminal emulator open. I am able to open the emulator…

Andrew
- 175
- 1
- 2
- 12
1
vote
1 answer
OpenProcess / SetProcessAffinityMask on process started by my service
In my manager.exe, I'm trying to change the CPU usage of my worker.exe, which is started by my service.exe. Service.exe is running under the System Account, while manager.exe is running under the logged in user's account.
When I call OpenProcess…

Warpin
- 6,971
- 12
- 51
- 77
1
vote
2 answers
Check for a process previously started by the application always returns process alive
I am creating a process with CreateProcess:
with flags CREATE_NO_WINDOW | CREATE_BREAKAWAY_FROM_JOB | CREATE_NEW_PROCESS_GROUP | DETACHED_PROCESS
InheritHandles param = TRUE
startupinfo stdout and stderr file redirection…

Dariusz
- 21,561
- 9
- 74
- 114
1
vote
2 answers
How to check if process is still running on Windows server 2008?
We have two services: one service is 32-bit (process1) and the other is 64-bit (process2).
We have code that process1 is using to check if process2 is running:
HANDLE hProcess;
RESET_WIN_ERRNO;
hProcess =…
user243074
1
vote
1 answer
Stuck with OpenProcess, always returns 0
Something weird happens when I run my program. When I run it by using "Start Without Debugging" option in VS 2010, OpenProcess returns the process handle as usual, but when I run my program in Windows Explorer, OpenProcess always return 0?!! I…

Name
- 118
- 1
- 7
0
votes
0 answers
DLL injected via OpenProcess as Admin, but target process is not Admin, is there a way to elevate the target process?
Pretty much the title, my DLL has some functionality that only works if the process is Admin. The application that calls OpenProcess and injects the dll has Admin privilege, but the actual target process might not be launched as Admin.
Is there any…

000Camus000
- 199
- 1
- 1
- 7
0
votes
0 answers
Expected an assignment or function call and instead saw an exp
enter image description herevoid draw();{
//background(0);
PVector mouse = new PVector(mouseX, mouseY);
PVector center = new PVector(width/2, height/2);
mouse.sub(center);
translate(width/2, height/2);
On the PVector lines I am getting the same…

X S
- 1
- 1