2020-07-29 10:10:42 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0
|
|
|
|
*
|
2021-01-30 16:45:26 +01:00
|
|
|
* Copyright (C) 2018-2021 WireGuard LLC. All Rights Reserved.
|
2020-07-29 10:10:42 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Windows.h>
|
|
|
|
|
2021-07-28 20:20:09 +02:00
|
|
|
_Must_inspect_result_
|
|
|
|
_Return_type_success_(return != NULL)
|
|
|
|
_Post_maybenull_
|
|
|
|
_Acquires_lock_(_Curr_)
|
|
|
|
HANDLE
|
2021-10-12 07:21:31 +02:00
|
|
|
NamespaceTakeDriverInstallationMutex(VOID);
|
2020-11-02 12:07:05 +01:00
|
|
|
|
2021-07-28 20:20:09 +02:00
|
|
|
_Must_inspect_result_
|
|
|
|
_Return_type_success_(return != NULL)
|
|
|
|
_Post_maybenull_
|
|
|
|
_Acquires_lock_(_Curr_)
|
|
|
|
HANDLE
|
2021-10-12 07:21:31 +02:00
|
|
|
NamespaceTakeDeviceInstallationMutex(VOID);
|
2020-07-29 10:10:42 +02:00
|
|
|
|
2021-07-28 20:20:09 +02:00
|
|
|
_Releases_lock_(Mutex)
|
|
|
|
VOID
|
2020-10-15 11:32:06 +02:00
|
|
|
NamespaceReleaseMutex(_In_ HANDLE Mutex);
|
2020-07-29 10:10:42 +02:00
|
|
|
|
2021-07-28 20:20:09 +02:00
|
|
|
VOID NamespaceInit(VOID);
|
2020-07-29 10:10:42 +02:00
|
|
|
|
2021-07-28 20:20:09 +02:00
|
|
|
VOID NamespaceDone(VOID);
|