The disk cannot be written to because it is write protected. Please remove the write protection from the volume ....
Notice: I cannot remove wire protection, so I'm looking for other solution.
protected override void OnStartup(StartupEventArgs e) { // SEM_FAILCRITICALERRORS = 0x0001 // The system does not display the critical-error-handler message box. Instead, the system sends the error to the calling process. // Best practice is that all applications call the process-wide SetErrorMode function with a parameter of SEM_FAILCRITICALERRORS at startup. This is to prevent error mode dialogs from hanging the application. SetErrorMode(0x0001); } [DllImport("Kernel32.dll", CharSet = CharSet.Auto)] private static extern uint SetErrorMode(uint uMode);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)