Click here to Skip to main content
15,887,676 members
Everything / Process

Process

process

Great Reads

by Dan Sporici
This article discusses the idea of Hot Patching C/C++ functions using Intel Pin in order to remove known vulnerabilities
by Afzaal Ahmad Zeeshan
Introduction and Background As the title suggests, this post is a personal recommendation for the users of Microsoft Cognitive Services, the services that provide a cloud-based subscription-based solution for artificially intelligent software applications, with an any team, any purpose and any scale
by Leonid Chashnikov
Discover an efficient way to implement document search using inverted index
by ASP.NET Community
The FileSystemWatcher is responsible for to track the updates of either file or folder/sub-folders, Suppose if I would like to continuously monitor a

Latest Articles

by Leonid Chashnikov
Discover an efficient way to implement document search using inverted index
by Bhargav Technical Lead
Angular migration to version 16
by ToughDev
Fix high Windows memory usage caused by large metafile

All Articles

Sort by Updated

Process 

14 Dec 2023 by Arcadegame frame
Is there any effective way to prevent a process from spawning children and revoke its permissions? I am seeking a robust approach to entirely block a process's ability to generate subprocesses and, if possible, restrict its permissions and...
14 Dec 2023 by Member 16163045
Idea not answer trying to block a proccess from creating you can either try killing all of its subproccesses repeatedly. note: add a delay so the users computer doesn't have a bsod (bluescreen of death). if that doesn't work or you still want...
29 Nov 2023 by Dave Kreskowiak
There's a ton of possible problems that can cause this. See this SO post for a list of them: https://stackoverflow.com/questions/55086195/the-resolvepackageassets-task-failed-unexpectedly-system-typeloadexception[^]
29 Nov 2023 by Slow Eddie
I am trying to create a Windows C# Desktop application. Any time I attempt to run /debug it I get a "ResolvePackageAssets" error. I tried with VB.Net and got the same error. I am running Windows10, VS2019 and 2022, Visual Studio Community...
25 Sep 2023 by Leonid Chashnikov
Discover an efficient way to implement document search using inverted index
17 May 2023 by Bhargav Technical Lead
Angular migration to version 16
7 May 2023 by ToughDev
Fix high Windows memory usage caused by large metafile
24 Feb 2023 by Krishna Chaitanya Bezawada (Chaitu)
Hi, I have a requirement such that if a file in particular path is deleted, then my program should kill an running exe program and sleep for 5 minutes so that my software will automatically start the same exe again. When the file is present in...
24 Feb 2023 by RickZeeland
In addition to Griffs advice: another option might be to use the FileSystemWatcher Class (System.IO) | Microsoft Learn[^]
24 Feb 2023 by OriginalGriff
Add a flag which says "I have killed the external process". Set it to true when you kill it, and false when the file exists. Then all you have to do is check it just before you try to kill the EXE. The advanced version stores and restores the...
8 Feb 2023 by Ṉobody
I am creating an application where I use EasyHook to hook into the explorer.exe process and listen for the CreateProcessW method call from kernel32.dll. The program intercepts CreateProcessW only if the user runs the file by double-clicking on it...
8 Feb 2023 by Dave Kreskowiak
Your code, running as your account, cannot intercept calls being made by another account, or an elevated account. This is for security reasons. Think about it. Would you want some schmuck user intercepting code running as administrator and...
23 Jan 2023 by leone
Ok I did it on my own: Material m=new Material(URL); process.OutputDataReceived +=(Object _sender, DataReceivedEventArgs _args)=>DoSomething(m, _sender, _args); public void DoSomething(Material mt,object sender, DataReceivedEventArgs e) { ...
23 Jan 2023 by leone
Hi, My problem is that I cant send my custom object to OutputDataReceived method. Details: I have a class called Material which includes properties such as URL, Title, Description etc. Now I start a Process. My goal is to take Title by using...
26 Nov 2022 by johnDavis121
Not applicable anymore What I have tried: Not applicable anymore
26 Nov 2022 by OriginalGriff
While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for...
3 Aug 2022 by Mohammad Tavoosi
I want to execute an external file and do something when the file was closed but Process. WaitForExit() Method does not work and return null Exception please help me. What I have tried: Process ExecFile = Process.Start(FilePath); ...
29 May 2022 by Member 11134333
I want to run the .exe from web application. On Button Click I have written the C# code to start the Process. This code is working from my local system when I am running the application from Visual Studio. Exe is executing and showing the...
29 May 2022 by OriginalGriff
We can't help you fix this: we have no access to your server or the app. But ... it's likely a permissions problem. Websites in production run under a special user account, so it may not have the right permissions to access the folder the exe is...
29 Apr 2022 by Babita22
I want parent and child processes to communicate in C linux using pipes. I have created two file descriptors. one for parent to child i.e. readpipe and other writepipe for viceversa.But I am getting null as output for ch and ch1 strings in my code below.Please help me in this.#include...
29 Apr 2022 by Member 15620144
Write a C Program which will create a pipe. Write your name on the pipe from write end. Then read data from pipe from the read end. Then display data on terminal.
4 Mar 2022 by Greg Utas
Open-heart surgery on your Big Ball of Mud
10 Jan 2022 by Afzaal Ahmad Zeeshan
Introduction and Background As the title suggests, this post is a personal recommendation for the users of Microsoft Cognitive Services, the services that provide a cloud-based subscription-based solution for artificially intelligent software applications, with an any team, any purpose and any scale
5 Jan 2022 by WOLF 2018
Hello I have been searching for 5 hours trying to find away to get process info and startup info but failed to find any infomation on it. LPPROCESS_INFORMATION lpPI, LPSTARTUPINFO lpSI; HANDLE proc = OpenProcess(PROCESS_ALL_ACCESS, false,...
5 Jan 2022 by Rick York
There are a few ways you can do this. One is call OpenProcess and it requires a process identifier as an argument so you have to obtain that first. Generally speaking, that's what needs to happen : you first need get a process identifier and...
12 Nov 2021 by Ṉobody
I am developing an application to monitor new running processes before the main thread starts running. The problem is that the code below is executed when all threads in the process are loaded and the process is doing its job. I want to do...
10 Nov 2021 by guafa a
You can do that in 5 ways. 1. have a signed kernel driver and run your process as protected through it. (the most recommended) 2. use RtlSetProcessIsCritical Function in ntdll.dll to flag your process as a critical system process. 3. Make 2...
10 Nov 2021 by T.s. Arun
We are trying to create a security application as a part of our college project. We understand there is are no real unkillable processes. What we are trying to create is a process that can't be killed from task manager (or any other easy way). For example, try killing Kaspersky's AVP...
27 Sep 2021 by Vedran Cindric
An honest review of the migration process to a serverless architecture using Laravel, AWS and Laravel Vapor
8 May 2021 by Member 15190136
hey, i just experimented around. task manager(what i tested) cannot be killed except by it killing itself. System.exe is always not killable, because users claimed that by using task manager ( which at the time could kill anything no matter what...
8 May 2021 by agent_kruger
I have a batch file in which i want to write some code which kills a particular app named "AMPPSS.exe" and wait until the process is dead and after the application is killed creates a file named "DONE".I am new at using batch file. so, please help me if possibleThanks in advance
28 Mar 2021 by Inter_Offical
Can I know to design a Avast loading animation, because I really like to use it on my own application. Like this -> https://pasteboard.co/JUHbFCH.gif[^] but in Avast-like UI. (VB.NET or C#) What I have tried: I tried to do this in a normal...
28 Mar 2021 by Dave Kreskowiak
There is a property on the ProgressBar control, called Style. Set it to ProgressBarStyle.Marquee. No other code required.
15 Mar 2021 by Arun Endapally
How to migrate your old repositories in TFVC to Git with full history
14 Mar 2021 by Arun Endapally
Setting different Git Config at folder level for work and personal use.
15 Jan 2021 by \\Coders\Rob
I know Windows Store Apps are executed in isolated mode (a sandbox). Hence I start an App (e.g. Microsoft Photos) by using IApplicationActivationManager.ActivateForFile, the image provided gets displayed and the return value of the function gives me the process Id (e.g. 6544 for a process named...
15 Jan 2021 by Member 14062493
process.EnableRaisingEvents = true; process.Exited += new EventHandler(OnProcessExited); private void OnProcessExited(object sender, EventArgs e) {}
11 Jan 2021 by Benktesh Sharma
How to create, modify and update Docker image from container
5 Dec 2020 by Elias-Traunbauer
Hey! I have a problem with my C' Program. My program is some kind of C Online Compiler. It reads a source file, compiles it and then runs the file and the user should be able to give the Program an input. The compiling part works. But when I...
5 Dec 2020 by charles henington
Gerry Schmitz[^] is correct. You will need to change "mypath" to the actual path of the executable.
4 Dec 2020 by PachisiaVikas
Know the steps to quickly set up a secure remote debugging environment and boost your productivity
4 Dec 2020 by IAmJoshChang
Graphs are one of the most common questions that might show up in a technical interview, especially in these days where many real-world applications can be represented by nodes and edges such as the social networks!
24 Nov 2020 by OwenDavies
How to store Devops documentation in GIT and manage CAD approvals with pull requests
19 Nov 2020 by Member 14500061
Note:- All command are working fine with OSCALL function in compiler VC12 with complier VC14 exe name is RemDicomNodes.exe CMD command prompt:- RemDicomNodes 5 6 1 2 3 10 8 9 RemDicomNodes.exe 1 A RemDicomNodes 2 B B 0 localhost 1 "BE" 104...
22 Oct 2020 by link1234
Hi I want to check witch programing running in user windows or Linux in my Program. I use the below code, However this code show me every process name even the services. But I don't want the services name. I only Want the program user running....
30 Sep 2020 by Member 12737864
I have a string in C# like this: "Hello all friends" and how can I have a string like this: "(Hello AND all AND Friends) OR (Hello AND all) OR (Hello AND friends) OR (all AND friends) OR (Hello) OR (all) OR (friends) " ? What I have tried: ...
30 Sep 2020 by CPallini
You have to Split the string into its words (an array of strings) make a loop, with n=1,..,len where len is the length of the words array at iteration n, find the combinations of n items of the words array iterate over the found...
30 Sep 2020 by Richard Deeming
Split the string into words. If the words are always separated by single spaces, you can use String.Split[^]; otherwise, you might need to use a regular expression: string[] words = System.Text.RegularExpressions.Regex.Matches(input, @"\w+") ...
29 Sep 2020 by Richard MacCutchan
Look at the String Class (System) | Microsoft Docs[^] and StringBuilder Class (System.Text) | Microsoft Docs[^]. Between them they contain properties and methods that can solve most such issues.
16 Jul 2020 by Kevin Mack
When storing data in Azure blob storage, the process of upload a blob is fairly straight forward, and all it takes is setting the access tier to “Archive” to move data to blob storage.
13 Jul 2020 by Mukund Kr Kedia
I want to write a script to get the processes running in the process explorer of Windows, according to the filters I provide.. What I have tried: I have no idea yet, how to proceed in this ..
13 Jul 2020 by Richard MacCutchan
Start by choosing a programming language, and use Google or the MSDN documentation to find information on collecting process information.
29 May 2020 by phil.o
This means that ExecFile is null at the time you are calling the WaitForExit() method. According to Process.Start Method (System.Diagnostics) | Microsoft Docs[^], it could be thatA new Process that is associated with the process resource, or null...
29 May 2020 by OriginalGriff
It depends on what is in your FilePath - if it's the name of a data file (.jpg for example) then the process isn't necessarily kicked off by the "run this" request - the system decides what app to run and if there is a single app it may kick it...
1 May 2020 by honey the codewitch
This tip demonstrates how to create an app that only allows one instance to run at a time
31 Mar 2020 by Alan N
There's nothing wrong with that code but it is possible that SW.exe is ignoring the startup state 'request' from the operating system. For example a GUI windows application written with a System.Windows.Forms.Form and a Load event handler with...
31 Mar 2020 by Marc Kane
I m using these five lines of code, for another process, but somehow it is still not hidden, or to say it is still visible in window. Do you know what line of code am i missing? What I have tried: Dim myprocess As Process = New Process()...
30 Mar 2020 by OriginalGriff
ProcessWindowStyle.Hidden doesn't hide a process - you can't do that - it just doesn't display a window by not actually drawing it at all. A process doesn't have to have a window so it can be "invisible" on screen, but it does have to have a...
28 Jan 2020 by Dave Kreskowiak
First, SFC required admin permissions to run, so if you're not running your code as an admin, SFC isn't going to work either. Next, you execute the SFC command with a call to .Start, but then the very next line you call .ReadToEnd, which DOES NOT WAIT FOR THE PROCESS YOU LAUNCHED TO COMPLETE!...
28 Jan 2020 by Member 14149393
Process p = new Process(); p.StartInfo.WindowStyle = ProcessWindowStyle.Normal; p.StartInfo.CreateNoWindow = false; p.StartInfo.UseShellExecute = false; p.StartInfo.FileName = "sfc.exe"; p.StartInfo.Arguments = " /VERIFYONLY"; ...
25 Sep 2019 by Richard MacCutchan
You already posted this question at https://www.codeproject.com/Questions/5246780/Use-WMI-to-connect-remote-machine-and-execute-batc[^]. Please do not repost. If you have additional information to add then pleased edit the original question.
28 Aug 2019 by LeMS_Studios
I have been working on a game in my free time for a while now. The game is a continuum of Histacom. Below is the code I am using to start a program in the game. The process is started with the exepath and arguments passed. The thread pauses for a half second to allow the new process to start....
28 Aug 2019 by OriginalGriff
I'm not going anywhere near that code. Try without Catch , GoTo instead of loops, two different ways to annoy the user by stopping your app running: Sleep and Nap, assumptions that "something will be finished if I just wait around long enough", ... That doesn't seem to have been thought about,...
27 Aug 2019 by Dan Sporici
This article discusses the idea of Hot Patching C/C++ functions using Intel Pin in order to remove known vulnerabilities
22 Aug 2019 by Piet Hadermann
A lot of people have never worked with a true 10x engineer
19 Aug 2019 by thegreatsm
I found the solution. use below link https://social.msdn.microsoft.com/Forums/vstudio/en-US/990e7c4a-afa7-47aa-b9a6-d5b6beb19f41/call-a-program-via-windows-service?forum=csharpgeneral
19 Aug 2019 by Zalak Parikh
I created a windows service with Process.start(filepath) in it. But it is neither working nor showing any errors. I tried BackgroundWorker with DoWorkEventHandler delegate to start the process. But I failed to start the process. I also tried with ProcessStartInfo and UseShellExecute as false...
19 Aug 2019 by Maciej Los
Please, read this: .net - How can I run an EXE program from a Windows Service using C#? - Stack Overflow[^] The most important information is: Quote: Windows Services cannot start additional applications because they are not running in the context of any particular user. Unlike regular...
19 Aug 2019 by OriginalGriff
Windows services cannot have a user interface, nor can they start or run any application which does have a user interface - because a user interface requires a user to be logged in, and services can run without a user (because they don't run under the user account; they can be run when the OS...
19 Aug 2019 by RickZeeland
With newer Windows versions you can not run Windows Forms applications from a service, Microsoft blocked this a long time ago. You might be interested in Run any WinForms application as a Windows Service[^]
16 Aug 2019 by Jim Forst
If you try another command invoked by CDM, especially one that takes time, like ipconfig, it might work. When you run calc.exe its like typing start calc.exe in CMD and calc.exe is NOT the process you start with CreateProcess()
16 Aug 2019 by Michael Haephrati
I tried to write a small POC (Win32 application) that will invoke "calc.exe" using CreateProcess() and periodically obtain the status (is it still running or was it closed) using GetExitCodeProcess(). My code is "quick and dirty" only for the purpose of finding out how to use...
15 Aug 2019 by KarstenK
You should caedully read the documentation of CreateProcess to understand the details. Take also a look at the linked example.
15 Aug 2019 by Rick York
It appears that cmd is started so you actually get its exit code. If you want to test how you obtain the exit code from a process you should probably make a custom process of your own that will return what ever exit code you want it to return. You could have it prompt you for the exit code if...
5 Aug 2019 by #realJSOP
You can't scaffold while the app is running, because it would have to modify the project in order to complete said scaffolding.
5 Aug 2019 by Md Athaulla
I'm running the dotnet code generator commands from C# (using Process class), I'm able to create project using dotnet new mvc and I'm also able to add nuget packages. But I'm not able to scaffold when application is running. Scaffold happens only when I stop solution. Process p =...
14 May 2019 by Member 14367686
hi. i have some problem when i process python on monodevelop C#. at first , my program is launching on C# ( ubuntu Monodevelop ) and i want to process some python program ( by using bash ) it was done. i`ve succeed to process my python program by using 'Process' class but when i get result of...
14 May 2019 by Richard MacCutchan
You cannot control how much data will be received each time without some method of synchronising the two processes. As it stands they both run independently and so the system will decide when each one can read or write some data.
14 May 2019 by Gerry Schmitz
Your bash and console are both writing to "standard output"; get one to write to something else (e.g. std error). Not sure how sophisticated these components are. Process.StandardOutput Property (System.Diagnostics) | Microsoft Docs[^]
12 Mar 2019 by Member 14129828
I am trying to send an image from the server to the client. the server sent the image but the client doesn't display it ..I have a problem with the code. can anyone help me, please. What I have tried: server\\ private void button6_Click(object sender, EventArgs e) { try ...
12 Mar 2019 by Gerry Schmitz
Socket Code Examples | Microsoft Docs[^]
21 Dec 2018 by john1990_1
I have created a new Chrome window with Google Translate website, I want the window to appear unmaximized for the user to type the text and exit the new window. Also how to make the new window alone unmaximized. What I have tried: private void button1_Click(object sender, EventArgs...
21 Dec 2018 by RickZeeland
See article here and stop doing things the hard way: Google Translator[^]
3 Oct 2018 by Dinesh Kumar Dora
Hello friends, I know checking the process existence by name or PID, but in my scenario, i need to check the process is running or not, with the help of Process description. Is there any way or workaround to do this? In my scenario i have to detect whether a Suite installer by Process Name...
3 Oct 2018 by #realJSOP
You can't use the PID because it's assigned by the system when you execute the process, and therefore it is highly probably that it will be DIFFERENT every time the process runs. You shouldn't use the description, because that could be changed by a developer between executions. You SHOULD use...
25 May 2018 by Member 13844341
#include #include #include #include #include int main() { //for parent to child int parentToChild[2]; //for child to parent int childToParent[2]; //string data char message1[] = "massage from child to parent\n"; char message2[] = "message from parent to...
13 Apr 2018 by OriginalGriff
As Dave has said, services cannot interact directly with the user at all: this is because services can run on a machine that doesn't have a user logged in at all, so there is no way to interact with them. The only way to communicate between a service and a user, is to run an application in the...
13 Apr 2018 by droid15
I have a C# service with framework 4, it runs an external application using process.start, but it starts on the background, i install the service using InstallUtil.exe -u Service.exe from a command prompt running as administrator here is the code: Process.Start("path\to\application.exe"); ...
13 Apr 2018 by Dave Kreskowiak
None of the above. All services run under a completely different desktop from the one you can see after you log in. Any application that the service launches will also show up on that service desktop. Services can no longer interact with the users desktop like you could do in Windows XP. For...
12 Jan 2018 by sdancer75
Using the code below to run an external exe file, when this app terminates, the parent window loses its focus. I want to disable the parent window to avoid any paint problems and re-activate when the WaitForSingleObject is terminated. Is there any solution for that ? What am i doing wrong...
12 Jan 2018 by sdancer75
void CMainFrame::OnBtnUpdateApp() { PROCESS_INFORMATION processInfo; DWORD dwExitCode; HANDLE hProcess = 0; BOOL bResult; CString strCmd; CUtils util; CString strPathAndApp; strCmd = _T(""); MONITORINFO mi = { sizeof(mi) }; ::GetWindowPlacement(GetSafeHwnd(),...
11 Jan 2018 by Member 12229842
This is my first project. I got to know some new words. What is developer checkout? What is program specification documents? How to write unit test cases?
11 Jan 2018 by Michael Haephrati
Checking out source code The term "Check out" is taken from the metaphor of a public library where one can "check out" a book. A checked out code, is locked from others to check out the same code, whilst creating conflicts. When you are done with your edits and enhancements, you return the code...
11 Jan 2018 by Michael Haephrati
You will get more control over the new process you are creating if you use CreateProcess() instead of ShellExecuteEx() and running Update.exe in the background. SECURITY_ATTRIBUTES sa; sa.nLength = sizeof(sa); sa.lpSecurityDescriptor = NULL; sa.bInheritHandle = TRUE; PROCESS_INFORMATION...
4 Oct 2017 by MrJack Mcfreder
I am new to C++ and it is just a pain in the ass to find a single working example of reading process memory. What I have tried: After hours of googling, I eventually found a glimmer of hope for this code: // ConsoleApplication4.cpp : Defines the entry point for the console application. // ...
4 Oct 2017 by User 59241
I think CPallini's comment is apposite however there are many examples to be found by googling. This: How to use ReadProcessMemory in C++?[^] leads here: Stealing Program's Memory[^] which may give you a start.
4 Oct 2017 by CPallini
Quote: I am new to C++ and it is just a pain in the ass to find a single working example of reading process memory. That's a hint your are trying to do something too difficult for your current knowledge. You should start reading the documentation: ReadProcessMemory function (Windows)[^],...
28 Aug 2017 by SebG.Net
Hi. I want to use VB.net to execute a program (*.exe file), wait till it finishes and get the return value the *.exe program returns. Now I did accomplish this using the code bellow however the error code i get the first few tries is correct but then i keep getting 0xCDCDCDCD as the error...