diff options
author | Simon Rozman <simon@rozman.si> | 2020-11-03 12:29:34 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2020-11-04 13:21:42 +0100 |
commit | f657e6fd278732d054b064bb4836702d06e176f0 (patch) | |
tree | 3f113195349908e0390b1abc8f315619df4d598e /api/namespace.h | |
parent | example: account for adapter reuse (diff) | |
download | wintun-f657e6fd278732d054b064bb4836702d06e176f0.tar.xz wintun-f657e6fd278732d054b064bb4836702d06e176f0.zip |
api: use GetLastError() to report failures like standard Win32
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/namespace.h')
-rw-r--r-- | api/namespace.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/api/namespace.h b/api/namespace.h index 0f2598a..d0f83a1 100644 --- a/api/namespace.h +++ b/api/namespace.h @@ -8,12 +8,10 @@ #include <Windows.h> _Check_return_ -HANDLE -NamespaceTakePoolMutex(_In_z_ const WCHAR *Pool); +_Return_type_success_(return != NULL) HANDLE NamespaceTakePoolMutex(_In_z_ const WCHAR *Pool); _Check_return_ -HANDLE -NamespaceTakeDriverInstallationMutex(void); +_Return_type_success_(return != NULL) HANDLE NamespaceTakeDriverInstallationMutex(void); void NamespaceReleaseMutex(_In_ HANDLE Mutex); @@ -22,4 +20,4 @@ void NamespaceInit(void); void -NamespaceCleanup(void); +NamespaceDone(void); |