As I started to work on this project, I have been so sure that it'll be possible...
Okay, here is the to-do list:
1. Disable Minimize, Maximize and Close Buttons in the upper right corner of the Console window.
2. Remove/Delete: Minimize, Maximize and Close from the Console's system-menu.
3. Intercept CTRL+C and CTRL-Break.
4. Handle/Intercept User Logoff and System Shutdown.
5. Disable Close from Taskbar (Window Close).
6. Launch/Terminate the Console Application from another App. (Windows Forms-App.), but the Console App. needs to be closed by TYPING 'quit' and hitting the Return-Key ;-) ...
Is this possible..?
1. successfully achieved!
2. successfully achieved!
3. partially achieved!
4. FAILED!
5. FAILED!
6. successfully achieved!
So I learned it the hard way: Console Applications (Windows) are DIFFERENT from normal Apps. (Windows).
If anyone is interested in my Code (how 1, 2, 3 and 6 were coded in C#), just drop me a Mail and I will make another Blog-Post, showing my nice WinAPI hacks...
0 comments:
Post a Comment