mirror of
https://github.com/BeneficialCode/WinArk.git
synced 2026-10-17 04:40:35 +08:00
27 lines
628 B
C++
27 lines
628 B
C++
#pragma once
|
|
|
|
namespace WinSys {
|
|
|
|
struct AdapterInfo :IP_ADAPTER_ADDRESSES_LH {
|
|
std::string Name;
|
|
std::wstring DnsSuffix;
|
|
std::wstring Description;
|
|
std::wstring FriendlyName;
|
|
|
|
private:
|
|
// prevent usage of some base members
|
|
using IP_ADAPTER_ADDRESSES_LH::AdapterName;
|
|
using IP_ADAPTER_ADDRESSES_LH::Next;
|
|
};
|
|
|
|
struct InterfaceInfo :MIB_IF_ROW2 {
|
|
};
|
|
|
|
static_assert(sizeof(InterfaceInfo) == sizeof(MIB_IF_ROW2));
|
|
|
|
struct NetworkInformation {
|
|
static std::vector<AdapterInfo> EnumAdapters();
|
|
static std::vector<InterfaceInfo> EnumInterfaces();
|
|
static std::vector<MIB_IPADDRROW> EnumIPAddressTable();
|
|
};
|
|
} |