aboutsummaryrefslogtreecommitdiffstats
path: root/api/wintun.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-10-31 15:33:54 +0100
committerSimon Rozman <simon@rozman.si>2020-10-31 19:11:56 +0100
commitffab1eabe315073874af4bef110d46e87d3dd608 (patch)
treeac08f31121f51bb4cab9d0ae7a44be7a301be586 /api/wintun.h
parentapi: add debugging rundll32 entry point (diff)
downloadwintun-ffab1eabe315073874af4bef110d46e87d3dd608.tar.xz
wintun-ffab1eabe315073874af4bef110d46e87d3dd608.zip
api: RebootRequire is an _Out_
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'api/wintun.h')
-rw-r--r--api/wintun.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/api/wintun.h b/api/wintun.h
index b6e1663..7258caf 100644
--- a/api/wintun.h
+++ b/api/wintun.h
@@ -40,8 +40,7 @@ typedef void *WINTUN_ADAPTER_HANDLE;
* @param Adapter Pointer to a handle to receive the adapter handle. Must be released with
* WintunFreeAdapter.
*
- * @param RebootRequired Pointer to a boolean flag to be set to TRUE in case SetupAPI suggests a reboot. Must be
- * initialised to FALSE manually before this function is called.
+ * @param RebootRequired Pointer to a boolean flag to be set to TRUE in case SetupAPI suggests a reboot.
*
* @return ERROR_SUCCESS on success; Win32 error code otherwise.
*/
@@ -50,7 +49,7 @@ typedef WINTUN_STATUS(WINAPI *WINTUN_CREATE_ADAPTER_FUNC)(
_In_z_count_c_(MAX_ADAPTER_NAME) const WCHAR *Name,
_In_opt_ const GUID *RequestedGUID,
_Out_ WINTUN_ADAPTER_HANDLE *Adapter,
- _Inout_ BOOL *RebootRequired);
+ _Out_ BOOL *RebootRequired);
/**
* Deletes a Wintun adapter.
@@ -61,15 +60,14 @@ typedef WINTUN_STATUS(WINAPI *WINTUN_CREATE_ADAPTER_FUNC)(
* with extreme care, as this is resource intensive and may put processes into an undefined
* or unpredictable state. Most users should set this to FALSE.
*
- * @param RebootRequired Pointer to a boolean flag to be set to TRUE in case SetupAPI suggests a reboot. Must be
- * initialised to FALSE manually before this function is called.
+ * @param RebootRequired Pointer to a boolean flag to be set to TRUE in case SetupAPI suggests a reboot.
*
* @return ERROR_SUCCESS on success or the adapter was not found; Win32 error code otherwise.
*/
typedef WINTUN_STATUS(WINAPI *WINTUN_DELETE_ADAPTER_FUNC)(
_In_ WINTUN_ADAPTER_HANDLE Adapter,
_In_ BOOL ForceCloseSessions,
- _Inout_ BOOL *RebootRequired);
+ _Out_ BOOL *RebootRequired);
/**
* Called by WintunEnumAdapters for each adapter in the pool.