Page 1 of 1
Fendez Power Management DLL
Posted: Mon Apr 24, 2006 7:12 pm
by Hydrate
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
Posted: Mon Apr 24, 2006 8:07 pm
by thefool
Isnt this just a few api commands?
The ExitWindowsEx function either logs off, shuts down, or shuts down and restarts the system.
(api-guide)
The LockWorkStation function locks the workstation's display, protecting it from unauthorized use.
and
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.
Posted: Mon Apr 24, 2006 8:39 pm
by Hydrate
thefool wrote:Isnt this just a few api commands?
The ExitWindowsEx function either logs off, shuts down, or shuts down and restarts the system.
(api-guide)
The LockWorkStation function locks the workstation's display, protecting it from unauthorized use.
and
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.
Posted: Mon Apr 24, 2006 9:18 pm
by thefool
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..)
Posted: Mon Apr 24, 2006 9:27 pm
by Hydrate
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..)
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.
Posted: Mon Apr 24, 2006 9:29 pm
by thefool
Its not too hard to get a linux (you can even go for a live edition of knoppix

)
And i guess google know's the answer on how to code it.
Posted: Mon Apr 24, 2006 9:38 pm
by Hydrate
thefool wrote:Its not too hard to get a linux (you can even go for a live edition of knoppix

)
And i guess google know's the answer on how to code it.
Oh yea forgot i have knoppix, lmao, im going to have to try that.
Posted: Mon Apr 24, 2006 9:44 pm
by thefool
hehe

Posted: Tue Apr 25, 2006 7:40 am
by Killswitch
Sorry to be offtopic, but how'dya get PureBasic on Knoppix?
Posted: Tue Apr 25, 2006 10:18 am
by Hydrate
Killswitch wrote:Sorry to be offtopic, but how'dya get PureBasic on Knoppix?
This is a good question, is there not a linux version of purebasic we could use, or we could compile the linux code in windows and use virtual PC to run it on knoppix...
Posted: Tue Apr 25, 2006 11:01 am
by thefool
killswitch: vmware
Posted: Tue Apr 25, 2006 4:45 pm
by Straker