Skip to main content

All Questions

Tagged with
0 votes
0 answers
62 views

Reading & Writing other process's STD handles in python

I am trying to use Pywin32 to get the STD handles of another process, then read and write to them. My source code is: import win32api import win32con import win32file STD_INPUT_HANDLE = -10 ...
user0's user avatar
  • 61
0 votes
0 answers
43 views

Java - Identifying File System operations from ProcessBuilder/Process

I'm building and then running a process through ProcessBuilder as such: final String cmd = myStringBuilder.toString(); final ProcessBuilder processBuilder = new ProcessBuilder("cmd", "/...
carrj-nm's user avatar
0 votes
0 answers
69 views

How to get a list of all running GUI apps means processes that have a window attached? using python

I have searched extensively for a solution and discovered the psutil library. While I've managed to retrieve all running processes using psutil, I'm struggling to segregate them into GUI applications ...
Tarun Sinha's user avatar
1 vote
2 answers
125 views

Why does .Net change the Process.MainWindowHandle?

I created a new Windows Forms App in Visual Studio and added the following code to it: new Form1().Show(); By calling this code, the Process.MainWindowHandle of my process, reported by Process....
Tahtu's user avatar
  • 496
0 votes
0 answers
119 views

How to determine the owner of a system process

The basics of this question are already discussed widely, but I have a specific difference: My app knows the pid of a process and needs to determine the owner of this process. I implemented it like ...
casiosmu's user avatar
  • 817
0 votes
1 answer
69 views

WinAPI - how to run some clean up code on forceful exit

I have this snippet: #include <windows.h> class Conf { public: Conf(int i) : m_i{ i } { MessageBoxA(NULL, "Conf", "", MB_OK); } ~...
coderodde's user avatar
  • 929
-3 votes
1 answer
170 views

Failed to suspend process in c++ program

private: DWORD SuspendProcess(HANDLE hProcess) { DWORD result = SuspendThread(hProcess); if (result == (DWORD)-1) { // SuspendThread failed return false; } return ...
Roman Soroka's user avatar
0 votes
0 answers
58 views

How to capture real-time output from a native process in C#?

I am attempting to capture real-time output from a native process and forward it to a SignalR client using C#. However, I am not able to capture the output as expected. I have created a NativeProcess ...
vitkuz573's user avatar
  • 113
0 votes
0 answers
147 views

How to prevent a service executable from being suspended? (C++, win32)

I created a windows service which does not accept PAUSE nor STOP. Thus my service itself does not react on STOP or PAUSE SERVICE CONTROLS. However the service executable can be suspended from ...
anitarazafi's user avatar
0 votes
0 answers
151 views

How to force a process to start invisible?

I want to start a PDF viewer as an invisible process, force it into a control, and display it again. But the viewer seems to refuse to start invisible. I have already tried these start parameters: ...
fikewek832's user avatar
1 vote
1 answer
142 views

Unable to read all the requests part of the memory

I ran an executable using CreateProcess like so: CreateProcess(fname, NULL, NULL, NULL, FALSE, CREATE_SUSPENDED, NULL,NULL, &si, pi) Note the pi in CreateProcess is passed by reference. After ...
loaded_dypper's user avatar
0 votes
0 answers
82 views

Can you allocate (VirtualAlloc) a region if a part of the block given by the allocation granularity (64kb) is already allocated?

My code. I have put the functions at the end. long base = reserve(0x660000, 0x4000); // long reserve(long address, long size) commit(base + 0x0000, 0x10); // long commit(long address, long ...
AirToTec's user avatar
0 votes
0 answers
74 views

AssignProcessToJobObject return false with error ACCESS_DENIED when a process handle is added

I have a console app which runs in administrator context and I want to launch a child process in current user's context. I have the following code to achieve this - private static bool ...
manikanta vh's user avatar
0 votes
0 answers
341 views

How can I make Windows believe a debugger is present for my own process?

I want the 'BeingDebugged' field in the PEB for my process to always be true. I'm not interested in actually debugging the process, I just want Windows to believe it is being debugged. The process is ...
afar's user avatar
  • 1
0 votes
1 answer
221 views

WMI IWbemServices::ExecMethod is slow on Win32API

I am trying to get info for all running processes on windows. Through ExecMethod I am trying to get user name and domain of a process owner. I am doing it like this: HRESULT hres; BSTR MethodName ...
Nikita Novikov's user avatar

15 30 50 per page
1
2 3 4 5
34