diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-01 05:54:56 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2020-11-02 09:17:47 +0100 |
commit | b5836e9fb9b78c6b9034a735034610c7a97276a1 (patch) | |
tree | a83175eb34477ffd938203fd5db05078af8b91ec /api/wintun.h | |
parent | api: avoid call to CM_Get_DevNode_Status (diff) | |
download | wintun-b5836e9fb9b78c6b9034a735034610c7a97276a1.tar.xz wintun-b5836e9fb9b78c6b9034a735034610c7a97276a1.zip |
api: make version function uniform
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | api/wintun.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/api/wintun.h b/api/wintun.h index fabe03d..f39e33c 100644 --- a/api/wintun.h +++ b/api/wintun.h @@ -164,23 +164,11 @@ typedef WINTUN_STATUS(WINAPI *WINTUN_GET_ADAPTER_NAME_FUNC)( _Out_cap_c_(MAX_ADAPTER_NAME) WCHAR *Name); /** - * Returns the version of the Wintun driver and NDIS system currently loaded. + * Determines the version of the Wintun driver currently loaded. * - * @param DriverVersionMaj Pointer to a DWORD to receive the Wintun driver major version number. - * - * @param DriverVersionMin Pointer to a DWORD to receive the Wintun driver minor version number. - * - * @param NdisVersionMaj Pointer to a DWORD to receive the NDIS major version number. - * - * @param NdisVersionMin Pointer to a DWORD to receive the NDIS minor version number. - * - * @return ERROR_SUCCESS on success; Win32 error code otherwise. + * @return The version number on success, or 0 if failure. */ -typedef WINTUN_STATUS(WINAPI *WINTUN_GET_VERSION_FUNC)( - _Out_ DWORD *DriverVersionMaj, - _Out_ DWORD *DriverVersionMin, - _Out_ DWORD *NdisVersionMaj, - _Out_ DWORD *NdisVersionMin); +typedef DWORDLONG(WINAPI *WINTUN_GET_VERSION_FUNC)(void); /** * Sets name of the Wintun adapter. |