Fendez Power Management DLL
Fendez Power Management DLL
I am sure some of you programmers here have had the need to shutdown/reboot a computer, perhaps for an installer or just for shortcuts for yourself? Using windows API functions this DLL/Library provides these functions for you. It provides the following functions:
System Hibernation
System Standby
System Reboot
System Shutdown
User Logoff
Workstation Lock
You can download it from here
Please refere to the readme for more information.
For more information please email me:
majora@fendez.com
System Hibernation
System Standby
System Reboot
System Shutdown
User Logoff
Workstation Lock
You can download it from here
Please refere to the readme for more information.
For more information please email me:
majora@fendez.com
Isnt this just a few api commands?
(api-guide)The ExitWindowsEx function either logs off, shuts down, or shuts down and restarts the system.
andThe LockWorkStation function locks the workstation's display, protecting it from unauthorized use.
The SetSuspendState function suspends the system by shutting power down. Depending on the Hibernate parameter, the system either enters a suspend (sleep) state or hibernation (S4). If the ForceFlag parameter is TRUE, the system suspends operation immediately; if it is FALSE, the system requests permission from all applications and device drivers before doing so.
In simple terms yes, howevre i noticed that SetSuspendState does not work in PB3.94 downwards, and some people may read this forum who are not purebasic users and require it for other programming languages.thefool wrote:Isnt this just a few api commands?
(api-guide)The ExitWindowsEx function either logs off, shuts down, or shuts down and restarts the system.
andThe LockWorkStation function locks the workstation's display, protecting it from unauthorized use.
The SetSuspendState function suspends the system by shutting power down. Depending on the Hibernate parameter, the system either enters a suspend (sleep) state or hibernation (S4). If the ForceFlag parameter is TRUE, the system suspends operation immediately; if it is FALSE, the system requests permission from all applications and device drivers before doing so.
I would love to do that, but i dont know any Mac or Linux API, and have no Linux or Mac machine to test it on, so i cant, but if i get one im sure i will give it a shot.thefool wrote:Ok no offence i was just wondering
(would be cool if you created a windows/linux/mac version so people would have easier to port their code..)
-
- Enthusiast
- Posts: 731
- Joined: Wed Apr 21, 2004 7:12 pm