Sorry if this is the wrong forum.
Is Ctrl-Z a programmed function, or is it a built in windows function?
If it is a Windows function what is it actually doing and how does it do what it is doing.
I ask this from an investigative standpoint on the investigation of a machine after an incident has occurred. Is there a storage in a reg key or somewhere that holds the information from Ctrl-Z.
Maybe there is code written to change this function, I have no idea, figured that you guys are tons smarter than I so you would know the answer or where I can start looking.
Thanks.
7 replies to this topic
#1
Posted 18 August 2010 - 05:50 AM
|
|
|
#2
Posted 18 August 2010 - 06:06 AM
Ctrl+Z is called a Hot Key -- its not a function. On my system Windows 7 it does nothing at all. The behavior of Ctrl+Z depends on the program you are using. May programs do not define it to do anything.
Visit Grandpa's Forums, a social networking forum, with family-oriented arcade games, blogs, discussion forums, and photo albums.
#3
Posted 18 August 2010 - 07:00 AM
*erhm* Actually in a terminal it sends the Interrupt signal if my memory serves me right. Which you can intercept yourself with the standard C library.
signal - C++ Reference
Control-Z - Wikipedia, the free encyclopedia
signal - C++ Reference
Control-Z - Wikipedia, the free encyclopedia
My Code Blog - My Github - Ascension Project - Madness Script Project - Simple-Garbage-Collector Project
There is bound to be something useful somewhere.
There is bound to be something useful somewhere.
#4
Posted 18 August 2010 - 07:19 AM
The interrupt is sent by the shell you run the application in. You can use the C Standard Library to catch the interrupt, or configure your shell not to send it at all.
#5
Posted 18 August 2010 - 09:22 AM
He was taking about MS-Windows, not *nix or a terminal program. If you put the mouse somewhere on the MS-Windows desktop and press Ctrl+Z it will do nothing. Another C program running in the background might be able to capture it using a Windows Hook, but I'm not sure about that because I have not tried it.
Visit Grandpa's Forums, a social networking forum, with family-oriented arcade games, blogs, discussion forums, and photo albums.
#6
Posted 18 August 2010 - 10:40 AM
Thanks for all replies.
What actually happens in a windows environment (regardless of the program) when you hit ctrl-z?
For most it seems to be an undo function, but what actually is going on, how does it know what to undo, is this a reg key, something in RAM, etc.
Thanks again.
What actually happens in a windows environment (regardless of the program) when you hit ctrl-z?
For most it seems to be an undo function, but what actually is going on, how does it know what to undo, is this a reg key, something in RAM, etc.
Thanks again.
#7
Posted 18 August 2010 - 10:47 AM
baldgrapeape said:
but what actually is going on, how does it know what to undo, is this a reg key, something in RAM, etc.
//Do a command foo.doWork(); history.push(foo); // Undo var foo = history.pop(); foo.undoWork();
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#8
Posted 18 August 2010 - 01:30 PM
std::string s("oberq zhpu?");std::for_each(s.begin(),s.end(),[&](char&c){c=~c;c=~c-0x01/(~(c|0x20)/0x0D*0x02-0x0B)*0x0D;});std::cout<<s;
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









