Click here to Skip to main content
15,896,201 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Start background job at request Pin
Daniel Turini20-Dec-05 23:10
Daniel Turini20-Dec-05 23:10 
QuestionRe: Start background job at request Pin
GoodCall20-Dec-05 23:20
GoodCall20-Dec-05 23:20 
AnswerRe: Start background job at request Pin
Daniel Turini21-Dec-05 0:35
Daniel Turini21-Dec-05 0:35 
JokeRe: Start background job at request Pin
GoodCall21-Dec-05 1:10
GoodCall21-Dec-05 1:10 
GeneralRe: Start background job at request Pin
Daniel Turini21-Dec-05 1:12
Daniel Turini21-Dec-05 1:12 
Question1.1 and 2.0 on same iis Pin
Gibzon19-Dec-05 23:08
Gibzon19-Dec-05 23:08 
AnswerRe: 1.1 and 2.0 on same iis Pin
Gibzon20-Dec-05 21:07
Gibzon20-Dec-05 21:07 
QuestionSuspend or Pause a Process Pin
tboydva17-Dec-05 5:15
tboydva17-Dec-05 5:15 
I am trying to develop a class or function which takes a process ID, process Name, or a process object (doesn't really matter) and pauses or suspends the process. I know this is possible because my firewall (NVidia) can stop a program's exucution in its tracks, then resume after you allow traffic on the port. Additionally, the ProcessExplorer utility (http://www.sysinternals.com/Utilities/ProcessExplorer.html) provides this functionality.

My application is to pause a legacy instrumentation program which can crash very predictably if certain "conditions" aren't just so... If I could pause or suspend it while doing some housecleaning, I could keep it running fine. I thought this would be a very simple project!!!

At this point, I can enumerate the running processes, gather their IDs and any other relevant info. I tried to enumerate the threads involved in the process, then use the thread class to .sleep or .suspend. However, the type processthread cannot be converted to a system.threading.thread! I have found a C++ project (which I can only partially decipher) here: http://www.codeguru.com/forum/archive/index.php/t-210917.html, which appears to "encapsulate" the process into a debug event for pausing. Perhaps this a way to go, but I dont' know exactly how to use it? I can compile it, run it, and it works, but after the process is resumed, the console app scales to using 100% of the processor. Perhaps if I could make it an assembly I can pass it as a function... Perhaps there are some Windows API functions that would work?

Any help would be appreciated!

Thanks,
TOm

AnswerRe: Suspend or Pause a Process Pin
Dave Kreskowiak20-Dec-05 5:04
mveDave Kreskowiak20-Dec-05 5:04 
GeneralRe: Suspend or Pause a Process Pin
tboydva21-Dec-05 13:55
tboydva21-Dec-05 13:55 
QuestionRegistry Permissions Pin
Yevgeny Efter16-Dec-05 12:15
Yevgeny Efter16-Dec-05 12:15 
AnswerRe: Registry Permissions Pin
Colin Angus Mackay16-Dec-05 12:44
Colin Angus Mackay16-Dec-05 12:44 
GeneralRe: Registry Permissions Pin
Yevgeny Efter17-Dec-05 2:55
Yevgeny Efter17-Dec-05 2:55 
QuestionNewbie Master Detail Pin
Elvis_Pretzelator16-Dec-05 6:58
Elvis_Pretzelator16-Dec-05 6:58 
QuestionWinForm Control in ASP, Framework 2.0 Pin
d_j_w16-Dec-05 5:00
d_j_w16-Dec-05 5:00 
Questionproperty info error Pin
Savas Cilve16-Dec-05 4:09
Savas Cilve16-Dec-05 4:09 
AnswerRe: property info error Pin
Robert Rohde22-Dec-05 10:20
Robert Rohde22-Dec-05 10:20 
QuestionContextMenuStrip and DefaultItem Pin
cual15-Dec-05 7:22
cual15-Dec-05 7:22 
Questionopen forms of an external application? Pin
LordZoster14-Dec-05 11:24
LordZoster14-Dec-05 11:24 
AnswerRe: open forms of an external application? Pin
Dave Kreskowiak14-Dec-05 12:26
mveDave Kreskowiak14-Dec-05 12:26 
GeneralRe: open forms of an external application? Pin
LordZoster14-Dec-05 22:34
LordZoster14-Dec-05 22:34 
AnswerRe: open forms of an external application? Pin
Ingo14-Dec-05 21:36
Ingo14-Dec-05 21:36 
QuestionAssociate File Extension in WinCE 5.0 - CF 1.0 SP2 C# Pin
Marco [Stinger]14-Dec-05 4:55
Marco [Stinger]14-Dec-05 4:55 
AnswerRe: Associate File Extension in WinCE 5.0 - CF 1.0 SP2 C# Pin
Ingo14-Dec-05 21:50
Ingo14-Dec-05 21:50 
QuestionCF 1.0 SP3 - WinCE - FullScreen and Controls.Clear() - Add() Pin
Marco [Stinger]14-Dec-05 2:09
Marco [Stinger]14-Dec-05 2:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.