aboutsummaryrefslogtreecommitdiffstats
path: root/api/nci.h
blob: ba99fa6e62a29631f5c1b32fd32ee9b140374815 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* SPDX-License-Identifier: GPL-2.0
 *
 * Copyright (C) 2018-2021 WireGuard LLC. All Rights Reserved.
 */

#pragma once

#include <Windows.h>

#ifdef GENERATE_LIB
#    define DECLSPEC __declspec(dllexport)
#    define STUB \
        { \
            return 0; \
        }
#else
#    define DECLSPEC __declspec(dllimport)
#    define STUB ;
#endif

EXTERN_C
DECLSPEC DWORD WINAPI
NciSetConnectionName(_In_ const GUID *Guid, _In_z_ LPCWSTR NewName) STUB

    EXTERN_C
DECLSPEC DWORD WINAPI
NciGetConnectionName(
    _In_ const GUID *Guid,
    _Out_z_bytecap_(InDestNameBytes) LPWSTR Name,
    _In_ DWORD InDestNameBytes,
    _Out_opt_ DWORD *OutDestNameBytes) STUB