Hooking of Office2007 GetOpenFileName/GetSaveFilename ...

Sep 24, 2009 at 12:36 PM



I´ve the task to insert a Button into all Office2007 OpenFile/SaveFile Dialogs... is it possible to use EasyHook for Hooking

the API and redirecting the GetOpenFileName/GetSaveFileName calls from Office Apps into own Handlers? I used

common Hooks (SetWindowsHookEx( bla, ... ), but they don´t work for the Office2007 Dialogs... only old style Dialogs get hooked...

A comparison on Classnames doesn´t work eather, because all of the Dialogs have the className #32770.

Does anybody have any experiences on that topic ... ?

Sep 25, 2009 at 7:21 AM

Office do not use the common open and save dialog.  It draws its own dialog.

You may develop some office add-in (COM) to achieve.  I saw some DMS client use this approach.

Sep 25, 2009 at 7:28 AM
Edited Sep 25, 2009 at 8:31 AM


thanks for the reply that saves me a lot of time (in not trying out ...)

By the way... which ones do you mean?

thanks a lot.



Sep 25, 2009 at 2:33 PM

Although I said some, I mean one... :)

It is the old IBM Domino.Doc desktop enabler.  It replaced the standard office open/save dialog with its own so that users can open/save directly to the DMS.

Sep 25, 2009 at 2:39 PM


I´ll take a look at it...

I appreciate your help.