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

For everything that's not in any way related to PureBasic. General chat etc...
sidegame
New User
New User
Posts: 7
Joined: Wed Feb 22, 2012 2:38 pm

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

Post 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***
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

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

Post by IdeasVacuum »

IdeasVacuum
If it sounds simple, you have not grasped the complexity.
sidegame
New User
New User
Posts: 7
Joined: Wed Feb 22, 2012 2:38 pm

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

Post 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:
Post Reply