I use function "ExitWindowsEx(EWX_REBOOT | EWX_FORCE,0);" to reboot system,but only wine be rebooted.
How to reboot Linux System from windows Program
Re: How to reboot Linux System from windows Program
I suppose you could write a bash script that runs your app and then reboots the system, but I have to ask, why do you want your app to reboot the whole system? If this is an installer that wants to reboot Windows after finishing, rebooting Wine should be sufficient. A full system restart is normally only needed after a kernel update.