AppleWin/source/Configuration/PageConfigTfe.h
Andrea 6a5ea92a4e
Uthernet II: add virtual DNS feature (PR #1097)
Uthernet II: add extended feature to virtualise DNS requests.
. This allows pure TCP/UDP sockets to run *without* MACRAW requests (and so without libpcap).
. Raw sockets will not work.
. Add configuration for Virtual DNS.
libpcap: ensure all functions check if the library is loaded before using it.
Uthernet 1: do NOT overwrite tfe_cannot_use as it should only reflect the availability of npcap on *this* system.
Add Copyright notice, and mention Virtual DNS in html.
2022-05-08 16:26:01 +01:00

43 lines
1.1 KiB
C++

#pragma once
#include "IPropertySheetPage.h"
#include "../Tfe/Uilib.h"
#include "../Card.h"
#include <string>
class CPageConfigTfe : private IPropertySheetPage
{
public:
CPageConfigTfe()
{
CPageConfigTfe::ms_this = this;
m_tfe_selected = CT_Empty;
m_tfe_virtual_dns = false;
}
virtual ~CPageConfigTfe(){}
static INT_PTR CALLBACK DlgProc(HWND window, UINT message, WPARAM wparam, LPARAM lparam);
SS_CARDTYPE m_tfe_selected;
std::string m_tfe_interface_name;
bool m_tfe_virtual_dns;
protected:
// IPropertySheetPage
virtual INT_PTR DlgProcInternal(HWND window, UINT message, WPARAM wparam, LPARAM lparam);
virtual void DlgOK(HWND window);
virtual void DlgCANCEL(HWND window);
private:
BOOL get_tfename(int number, std::string & name, std::string & description);
void gray_ungray_items(HWND hwnd);
void init_tfe_dialog(HWND hwnd);
void save_tfe_dialog(HWND hwnd);
static CPageConfigTfe* ms_this;
static uilib_localize_dialog_param ms_dialog[];
static uilib_dialog_group ms_leftgroup[];
static uilib_dialog_group ms_rightgroup[];
};