wintun/api
Jason A. Donenfeld d8fe1419fb driver: automatically close long-lived handle
There's only one handle that's likely to be open in a long lived way:
the tun registration handle. So we can force that closed automatically
when the device is about to close, if it's been improperly left open.
Other handles will indeed hold up closing, but if those exist, they're a
sign of a larger bug elsewhere that should be addressed. On the other
hand, tun registration handles might legitimately be open during driver
upgrades. This also saves us the trouble of dereferencing a freed
FileObject as in the general case.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-12 18:55:24 +00:00
..
adapter_win7.h api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
adapter.c driver: automatically close long-lived handle 2021-10-12 18:55:24 +00:00
adapter.h driver: automatically close long-lived handle 2021-10-12 18:55:24 +00:00
api.vcxproj api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
api.vcxproj.filters api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
driver.c driver: automatically close long-lived handle 2021-10-12 18:55:24 +00:00
driver.h api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
exports.def api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
extract-driverver.js global: bump copyright 2021-01-30 16:45:26 +01:00
logger.c api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
logger.h api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
main.c api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
main.h api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
namespace.c api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
namespace.h api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
nci.def api: make nci.lib work on x86 2020-11-02 11:38:02 +01:00
nci.h api: upgrade 2021-07-28 20:25:27 +02:00
ntdll.h api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
registry.c api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
registry.h api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
resource.c api: upgrade 2021-07-28 20:25:27 +02:00
resource.h api: upgrade 2021-07-28 20:25:27 +02:00
resources.rc api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
rundll32.c api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
rundll32.h api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
session.c api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
wintun.h api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00