Auto Close Pop Up

Topics: Feature Requests
Nov 8, 2014 at 2:01 PM
An annoying feature of windows is to prompt the user when a seemingly unsupported disk type is connected.

Could VeraCrypt offer an option in the settings to disable this please ? It is preferred that this is an option and not forced.

Thank you :)

Instructions on how are here.

Code suggested ...

Loop {
WinWait, Microsoft Windows ahk_class #32770, Datenträger formatieren
Add #NoTrayIcon to the script to get rid of the tray icon.
Nov 15, 2014 at 7:00 PM
I could not find any clean solution to disable this message and the solution propose in the link is a hack that is difficult to make it work across different languages.

His idea is to wait for a dialog to be displayed that has the title "Microsoft Windows" and which contains a button with a specific label depending on the language of the machine ( it is "Format Disk" in English, "Datenträger formatieren" in German...) and then close this Window.
The first difficulty is to dynamically load the correct value of the label depending on the language of the machine. I'm not sure we can encode in VeraCrypt all possible values of this label.

The other difficulty is that we have to implement a monitoring thread in VeraCrypt that will enumerate all top-level windows on the screen (EnumWindows)in order to find if the prompt message we are targeting is displayed. This enumerating must be done periodically with a short period time and this will consume a lot of the machine resources.

Of course, there is a less resource extensive solution by using a global system hook (SetWindowsHookEx) but this will definitely make the Antivirus bells ringing and we don't want that.

As a conclusion, while this feature is very interesting, for now there is no acceptable technical solution to implement it.
Nov 16, 2014 at 12:52 PM
OK Thank you for trying :)

It would be a useful feature, if you ever find a way it would be great if you could add it. However for now there are more important things for VeraCrypt :)