Additional support for working with WLAN added

This commit is contained in:
2016-08-28 12:21:03 +02:00
parent ea9a08e02a
commit 276546ee18
5 changed files with 196 additions and 0 deletions

View File

@@ -20,6 +20,7 @@
#include "StdAfx.h"
#if defined(SECURITY_WIN32) || defined(SECURITY_KERNEL) || defined(SECURITY_MAC)
//////////////////////////////////////////////////////////////////////

40
src/WLAN.cpp Normal file
View File

@@ -0,0 +1,40 @@
/*
Copyright 1991-2016 Amebis
Copyright 2016 G<>ANT
This file is part of WinStd.
Setup is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Setup is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Setup. If not, see <http://www.gnu.org/licenses/>.
*/
#include "StdAfx.h"
//////////////////////////////////////////////////////////////////////
// winstd::wlan_handle
//////////////////////////////////////////////////////////////////////
winstd::wlan_handle::~wlan_handle()
{
if (m_h)
WlanCloseHandle(m_h, NULL);
}
void winstd::wlan_handle::free_internal()
{
WlanCloseHandle(m_h, NULL);
}