It is possible to hook Ctrl+Alt+Del combination by replacing the definition to Msgina.DLL in the registry by your own dll that is handling all the keyboard messages and forwarding all allowed key combinations to the original msgina.dll.
The easiest way to prevent unauthorized process kills is to use the VC++ resource editor, open msgina.dll and by making all buttons in the task manager dialog box disabled except Cancel. This is not a very beautiful method, but it works...
i saw an article on CP last days..search for it..it was on hooking ctrl + alt + del.. type something..
hope this works..
If I were to go a step further and prevent the Task Manager from even being shown, would I be able to write my own GINA.DLL (instead of changing microsoft's and just disabling buttons), and if so how easy is this to do and where would I start to look to do it?
Thanks for that. I'd figured out the screensaver bits but was unsure if that was the accepted way of doing it.
Basically it sounds like such a muck-about to do all this that i'm probably going to try and get my boss to persuade the clients that they don't realy want this feature after all. If there were one way for all versions of Windows, then perhaps it would work, but I would also need to disable the Windows Key, Alt+Tab, Alt+Esc and Ctrl+Tab to actually prevent anyone using the app from accessing the desktop. All in all I'd never implement something like this through choice
I want to change the back ground color of whole of my application developed in VC++... Suppose I want to change the background to Green...
Every thing in green.... Toolbar, menu , status bar, title bar etc ....
How I can change the property sheet background color... Also the property Tab and button like OK, Cancel and Apply should be changed...
Also How the title bar background color changed..
Thanks In advance
I was seraching the codeproject site and came across your post. I am sorry that no one has seemed to reply to your post. I was wondering if you managed to change the look of any of your property sheet buttons? I am trying to do the same...I want to simply change the color of the OK and other buttons.
I tried to open a PE file with a program called PEExplorer .. Opend the header & discoverd that all the items in the header is correct..
but i found something strange i igot "the address of entry point" field from the header but when i checked that address i found it's so different from the contents that the PEExplorer program shows...
i found that the "image base" field is added some times 2 the address of the entry point field...
for example the address of entry point is: 0000E67Ch
& the image base is: 01000000h
but when i run the disassembler view of the PEExplorer i find that the address of the entry point is 0100E67Ch & this address can't be located coz the file size is smaller than it & the contents that the disassembler show in this location 0100E67Ch i can find it in another different place in my file
plz does any one knows how is this operation handled & how can i reach 2 the real entry point of an exe file...
my email is
thanx alot ppl
The base is the recommeded address that the module should load at in memory at runtime.
The entry point of the module cannot be 0000E67Ch when it is loaded, because anything under the 4MB is reserved for the system. That is why the base address is added to the entry point, or the system will pick a new base address offset if that one is already taken.
The point is still, that the entry point of your function will be 0000E67Ch Bytes from the beginning of the base offset address.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
I have a custom window control derived from CTreeCtrl.I want to convert that into ActiveX component.
So any idea how to proceed.
I have used Wizard to create activex contol but there is no provision to include our custom control ......So any help is appreciated
Too much of good is bad,mix some evil in it
Thanxs for the help ....
Can u be more elaborate in the explaination...
I converted my control to .ogx file......
Then what should i do....
I created the MFC activex project and then i went to Add to project/Insert activex component.....
Is it correct...Do have any materials to refer.....
Too much of good is bad,mix some evil in it
I work for a small programming house, that has just doubled in size( now FOUR Programmers!!! ), we now need to implement some sort of source control and bug tracking programs. I have had a quick look at cvs for source control, but i haven't been able to find and decent bug traking programs. I'm just wondering what other people out there are using, and if any one has had major issues implementing or using cvs, or is there is something else that is a bit better.
In the near future I'm going to have to extract some text from PDF documents, as well as search the text in them. Can anyone recommend a good library? It would be good if it was cross-platform and didn't have redistribution costs.
There's some good stuff on SourceForge. Do you need to work with PDF's that are compressed ? I don't think it would be too hard to write the code to decompress them anyhow, and then it's just cleartext, easy to search for.
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
It'd probably be fairly easy to make a bot that'd post random stupid VB questions, and nobody would probably ever notice - benjymous - 21-Jan-2003
I know I can use NULL as the first parameter but just curious, given all source code of a project, how do you know the "class name" of a CWnd? Also, is there any way to change the "class name"? Thank you.
That depends. For instance, controls usually have very specific window classes, for instance buttons are "BUTTON", so if you want to find all the edit controls with a specific bit of text, you use FindWindow("EDIT", "TEXT").
For more generic windows, and MFC, you can use Spy++ to find the window class if you like.
Where are we going? And why am I in this handbasket?
I think it's important to register your own window class before assigning it's name to lpszclass. Thus first call RegisterClassEx, providing a WNDCLASSEX structure containing your class name. The most values of WNDCLASS struct can be filled by calling GetClassInfo.
// Start with NULL defaults.
memset(&wndcls, 0, sizeof(WNDCLASS));
// Retrieve WNDCLASS structure for default window class.
// Give new class a unique name.
wndcls.lpszClassName = "MyNewClass";
// Register new class and return result from ::RegisterClass().
After that steps your class name is made known by the system and can be used.
In my application, i have a sub frame window derived from CMDIFrameWnd that is NOT the main frame of the application. I need to be able to add Child frames from a specific document template to this frame. Any ideas on how i might go about doing that?
by default using a tree control, if i don't declare on_wm_keydown() in my message map, the treectrl uses its own predefinied actions for the keydown operatiosn.. is it possible to use the predefined keydown operation with the ones that i implemented myself at the same time? ie, if keydown message is vk_up and vk_down, i want to use the default treectrl operation(moving the focus of a node in the tree up and down). if keydown message is vk_insert, i want to use my own function.. is it possible? thanx in advance..