]> git.ipfire.org Git - thirdparty/openvpn.git/commit
dco-win: use run-time dynamic linking for GetOverlappedResultEx
authorLev Stipakov <lev@openvpn.net>
Sat, 20 Aug 2022 08:47:19 +0000 (11:47 +0300)
committerGert Doering <gert@greenie.muc.de>
Sat, 20 Aug 2022 09:29:35 +0000 (11:29 +0200)
commit2f8053f9a97584b759d11d05a668d38653508617
tree9c48d8511940253c4146743c9fdf8ba861d65819
parentefebdfe2de8dd5125fb42d646d03a958b7dc3eea
dco-win: use run-time dynamic linking for GetOverlappedResultEx

This function is available starting from Windows 8. Calling it
"as is" causes startup error on Windows 7.

dco-win driver available on Windows 10 20H1 and newer. On older
systems installer will not show nor install the driver and dco-win code
won't be reached. It is safe to load GetOverlappedResultEx in runtime
and exit in case of error.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220820084719.243-1-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25038.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/dco_win.c