Disable Ctrl+Z shortcut or clear undo history in Windows Explorer?

I wrote a program in C to disable both the Undo and Redo shortcuts, since both can lead to accidents.

The program can be found at http://purl.org/net/dweundo .

It has an installer which, if you want, adds a shortcut in the Start Menu 'Startup' folder, so the program starts when you log on.


I think you can have Autohotkey override an existing shortcut.

^z::
return

Will make Ctrl + z do nothing

Edit: This will apply everywhere. To apply in explorer only, try this:

#IfWinActive ahk_class ExploreWClass
^z::
#IfWinActive ahk_class CabinetWClass
^z::
return
#IfWinActive