windows - Blocking a log off request with Python -


i have software logs me off automaticly. want block this, won't logged off (windows 7). there way block log off requests using python? if so, how , if not; there other solutions?

looks if there's possible solution in msdn article.

what you'd have write simple windows application handles wm_queryendsession event, , returns false, then, in theory, long application running, system won't log out. it's possible leaving open instance of notepad.exe unsaved file in achieve same thing.

it, might, however, cause other applications terminate, so, if that's undesirable, you'd have intercept call exitwindows softxpand, more complicated.

some security products comodo internet security allow run application in sandbox, such can intercept , deny system calls, might work.

see also: this question.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -