diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/adapter.c | 4 | ||||
-rw-r--r-- | api/exports.def | 2 | ||||
-rw-r--r-- | api/wintun.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/api/adapter.c b/api/adapter.c index 12b02fe..50d1929 100644 --- a/api/adapter.c +++ b/api/adapter.c @@ -1083,7 +1083,7 @@ static _Return_type_success_(return != FALSE) BOOL } DWORD WINAPI -WintunGetVersion(void) +WintunGetRunningDriverVersion(void) { PRTL_PROCESS_MODULES Modules; ULONG BufferSize = 128 * 1024; @@ -1127,7 +1127,7 @@ static BOOL EnsureWintunUnloaded(void) { BOOL Loaded; - for (int i = 0; (Loaded = WintunGetVersion() != 0) != FALSE && i < 300; ++i) + for (int i = 0; (Loaded = WintunGetRunningDriverVersion() != 0) != FALSE && i < 300; ++i) Sleep(50); return !Loaded; } diff --git a/api/exports.def b/api/exports.def index 53c2300..4ca739f 100644 --- a/api/exports.def +++ b/api/exports.def @@ -12,7 +12,7 @@ EXPORTS WintunGetAdapterLUID WintunGetAdapterName WintunGetReadWaitEvent - WintunGetVersion + WintunGetRunningDriverVersion WintunReceivePacket WintunReceiveRelease WintunSendPacket diff --git a/api/wintun.h b/api/wintun.h index 01870b2..fc38327 100644 --- a/api/wintun.h +++ b/api/wintun.h @@ -187,7 +187,7 @@ typedef _Return_type_success_(return != FALSE) * zero. To get extended error information, call GetLastError. Possible errors include the following: * ERROR_FILE_NOT_FOUND Wintun not loaded */ -typedef DWORD(WINAPI *WINTUN_GET_VERSION_FUNC)(void); +typedef DWORD(WINAPI *WINTUN_GET_RUNNING_DRIVER_VERSION_FUNC)(void); typedef enum _WINTUN_LOGGER_LEVEL { |