|
|
|
re: Question about 'Customize Common Dialogs'
Sunday, April 10, 2005 at 7:16 pm Windows XP Annoyances Discussion Forum
Posted by Falcon
(13489 messages posted)
OK, sounds familiar. I play around with those hooks quite frequently. One current
project involves a CBT hook to get my DLL loaded, then I patched the IAT of the GetOpenFilename
and GetSaveFilename functions to point to me instead. Then, I modified the hook function
part of the OPENFILENAME structure. Sort of another way in, so to speak. Unfortunately,
it has its problems, but your method won't work for what I want to do.
(My goal was to be able to add a button to the toolbar which places a named pipe
in the application's buffer. Then, the application will usually assume this pipe
is a regular file and writes its data directly through to my app. ;)
The problem with this approach is that I am unable to hook calls to this function
that reside in shared DLL's, such as MFC. Now, if only I could write a stack unwinder
and a bit of assembler, I could return to the correct place without needing to patch
the IAT... Might be risky, though.

|
All messages in this thread [show all]
 |  |  |  |  |  | re: Question about 'Customize Common Dialogs' (Falcon: Sun, Apr 10, 2005, 7:16 pm) |
| |
| |
Return to the Windows XP Discussion Forum
|
|
|
|