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]
please help me!
***Credit will be given***

