BUG: SetupPromptReboot() Does Not Reset Windows 95 or 98 (193362)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0, when used with:
This article was previously published under Q193362 SYMPTOMS
The SDK documentation states that SetupPromptReboot() is being supported on
Windows NT, Windows 95, and Windows 98. However, SetupPromptReboot() does
not work correctly under Windows 95 or Windows 98. Under Windows 95 or
Windows 98, a call to SetupPromptReboot() returns the following error
message:
You must quit this program before you quit Windows.
Click OK to quit the program and Windows, or click Cancel to continue
running the program and Windows.
When you click OK the application does not immediately terminate, but a
window appears with the option to End Task after a few moments. If you
choose to End Task, you reset your computer. This behavior is consistent
for version 4.0 of the Setupapi.dll, and the behavior might change with
newer versions of Setupapi.dll.
NOTE: SetupPromptReboot() works correctly under Windows NT.
RESOLUTION
If you have a Setup API application that runs under a Windows 95 or Windows
98 computer, do not use SetupPromptReboot(). NOTE: Pass the flag EWX_REBOOT rather than EWX_LOGOFF in the function ExitWindowsEx(). The function call will appear as:
ExitWindowsEx(EWX_REBOOT , 0)
This restarts the computer instead of logging off.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 7/8/2005 |
---|
Keywords: | kbAPI kbbug kbDSSTools kbpending KB193362 |
---|
|