torkell: (Default)
[personal profile] torkell
Apparently, to make Alt+D, Alt+E, Alt+O and Alt+V act as local hotkeys for certain 'links', DriveImage 2002 needs to install a global hotkey hook.

Thus concludes a good half hour spent fruitlessly searching for a non-existant bit of malware.

Thanks, PowerQuest.

Date: 2007-04-12 04:50 am (UTC)
From: [identity profile] olego.livejournal.com
I actually recently stumbled on this too: RegisterHotKey is a poorly-named function, and MSDN doesn't say mention alternatives in the documentation.

The whole Accelerator business is really tricky, because you have to modify your message loop to LoadAccelerators and TranslateAccelerator before trying to DispatchMessage. There is no other way, but there really should be. It actually took me 2 tries to load accelerators properly before I got them to work. In contrast, RegisterHotKeys is a 2-line modification that just works.

I think that their WinAPI programmer should be reprimanded, but it should be understood that WinAPI is a monster. MFC is also a monster, even though it tries not to be one.

January 2026

S M T W T F S
     123
45678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 8th, 2026 07:55 am
Powered by Dreamwidth Studios