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
Post a Comment