wintun/example
Simon Rozman cef7922556 api: elevate to SYSTEM in WintunEnumAdapters()
The WintunEnumAdapters() requires namespace mutex. However,
NamespaceTakePoolMutex() works as SYSTEM user only.

WireGuard is using the WintunEnumAdapters() in its manager service to
cleanup stale adapters. As the WireGuard manager service is running as
SYSTEM, this requirement was not apparent before.

This commit also extends the example project to list its existing
adapters at start.

Signed-off-by: Simon Rozman <simon@rozman.si>
2021-03-08 13:48:29 +01:00
..
example.c api: elevate to SYSTEM in WintunEnumAdapters() 2021-03-08 13:48:29 +01:00
example.vcxproj example: rewrite and replace api's debug rundll32 functionality 2020-11-02 23:42:43 +01:00
example.vcxproj.filters example: rewrite and replace api's debug rundll32 functionality 2020-11-02 23:42:43 +01:00