Shut down/Desktop Icons

BlitzMax Forums/BlitzMax Programming/Shut down/Desktop Icons

CASO(Posted 2006) [#1]
Is there a way to tell Windows to shut down?

Is there a way to create a shortcut icon on the desktop?

Both of these were possible in BlitzPlus through a lib.


Triforce Guardian(Posted 2006) [#2]
You can do it via winapi.


EOF(Posted 2006) [#3]
Try the code here which has these commands:

Standby
Hibernate
Shutdown
Restart
LogOff





CASO(Posted 2006) [#4]
It returns-
"Compile Error"
"CString can only be used with extern functions"
-when you try to run it.


EOF(Posted 2006) [#5]
I get no error here. Are you using BlitzMax 1.22?


CASO(Posted 2006) [#6]
I synced the modules and now it works.


Drackbolt(Posted 2010) [#7]
Talk about reviving an old thread... but I'm curious, what's the answer to the second question (creating shortcuts)?


_JIM(Posted 2010) [#8]
http://www.tacktech.com/display.cfm?ttid=316


Drackbolt(Posted 2010) [#9]
Sorry, I thought it would be obvious that we were all talking about how to create a shortcut within Blitzmax. :) Can anyone help with that?