I\'m writing a driver which needs to immediately pop up a dialog to notify the user of an event.
(Kind of similar to NTFS\'s \"Corrupt file\" notification, except t
I Don't think that without an application(or a service) running in the user mode you can load a driver in the memory(even if it is going to be a filter driver).
A kernel driver can not display a MessageBox. If you would like to do that then you have to provide a communication functionality through a user-land application with the kernel driver then show that MessageBox from your user-land application.
All the talk about [Zw/Nt]RaiseHardError
is irrelevant. If you disassembled MessageBox you will notice that this API gets called eventually.