Page 1 of 1

Running an action while shutdown log off or restart [DLL]

Posted: Fri Aug 17, 2012 2:27 am
by sidegame
hi there!
i am making an app that run in background (invisible window) using game maker and when user try to [shutdown,log off,restart] the PC
it will save the files.
the problem is that when user shutdown, log off or restart the PC it close the program process [without any saving files or any other action]
i search over the web but cant find one that help me, and cause i have a little experience in pure basic so i thought may be a .DLL can help me.

SO does anyone know how to make a DLL that work something like this: :?:

Code: Select all

if user try to [shutdown,log off,restart] the pc then {
do an action (Save files ,Save INI,End Process,or anything else)}
and then do the [shutdown,log off,restart]
any script or code is appreciate :D
please help me!
***Credit will be given***

Re: Running an action while shutdown log off or restart [DLL

Posted: Fri Aug 17, 2012 2:37 am
by IdeasVacuum

Re: Running an action while shutdown log off or restart [DLL

Posted: Fri Aug 17, 2012 3:28 am
by sidegame
IdeasVacuum wrote:See this forum post: http://www.purebasic.fr/english/viewtop ... 12&t=45779
IdeasVacuum dude!
as i said i am making the program in game maker and its already complete just i need DLL to port it on game maker. and also i don't have mach experience in pure basic [i am a newbie in pure basic].
can you change it to a DLL for me please?
thanks! :)

is there anyone else? :cry: