The information in this article applies to:
SYMPTOMSThe 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: 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(). Instead, use the sample code
in the article listed below.
Q168690 HOWTO: Programmatically Force a Log off on Windows 95/98NOTE: 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. STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. MORE INFORMATIONSteps to Reproduce Behavior
Additional query words:
Keywords : kbAPI kbWinOS95 kbWinOS98 |
Last Reviewed: February 1, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |