Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

lsaregevent.py 532B

1 year ago
1234567891011121314
  1. import win32event
  2. import win32security
  3. evt = win32event.CreateEvent(None, 0, 0, None)
  4. win32security.LsaRegisterPolicyChangeNotification(
  5. win32security.PolicyNotifyAuditEventsInformation, evt
  6. )
  7. print("Waiting for you change Audit policy in Management console ...")
  8. ret_code = win32event.WaitForSingleObject(evt, 1000000000)
  9. ## should come back when you change Audit policy in Management console ...
  10. print(ret_code)
  11. win32security.LsaUnregisterPolicyChangeNotification(
  12. win32security.PolicyNotifyAuditEventsInformation, evt
  13. )