Initial commit
This commit is contained in:
commit
57fc3525eb
7311 files changed
+1291398
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import win32event
|
||||
import win32security
|
||||
|
||||
evt = win32event.CreateEvent(None, 0, 0, None)
|
||||
win32security.LsaRegisterPolicyChangeNotification(
|
||||
win32security.PolicyNotifyAuditEventsInformation, evt
|
||||
)
|
||||
print("Waiting for you change Audit policy in Management console ...")
|
||||
ret_code = win32event.WaitForSingleObject(evt, 1000000000)
|
||||
## should come back when you change Audit policy in Management console ...
|
||||
print(ret_code)
|
||||
win32security.LsaUnregisterPolicyChangeNotification(
|
||||
win32security.PolicyNotifyAuditEventsInformation, evt
|
||||
)
|
||||
Reference in new issue
Block a user