diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-07-22 07:36:21 +0000 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-08-02 09:43:32 +0000 |
commit | 22e2da002d8ad18b3d3f1286191f03854939f3c4 (patch) | |
tree | ca211b7743fa5e018694f11efb717621a9b13f25 /installer/installation.h | |
parent | Use explicit running boolean and use set instead of exchange (diff) | |
download | wintun-22e2da002d8ad18b3d3f1286191f03854939f3c4.tar.xz wintun-22e2da002d8ad18b3d3f1286191f03854939f3c4.zip |
Rewrite installer logic in C
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'installer/installation.h')
-rw-r--r-- | installer/installation.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/installer/installation.h b/installer/installation.h new file mode 100644 index 0000000..e5ce781 --- /dev/null +++ b/installer/installation.h @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2018-2019 WireGuard LLC. All Rights Reserved. + */ + +#pragma once + +#include <Windows.h> + +typedef enum _LOGGER_LEVEL +{ + LOG_INFO = 0, + LOG_WARN, + LOG_ERR +} LOGGER_LEVEL; +typedef VOID (*LoggerFunction)(_In_ LOGGER_LEVEL, _In_ const TCHAR *); +VOID +SetLogger(_In_ LoggerFunction NewLogger); + +BOOL InstallOrUpdate(VOID); +BOOL Uninstall(VOID); + +extern HINSTANCE ResourceModule; |