[Bug 37804] New: ExitWindowsEx do not work
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(a)winehq.org Reporter: den.aria(a)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); -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37804 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |focht(a)gmx.net Version|unspecified |1.7.33 Resolution|--- |INVALID --- Comment #1 from Anastasius Focht <focht(a)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 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37804 --- Comment #2 from den123 <den.aria(a)gmail.com> --- I hope may be you can do it automatically? because Wine can be run in different OS -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37804 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED Resolution|INVALID |WONTFIX --- Comment #3 from Austin English <austinenglish(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37804 den123 <den.aria(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|WONTFIX |INVALID --- Comment #4 from den123 <den.aria(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37804 Sebastian Lackner <sebastian(a)fds-team.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian(a)fds-team.de --- Comment #5 from Sebastian Lackner <sebastian(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37804 --- Comment #6 from den123 <den.aria(a)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 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37804 --- Comment #7 from Nikolay Sivov <bunglehead(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org