When System sleeps/hibrante ?

i am looking way to make a text file in windows.
if system goes to sleep or hibrante mode then make a text file
What apis should i use?

Thanks.
http://www.google.com/search?btnI=1&q=msdn+SetWindowsHookEx
http://www.google.com/search?btnI=1&q=msdn+ForegroundIdleProc

You'll need to create a DLL with the hook procedure in it and specify zero for the dwThreadId argument.

It's not a particularly complicated thing to do, but it isn't newbie fare either...

Good luck!
Topic archived. No new replies allowed.