M
Milan
Hi all,
I am trying to write application which will intercept ShutDown event and
then cancel that even do some backup work and then fire again shut down
event. The problem I am facing is that after capturing shutdown event
following line does not help me to cancel it completlly:
System.Diagnostics.Process.Start(@"C:\WINNT\system32\shutdown.exe", "-a");
So ShutDown seems to be canceld but my application report error code
0xC0000142 in User32.dll, and can not proceed with backup operation.
Is there any way to cancel shutdown event and that application have all
needed dlls available so that my application can do its job completlly ?
br,
Milan.
I am trying to write application which will intercept ShutDown event and
then cancel that even do some backup work and then fire again shut down
event. The problem I am facing is that after capturing shutdown event
following line does not help me to cancel it completlly:
System.Diagnostics.Process.Start(@"C:\WINNT\system32\shutdown.exe", "-a");
So ShutDown seems to be canceld but my application report error code
0xC0000142 in User32.dll, and can not proceed with backup operation.
Is there any way to cancel shutdown event and that application have all
needed dlls available so that my application can do its job completlly ?
br,
Milan.