Dave,
Thank you for the response.
I tried it today but it did not work.
I made the changes, both, to the registry. BTW, what does the "500" signify? Seconds? Milliseconds?
After making the changes I restarted the PC (did NOT shutdown).
When Windows came back up I opened Notepad, wrote something and left it open.
Clicked on Start/Power/Shutdown.
Windows started the shutdown process and told me that Notepad was still open and required attention.
60 seconds after the above notification Windows went into sleep mode, did NOT shut down. Windows was still running and I was able to go back into Windows.
When I went back into Windows Notepad was displaying the following message.
"You cannot shut down or log off Windows because the Save As dialog in Notepad in open. Switch to Notepad, close this dialog box, and then try shutting down or logging off Windows again"