If you dont want to waste time with the interface, how about a simple .ini or .xml file where we can configure all the settings? This doesn't have to be fancy, but it does have to be effective!
The method to do it seems simple enough. Hook the WM_ENDSESSION and return 0 to cancel the shutdown, do whatever process you need to do, then call the ExitWindowsEx function. Using the uFlags parameter, you can set it to what type of shutdown/logoff you want.
Only issues I see right now is how to pull the original shutdown/logoff type from the original WM_ENDSESSION message, and a possible infinate loop causing the puter to hang. I'm sure there is a way to grab the shutdown/logoff info, I just need to do some more reading. As for the possible infinate loop, that might be a bit more tricky to overcome.
[brainstorming]
If you set the shutdown part at the end of the script and immediately close the app after you start the script then it shouldn't do it. With keeping the shutdown option in the app itself, this would require the app to send the shutdown command and then close.
[/brainstorming]
Test will have to be made to see if that would be an issue.
Now to learn how to do standard controls in C++.I grew up as a Basic programmer and have only recently gotten into Windows programming in C++. Most of my experience thus far is directed towards game programming though.
Just because I haven't posted alot doesn't mean I haven't searched and know what I am talking about!
Progress Meter [████████████] 2%
General layout design is done in my head. Just need the money to buy the stuff and start building.
If you dont want to waste time with the interface, how about a simple .ini or .xml file where we can configure all the settings? This doesn't have to be fancy, but it does have to be effective!
2002 Honda CR-V
Carputer progress: 90% [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ -]
Spent so far: $1105.90
Download the NEXUS Skin for Centrafuse
...or even Listen to my music
Well, now that I am getting off of work I will see what I can do. I might just go the MFC route.
Just because I haven't posted alot doesn't mean I haven't searched and know what I am talking about!
Progress Meter [████████████] 2%
General layout design is done in my head. Just need the money to buy the stuff and start building.
Any update on this?
2002 Honda CR-V
Carputer progress: 90% [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ -]
Spent so far: $1105.90
Download the NEXUS Skin for Centrafuse
...or even Listen to my music
by the way I am pretty sure that the application named in the other thred can be allowed to last more than 20seconds, iirc 20s is the standard windows time to properly close an application, and this time can be changed or forced to infinite. I'm sure I've seen it somewhere, needs some searching.. will do :P
that programs with autoit rocks
Peugeot 206 1.4 HDi
Intel Mini-ITX Mainboard
Celeron 1.2ghz
256mb DDR-2 533
80gig 3.5" SATA HDD
Sb Live 5.1 w/ KXProject Drivers
M2-ATX
8" Lilliput TS LCD
100% installed and working :D
I guess I will have to learn how to code this myself. All in the sake of saving 3 MB of precious memory LOL!
2002 Honda CR-V
Carputer progress: 90% [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ -]
Spent so far: $1105.90
Download the NEXUS Skin for Centrafuse
...or even Listen to my music
I know I keep on resurrecting this... not a chance in the world I would be able to code this, but there are a ton of talented coders in this forum. Anyone seriously willing to program this?
Posts 16 & 17 have the relevant specs for the util...
2002 Honda CR-V
Carputer progress: 90% [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ -]
Spent so far: $1105.90
Download the NEXUS Skin for Centrafuse
...or even Listen to my music
Be done in a bit.
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
Restart and Shutdown are the same thing, don't think I can differentiate.
However, I can add an event for logoff.
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
Hibernate and Suspend are the same as well.
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
Bookmarks