Solved

Freezing / pausing apps when u want it to ..... (or similar)

Posted on 2002-05-02
4
123 Views
Last Modified: 2010-04-04
Hi,

i'm wondering if it's possible to make a tool that would freeze another program so like u choose the process / program and click on a button and it's freezed till u press the button again.

does it work using processes ? or what
is this even possible and is it hard to create any idea's ? examples ?
0
Comment
Question by:joyrider
  • 2
4 Comments
 
LVL 8

Expert Comment

by:Cesario
ID: 6987368
you can change the Process PriorityClass....
But freezing another Application ?????

take look in your win32 api online help

BOOL SetThreadPriority(

    HANDLE hThread,     // handle to the thread
    int nPriority      // thread priority level
   );

BOOL SetPriorityClass(

    HANDLE hProcess,     // handle to the process  
    DWORD dwPriorityClass      // priority class value
   );    


Cesario
0
 

Author Comment

by:joyrider
ID: 6987433
priority is not what i'm lookin for i want to completly freeze it like softice does for example but softice is a debugger i just want a program where i can freeze a program with i choose it's for mem searching (making trainers) etc
0
 
LVL 17

Accepted Solution

by:
inthe earned 100 total points
ID: 6988013
hi,
debuggers use WaitForDebugEvent ,ContinueDebugEvent to do it.you be able to get what you need (win9* only not nt4 etc)CreateToolHelp32Snapshot then walk the list,
note the word snapshot is cause ms knew things change ie threads,memory etc so they created it to take a photo of the system as it is now.(read matt pietreks book for excellent info on this stuff)  

actually ReadProcessMemory may be better for you ..

this example is for a game cheating type thing
( im guessing thats what a "trailer" is:

http://groups.google.com/groups?selm=3ac2fc9e_2%40dnews&output=gplain
0
 

Author Comment

by:joyrider
ID: 6988481
i already knew the readprocess stuff etc but the link seems to be quite intresting so i'll accept it :)

0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now