diff options
author | Simon Rozman <simon@rozman.si> | 2020-07-29 10:10:42 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-10-30 16:50:59 +0100 |
commit | abd20337e2a2ec1c4a34c1b839ee0ed575689527 (patch) | |
tree | 8db5d33f19f6107633110dcd8101a37784ee7b5f /api/nci.h | |
parent | api: revise str/memcpy (diff) | |
download | wintun-abd20337e2a2ec1c4a34c1b839ee0ed575689527.tar.xz wintun-abd20337e2a2ec1c4a34c1b839ee0ed575689527.zip |
api: split api.h
As the project grew, api.h got bloated.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/nci.h')
-rw-r--r-- | api/nci.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/api/nci.h b/api/nci.h new file mode 100644 index 0000000..5090c90 --- /dev/null +++ b/api/nci.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2018-2020 WireGuard LLC. All Rights Reserved. + */ + +#pragma once + +#include <Windows.h> + +extern DWORD(WINAPI *NciSetConnectionName)(_In_ const GUID *Guid, _In_z_ const WCHAR *NewName); + +extern DWORD(WINAPI *NciGetConnectionName)( + _In_ const GUID *Guid, + _Out_z_bytecap_(InDestNameBytes) WCHAR *Name, + _In_ DWORD InDestNameBytes, + _Out_opt_ DWORD *OutDestNameBytes); + +void +NciInit(); + +void +NciCleanup(); |