win32-process Questions
1
Goal: I want to monitor notepad.exe and restart it whenever it terminates.
My program should,
starts notepad process using ShellExecuteEx
registers the started process with RegisterWaitForSingleOb...
Chorus asked 31/1 at 3:7
9
Solved
I have a nodejs project on my windows machine. Where upon attempting to run the project this error appears involving bcrypt and win32.
[nodemon] 2.0.2
[nodemon] to restart at any time, enter rs
[...
Ravo asked 1/4, 2020 at 1:12
1
The error I'm getting:
Windows Script Host access is disabled on this machine. Contact your administrator for details.
From many websites you can find that making a file named: ["Enabled"...
Mousetrap asked 15/6, 2023 at 3:47
2
Solved
I have a vs project which wouldn't compile once I upgraded to visual studio 2012.
Its a win32 dll project and it complains about the def file.
This is the def file,
LIBRARY test.dll
VERSION 3.1.4...
Poindexter asked 16/11, 2013 at 18:13
1
Solved
My Visual Studio crashes randomly. Event Viewer shows the following error
Faulting application name: devenv.exe, version: 12.0.40629.0, time
stamp: 0x5590c8a4
Faulting module name: KERNELBA...
Mediocrity asked 29/10, 2017 at 23:57
6
Solved
Is there a way to call CreateProcess such that killing the parent process automatically kills the child process?
Perhaps using Create Process Flags?
Edit
The solution is to create a job object, p...
Skantze asked 6/6, 2011 at 23:13
2
I have created a windows executable that serves as a simulaator for some embedded device (all the business logic is exactly the same as on original device and only HW related stuff is stubbed).
Th...
Darrelldarrelle asked 10/8, 2017 at 8:10
1
I use an approach similar to http://www.codeproject.com/Articles/516431/Baktun-Shell-Hosting-WPF-Child-Windows-in-Another to host WPF applications (plugins) in another process via the AddInHost (de...
Vieira asked 10/11, 2016 at 10:57
3
Solved
I have a simple program (in C) that create two child process, wait on an inherited pipe each, and put the output in a file.
Everything works well, except that after some write/read cycle on the tw...
Arsenious asked 31/5, 2012 at 21:55
7
Solved
I have a kiosk app and have to disable task manager always to prevent closing the program by users .
But some users need the TaskManager to close hanging programs.
Any help would be appropriated...
Irrefragable asked 21/3, 2011 at 15:41
2
I am trying to find if there is a better way to find all thread ids that belong to the current process. It looks like using CreateToolhelp32Snapshot with TH32CS_SNAPTHREAD and iterating over the th...
Yiddish asked 24/1, 2012 at 22:11
2
Solved
I am getting the following error when unlocking a file
Arithmetic operation resulted in an overflow
System.IntPtr.ToInt32
I suspect it is the following line to pBuffer.ToInt32() :
IntPtr iPtr = n...
Redemptioner asked 7/4, 2016 at 13:53
1
I have a .NET application which spawns multiple child 'worker processes'. I am using the Windows Job Object API and the JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE setting to ensure the child processes alwa...
Handbag asked 25/1, 2016 at 11:26
2
Solved
I am porting my application to windows from unix and I have run into a wall. In my application I need to find time in microseconds (the whole application heavily depends on it due to it being a hig...
Logorrhea asked 20/12, 2011 at 23:27
1
I have an install script with Pascal code to determine if the app to be installed is currently running:
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON C...
Ornate asked 3/6, 2015 at 10:38
1
Solved
I want to run some save routines when the computer suspends. Therefore I use the OnPowerChange-Event to detect when it suspends and resumes. Unfortunately me save routine needs 3-5 seconds to execu...
Kobarid asked 14/5, 2015 at 20:2
2
Solved
Currently I'm doing this in one command prompt
require 'win32/process'
p = Process.spawn("C:/ruby193/bin/bundle exec rails s")
puts p
Process.waitpid(p)
and then in another
require 'win32/proc...
Halfblood asked 21/11, 2011 at 13:20
1
I found many sources to get the cpu usage of each process. in general there are many ways to get the cpu usage of process .
percentprocessortime from win32_perfformatteddata_perfproc_process
per...
Odom asked 5/3, 2014 at 10:38
2
Solved
I have 2 processes (A, B) sharing the same mutex (using WaitForSingleObject / ReleaseMutex calls). Everything works fine, but when process A crashes, process B is humming along happily. When I rest...
Cattle asked 20/2, 2013 at 16:43
1
Can anyone provide a Delphi example of code that changes the priority class of a process?
I need to get the process by name from the Windows XP Task manager and change its priority using del...
Sethrida asked 19/12, 2011 at 19:6
1
Solved
Process Explorer has a nice feature Replace Task Manager
I just wondered how Mark Russinovich implements this.
What trick is used for implementing this?
Urbanism asked 14/9, 2011 at 12:50
1
Solved
I have a Win32 service, that needs to run a .NET executable on service stop (for cleanup reasons). I recently discovered that the cleanup never happens on shutdown, because the process creation get...
Phagocyte asked 19/7, 2011 at 19:50
2
For some CPU-bound code using 64-bit variables, it is beneficial to use the Amd64 instruction set rather than x86. How can it be done under 32-bit Windows (e.g. Windows XP SP3)? Of course I assume ...
Selfrising asked 20/8, 2011 at 16:25
2
Solved
I'm making a win32 program in C.
When you have multiple threads running, and one of the threads is waiting for an event (using WaitForSingleObject() for example), does that thread still get its fu...
Killie asked 13/11, 2010 at 0:50
1
© 2022 - 2024 — McMap. All rights reserved.