Fendez Power Management DLL

Developed or developing a new product in PureBasic? Tell the world about it.
Hydrate
Enthusiast
Enthusiast
Posts: 436
Joined: Mon May 16, 2005 9:37 pm
Contact:

Fendez Power Management DLL

Post 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
.::Image::.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post 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.
Hydrate
Enthusiast
Enthusiast
Posts: 436
Joined: Mon May 16, 2005 9:37 pm
Contact:

Post 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.
.::Image::.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post 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..)
Hydrate
Enthusiast
Enthusiast
Posts: 436
Joined: Mon May 16, 2005 9:37 pm
Contact:

Post 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.
.::Image::.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post 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.
Hydrate
Enthusiast
Enthusiast
Posts: 436
Joined: Mon May 16, 2005 9:37 pm
Contact:

Post 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.
.::Image::.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

hehe :)
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Sorry to be offtopic, but how'dya get PureBasic on Knoppix?
~I see one problem with your reasoning: the fact is thats not a chicken~
Hydrate
Enthusiast
Enthusiast
Posts: 436
Joined: Mon May 16, 2005 9:37 pm
Contact:

Post 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...
.::Image::.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

killswitch: vmware
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

Image Image
Post Reply