https://bugs.winehq.org/show_bug.cgi?id=37804
Bug ID: 37804 Summary: ExitWindowsEx do not work Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 Assignee: wine-bugs@winehq.org Reporter: den.aria@gmail.com Distribution: ---
function ExitWindowsEx do not restart or shutdown dwFlags := EWX_FORCE or EWX_FORCEIFHUNG; case AFlag of 0: dwFlags := dwFlags or EWX_REBOOT; 1: dwFlags := dwFlags or EWX_POWEROFF; 2: dwFlags := dwFlags or EWX_LOGOFF; end; ExitWindowsEx(dwFlags, 0);
https://bugs.winehq.org/show_bug.cgi?id=37804
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |focht@gmx.net Version|unspecified |1.7.33 Resolution|--- |INVALID
--- Comment #1 from Anastasius Focht focht@gmx.net --- Hello,
I think you have a misconception about the scope/capabilities of Wine. Hint: It's not an operating system.
The principles/concepts of Linux (Unix) dictate why the capability to directly shut down a Linux host should never be built into Wine by design.
The actual "shutdown/reboot" of desktop sessions is carried out by 'wineboot' program, respectively '--end-session', '--restart' and '--shutdown' parameters passed to it.
Of course there are many ways to achieve a "real" shutdown of Linux host. For example executing 'dbus-send' with appropriate parameters (Wine allows execution of native Linux apps).
Regards
https://bugs.winehq.org/show_bug.cgi?id=37804
--- Comment #2 from den123 den.aria@gmail.com --- I hope may be you can do it automatically? because Wine can be run in different OS
https://bugs.winehq.org/show_bug.cgi?id=37804
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED Resolution|INVALID |WONTFIX
--- Comment #3 from Austin English austinenglish@gmail.com --- (In reply to den123 from comment #2)
I hope may be you can do it automatically? because Wine can be run in different OS
No, this is a wontfix.
https://bugs.winehq.org/show_bug.cgi?id=37804
den123 den.aria@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|WONTFIX |INVALID
--- Comment #4 from den123 den.aria@gmail.com ---
(In reply to Austin English from comment #3)
(In reply to den123 from comment #2)
I hope may be you can do it automatically? because Wine can be run in different OS
No, this is a wontfix.
I just want run my app on the linux with fully compatible.
https://bugs.winehq.org/show_bug.cgi?id=37804
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de
--- Comment #5 from Sebastian Lackner sebastian@fds-team.de --- (In reply to den123 from comment #4)
(In reply to Austin English from comment #3)
(In reply to den123 from comment #2)
I hope may be you can do it automatically? because Wine can be run in different OS
No, this is a wontfix.
I just want run my app on the linux with fully compatible.
If this is your own app, and it only has to work on your local machine - you are of course able to "implement" this feature yourself, for example by calling native linux commands. Noone prevents you from doing that.
As Anastatius already tried to explain, Wine is like a "virtual machine" environment which should leave the host system as unaffected as possible. Shutting down or rebooting a virtual environment _should never_ do the same for the host system. Please note that the function is already implemented, but it only shuts down / reboots the virtual environment, which is exactly what it should do.
https://bugs.winehq.org/show_bug.cgi?id=37804
--- Comment #6 from den123 den.aria@gmail.com --- ok. I understand.
PS But agree with me, if software call ExitWindowsEx it's want to restart/shutdown the computer but not the virtual machine.
Quote Wine (originally an acronym for "Wine Is Not an Emulator") is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, Mac OSX, & BSD. Instead of simulating internal Windows logic like a virtual machine or emulator, Wine translates Windows API calls into POSIX calls on-the-fly
https://bugs.winehq.org/show_bug.cgi?id=37804
--- Comment #7 from Nikolay Sivov bunglehead@gmail.com --- (In reply to den123 from comment #6)
ok. I understand.
PS But agree with me, if software call ExitWindowsEx it's want to restart/shutdown the computer but not the virtual machine.
Every time you cold start application with Wine you can think about it as a computer powerup/boot from application point of view. So to "reboot" just terminate an application and start it again.
If you want this for your own software then you have to implement it on your own, Wine shouldn't be able to shutdown a machine.
Quote Wine (originally an acronym for "Wine Is Not an Emulator") is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, Mac OSX, & BSD. Instead of simulating internal Windows logic like a virtual machine or emulator, Wine translates Windows API calls into POSIX calls on-the-fly
Not sure if it's supposed to prove anything.