aisk · GitHub

Proposal:

Currently, NTEventLogHandler relies on external library pywin32 to provide its functionality. But it's a little bit weird for a standard library to depend on a 3rd-party library.

The pywin32 is only used to write some registry keys, and call RegisterEventSourceW, DeregisterEventSource, and ReportEventW to do the job.

We can use winreg to write the registry keys, and wrap these functions in the _winapi module, then use them to replace pywin32.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Read the original on github.com ↗