OpenVPN 3 Core Library
Loading...
Searching...
No Matches
handle.hpp
Go to the documentation of this file.
1
// OpenVPN -- An application to securely tunnel IP networks
2
// over a single port, with support for SSL/TLS-based
3
// session authentication and key exchange,
4
// packet encryption, packet authentication, and
5
// packet compression.
6
//
7
// Copyright (C) 2012- OpenVPN Inc.
8
//
9
// SPDX-License-Identifier: MPL-2.0 OR AGPL-3.0-only WITH openvpn3-openssl-exception
10
//
11
12
// windows HANDLE utilities
13
14
#ifndef OPENVPN_WIN_HANDLE_H
15
#define OPENVPN_WIN_HANDLE_H
16
17
#include <windows.h>
18
19
namespace
openvpn::Win::Handle
{
20
inline
HANDLE
undefined
()
21
{
22
return
INVALID_HANDLE_VALUE;
23
}
24
25
inline
bool
defined
(HANDLE handle)
26
{
27
return
handle !=
nullptr
&& handle != INVALID_HANDLE_VALUE;
28
}
29
}
// namespace openvpn::Win::Handle
30
31
#endif
openvpn::Win::Handle
Definition
handle.hpp:19
openvpn::Win::Handle::undefined
HANDLE undefined()
Definition
handle.hpp:20
openvpn::Win::Handle::defined
bool defined(HANDLE handle)
Definition
handle.hpp:25
openvpn
win
handle.hpp
Generated by
1.9.8