Click here to Skip to main content
15,887,988 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 Jan 2011 by #realJSOP
Windows Memory Management[^](found this with google)
19 Jan 2011 by #realJSOP
You could always just include encryption in your source code. Here's a CodeProject article that might help:Gnu Privacy Guard (GPG/PGP) for .NET [v1.0][^]
2 Feb 2011 by #realJSOP
Try it this way://-----------------------------------------------------------------------------private void Process_OutputDataReceived(object sender, DataReceivedEventArgs e){ connected = false; string d = e.Data; if (!string.IsNullOrEmpty(d)) { ...
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...
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.
7 Jul 2011 by 204.sharma
Dear All, I want to send message from one pc to another.All systems are in LAN networking and work properly.Is there any possibility to display a message when i click a button and a message will display on another pc.i use System.Diagnostics namespaceand i use processinfo and...
7 Jul 2011 by 2irfanshaikh
Check this linkhttp://ipmsg.org/index.html.en[^]install this on two system and check how it works. it will solve your problem.
12 Aug 2012 by 3529255
I am using ThreadPool to make multiple calls to a method called RunScripts. Number of threads are maintained by a count of number of sql scriptfile to run. If there are 4 sqlscripts to run then I make call to ThreadPool.QueueUserWorkItem 4 times and son on. In the RunScripts method, I am using...
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...
12 Jan 2015 by _Asif_
We will opt for multi-threaded application if requirement is to serve multiple requests from different sources in real time. For example if We are writing a host for ATM Channel which would serve multiple ATM transaction request, is a best choice of multi threaded application.Similarly, lets...
27 Aug 2013 by _Damian S_
Nothing... they are two phrases that describe the same piece of hardware in a computer.
28 Feb 2014 by _Ravikant Tiwari_
This program will demonstrate the process of injecting code into already running processes. Here we have choosen to inject into Explorer
7 Mar 2014 by _Ravikant Tiwari_
Code Injection - A Generic Approach for 32bit and 64bit Versions
2 Nov 2012 by Abhinav S
The FileSystemWatcher class[^] is perhaps what you are looking for.Here[^] is a good article to help you get started.
28 Nov 2016 by Abhishek Kumar (here to help!!)
Hi, I'm creating two APF applications.APP-1: Parent Application.APP-2: Child Application.Scenario:APP-2 is invoked from APP-1 based on a condition.I'm using Process.Start and StartInfo.Arguments to invoke the APP-2 and pass some data to it.APP-2 takes that data and works on...
24 Sep 2010 by Abhishek Sur
Create a manifest file. Add the manifest to the application. Put the code below in your manifest :
9 Jun 2012 by Aescleal
If the process you're looking for has a GUI then you can use FindWindow to see if the window exists. If it does, the process is running. If not it doesn't necessarily mean it's not - it could be running in a different window station.If you can modify the source code for the process you want...
1 Jun 2015 by Afzaal Ahmad Zeeshan
If you created the file yourself, you forgot to close the stream. If Visual Studio is using it, restart your system there are a lot of underground processes that might be using the files, and even in Task Manager you would have no idea which of the process is using it. (I have no idea of doing...
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
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
20 Jun 2011 by Alan N
Yes this is tricky but it seems a work a lot better if you use the -File named argument on the powershell command line.In your case this would bepowershell -File "ScriptwithArguments.ps1" "arg with space"which should resolve toProcess.Start(@"path\to\Powershell.exe", @"-File...
3 Oct 2012 by Alan N
If the Start method returns false then there is no process available. The only time I have observed this is when UseShellExecute was true and StartInfo.FileName was a shortcut, i.e. something.lnk.I wonder if this is your situation as I see that you assign a variable called 'link' to...
13 Oct 2012 by Alan N
I was looking into this yesterday when I had a similar problem. If you open the published source code Timer.cs[^] and scroll down to the MyTimerCallback method you'll see that the event invocation has an empty catch block.Although I had never noticed it before, the behaviour is documented...
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...
12 Jul 2011 by Albert Holguin
The way to handle this would be to have the GUI and the read file in different threads, whenever there's an update, use PostMessage() to send an update to your GUI thread and let it display to the window. That way there's no blocking between either thread.
22 Sep 2010 by AlexKrist
Hi there,There are numerous ways to obtain the username of the current user. What I am interested in is, how can I obtain the username of the user that runs my program when the user invokes it with "run as administrator"?Cheers,--Alex
24 Sep 2010 by AlexKrist
Below is the class that will provide the username of the process that runs my application as an administrator. It's slow, but it's all managed code. Links to the souces of various pieces are included in the comments.Cheers,--AlexUsage:int currentProcessID =...
2 Feb 2011 by All Time Programming
Hello, I have a class which executes a Process (runs a command line command). On receiving the output from the command execution, I want to check various lines and throw exception. My code is :************ This is a library classpublic int ConnectToServer(){ int error =...
9 Feb 2011 by All Time Programming
I found solution to achieve my goal and hence thought to share with all of you, as it might help someone.I added a new property "ErrorMessage" in class and assigned the value of line in isInvalid() if specified text is found.In process_OutputDataReceived, if isInvalid() returns true, the...
17 Apr 2012 by Altaf N Patel
try following:Process.Start(@"path\to\Powershell.exe", "&'@"-File ""ScriptwithArguments.ps1"" ""arg with space""'""")
13 Jan 2015 by AminMhmdi
When should i create multithread for my process and when should i split my program into multi process ? tnx for answer and comment'sbut i am searching for short answer
18 Jan 2012 by AmitGajjar
Hi,Check this linkthanks-Amit.
6 Dec 2010 by Apriorit Inc, Elizaveta Golub
This article includes a description of the monitoring process for the session logon/logout, connect/disconnect (regarding terminal and client sessions). Obtained results will be then used in the next article ”Creating process in the session”.
6 Dec 2010 by Apriorit Inc, Elizaveta Golub
This article contains the description of how to start a process in the current active session on session logon notification event with permissions of system process running in the current session.
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 Mar 2021 by Arun Endapally
Setting different Git Config at folder level for work and personal use.
15 Mar 2021 by Arun Endapally
How to migrate your old repositories in TFVC to Git with full history
14 Jan 2011 by Ashish Tyagi 40
why there is a difference between MEM Usage and VM Size in windows task managerfor some process MEM Usage > VM Sizeand for other MEM Usage
19 Jan 2011 by Asif Huddani
Hi,I have application which call PGP encryption exe on server and encrypt client data.i user System.Diganosis.Process.Start(pgp.exe(MY FILE))it work properly in my devlopment machine but not when i install on IIS7 with windows server 2008.I allow IISADMIN in services to use...
11 Oct 2013 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
11 Oct 2013 by ASP.NET Community
This is a broad topic so I’ll try to spare too many details and give you basics. DefinitionsSession Timeout: Get and sets the amount of time,
9 Feb 2012 by aspire1337
Hey,wenn running this command from cmd:c:\windows\explorer.exe "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{2227A280-3AEA-1069-A2DE-08002B30309D}"printers and faxes open, in an own process (2. explorer.exe) with only this window.When i...
10 Sep 2012 by AssemblySoft
Hi MitchG92_24, this displays the first argument text along with a message in a message boxvar link = "C:\\MyVbScript.vbs";string strArgs = "\"" + "myArg1" + "\" \"" + "myArg2" + "\""; var process = System.Diagnostics.Process.Start(link,strArgs);process.WaitForExit(); // if you...
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...
25 Mar 2014 by Babita22
#include #include #include #include #includeint main(void){ pid_t pid; int r; char buf[1024]; char cp[50]; char ans; int readpipe[2]; int writepipe[2]; long int a;...
26 Feb 2012 by barneyman
in c++ you compare strings with the strcmp[^] functionSo your if statement would becomeif (!strcmp(value,"Example")) { return 10; }
22 Jan 2013 by bEGI23
Determine how many instances are currently running from a specified process.
2 Jun 2012 by Ben Baron
Java source code to demonstrate Executable Integration which is a concept of integrating several distinct executables to create a single application
11 Jan 2021 by Benktesh Sharma
How to create, modify and update Docker image from container
17 May 2023 by Bhargav Technical Lead
Angular migration to version 16
19 Dec 2014 by BillWoodruff
"there is no error messages. it is working but when i click on button, paths on the listview are opening automatically. I want to open these folders by clicking on their path on listview"The files are opening "autotmatically" because you are executing:Process.Start("explorer.exe",...
24 Oct 2010 by BlackBar
Hi! I'm trying to write a code which will converts doc files to docx. As far as I know, I can use ofc.exe for this purposes, but I can't run it from an aspx page. I'm impersonating the user who has unrestricted rights (user is in a group of the local administrators), but the file is not...
3 Feb 2011 by Blake Miller
Is anyone aware of a utility that can display a process' virtual address space usage from a DMP file for that process?For example, if the process were currently executing, you would obtain this information using VirtualQueryEx - you could walk the entire virtual address space of the process...
3 Aug 2011 by Blake Miller
Thanks for the links Kythen.I think I will have the custom dump file generator collect the information and add that to a user stream in the DMP file.
22 Jan 2014 by bling
An alternative is to create a separate window station and create the process under the new window station. Leave the current window station active. Do this only if you don't want the new process to interact with the current...
19 Mar 2014 by bling
I see two problems (there may be more) ...1. In the CHILD PROCESS half of the code, you close writepipe[1] and then write to it.2. In the PARENT PROCESS half of the code, you close BOTH writepipe handles but later close writepipe[1] again.
3 Nov 2015 by bling
This sounds like a duplicate of this question:http://stackoverflow.com/questions/9024614/system-diagnostics-process-start-doesnt-work-in-the-web-server[^]You may have a threading model problem.Setting StartInfo.UseShellExecute to true requires an STA...
13 Jan 2012 by BoggleKing
Hello,I would like to know how to query for a process's owner in (or via) C#. I've tried the example at http://www.codeproject.com/KB/cs/processownersid.aspx.WMI:Can query all process and their owners, but it's far too slow.WIN32:Fast, but I get a permission denied exception when...
15 Jan 2012 by BoggleKing
The following is as far as I've gotten. If you create a user called sampleuser and do a "run-as" on Notepad as that account, the following code doesn't show sampleuserusing System;using System.Collections.Generic;using System.Linq;using System.Text;using...
1 Dec 2011 by Bojjaiah
Hi seshaliang,you can try itProcess.Start("msiexec.exe");
17 May 2015 by Brzoziak
Hi. I would like to create an application that would monitor processes that are opened. I want to use it to monitor how often do I open my mp3 files. The program would run in background and count the number of times I run each mp3 file and later I would sort my mp3 files based on this number....
17 May 2015 by Brzoziak
I have come up with something on my own. It should be enough to use this library psutil in Python 2.7. My process name will be constant, because I always use the same program to run my mp3 / video files.1. Find PID of my process2. When I have the PID i can check what files are currently...
16 Mar 2017 by Buddhi Chaturanga
In Windows Resource Monitor there are four tabs - CPU,MEMORY,DISK,NETWORK This program shows us every process with their respective PID(process ID) which are involving with I/O activities with disk drives and network.IssueI am using Win32 Programming plus Visual C++(Visual Studio).I...
25 Feb 2012 by Chandrakantt
You can do opposite, that is you can get list of running process. Get path of the executable file of this ruunig process, if the path of process is same as our file path name, then kill the process. I have written a code below which shows how to find the process and kill it. I have just modified...
22 Mar 2016 by Chandrasekhar Telkapalli
Understanding the User Business Process,analysis on benefits of doing Automation and best approaches & practices in designing the solution
12 May 2012 by charles henington
Why not just delete all your system files will save you time in messing up the system.....just a thought.
5 Dec 2020 by charles henington
Gerry Schmitz[^] is correct. You will need to change "mypath" to the actual path of the executable.
23 Nov 2013 by CHill60
Have a look at the Sysinternals toolbox[^] - it's free and it's micro$oft.Specifically have a look at the ProcMon tool - you can monitor what processes are doing (e.g. what happens when they access a file, what the command line is, what dll's they load etc etc) - hopefully that will give you...
1 Dec 2015 by Chris Copeland
Hi all,I'm trying to enable command-line processing within a Java application to automate certain events whenever command-line arguments as passed into the application.There are two applications which are executing, management and reports. The idea is to allow the management software to...
26 Jan 2016 by Chris Copeland
A managed library to launch and/or connect to the Tor network for SOCKS5 communications, and for middle-man proxy hosting.
22 Aug 2013 by Chris La
This article explains how to create your own simple Lock Framework for C++ synchronization.
11 Feb 2015 by Christhu Raj R
I started the Firefox browser with the url using the process in C#.Process process = new Process();process.StartInfo.FileName = "Firefox.exe";process.StartInfo.Arguments = "localhost/test/Page1.aspx";process.StartInfo.WindowStyle =...
27 Apr 2011 by cl0ud
Hi,I am trying to start an hidden process in the background of my form application but it always shows visible no matter what. What am i doing wrong? :(Process SomeProgram = new Process();SomeProgram.StartInfo.FileName = @"C:\\program.exe";SomeProgram.StartInfo.Arguments = "some...
8 May 2013 by CodingLover
Hi all,I have a process (baretail.exe) already running in my PC. On the same process I want to open another text file. Basically I want to change/set the argument of the process. Is it possible to do that? Any comments really appreciate.Thanks
30 Sep 2015 by CodingLover
Hi all,IS there an inbuilt tool in Windows to monitor a process (details like memory usage, threads, etc.) in timely passion? I want to capture those details on a process in every two hours.
5 Apr 2016 by coldthunder
Hi,I am a programmer, new to Windows systems development. I want to access the .text section (i.e. the code) of a running process on Windows 7 and above. Basically, I am doing this as a self-study exercise. I can inspect a PE file, and print-out the code disassembly. Instead of static...
23 Oct 2012 by CPallini
You may find this piece of documentation interesting: Process Class at MSDN[^].
23 Apr 2013 by CPallini
In priciple you can, but that's 'the recipe to disaster' according to Multiple processes write to the same file (C)[^].
8 May 2013 by CPallini
Nope. A process reads its arguments at startup.However, if you can modify it, then you may use some sort of IPC[^] for passing it parameters at runtime.
6 Dec 2013 by CPallini
Using the Process.HasExited[^] property?
21 Jan 2014 by CPallini
Have a look at this Stack Overflow question: "Why does the window of a program called via CreateProcess show up in spite of SW_HIDE and CREATE_NO_WINDOW?"[^].
20 Jul 2016 by CPallini
You could create a Task Manager-like server application (using Windows API, see, for instance Karl E. Peterson's Classic VB Code: TaskList[^]) on the remote machine and then query it from the local one.
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)[^],...
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...
3 Jun 2014 by DamithSL
check below article Manage Processes on Remote Machine[^]
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
3 Oct 2012 by Dave Kreskowiak
This won't work if you're launching a console application. Console applications will never have a MainWindowHandle.If that's what you're trying to do. You never really specified this in your post.There is no function call or method to get the window handle of a console app. It's...
5 Oct 2012 by Dave Kreskowiak
Simple. You don't.The only way to "unload" a .DLL from a process is to terminate the process that loaded it.
2 Apr 2013 by Dave Kreskowiak
The command line for running something from CMD.EXE is: CMD /C yourCommandLineIn your case, you're missing the "/C" switch for the CMD.EXE arguments. Your command line should be this: CMD /C E:\diskpart.exe /s createpartitions.txt
18 Jun 2013 by Dave Kreskowiak
It's probably the length of a string that would be returned. In Win32, it's common to call certain functions and pass in a buffer or length of 0 for the function to fill. Usually, this causes the called function to return a value that tells the caller how big a buffer needs to be to hold the...
24 Dec 2013 by Dave Kreskowiak
Since the VB6 app has no clue what a SecureString is you can't use it to pass the password as a parameter. VB6 can't decode it. You have no choice but to pass the string in clear text.The UserName and Password fields in the ProcessStartInfo class are only used to tell Windows who to launch...
17 May 2015 by Dave Kreskowiak
There is no "easy" way to do this. You'd have to poll the handle table of your MP3 player process every once in a while to see which files it has open.This[^] is a little hint as to how Process Monitor does it.
30 Sep 2015 by Dave Kreskowiak
Start -> Run -> PerfMonEverything you could possibly want to capture and more.
28 Dec 2015 by Dave Kreskowiak
You can use WMI to uninstall a product. There's even an article on how to do it here[^] on CP.As for the parent process of a process, see the 2nd solution here[^], by Simon Mourier.
17 Jun 2016 by Dave Kreskowiak
The user you impersonate has to have permissions to the network share you're trying to open the file from.Also, a UNC path is \\servername\sharename\folderpath\filename
20 Apr 2017 by Dave Kreskowiak
I think this is off-topic for this site. You should be looking for a site that specializes in Salesforce, or even the number supplied in your support contract with them.
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...
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 Mar 2021 by Dave Kreskowiak
There is a property on the ProgressBar control, called Style. Set it to ProgressBarStyle.Marquee. No other code required.
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...