// TABMAC.H Olivier Bertrand 2011-2012 // MAC: virtual table to Get Mac Addresses via GetAdaptersInfo #ifdefined(_WIN32) #include <windows.h> #include <iphlpapi.h> #else// !_WIN32 #errorThis is a WINDOWS only table TYPE #endif// !_WIN32
/* -------------------------- MAC classes ---------------------------- */
/***********************************************************************/ /* MAC: virtual table to get the list of MAC addresses. */ /***********************************************************************/ class DllExport MACDEF : public TABDEF { /* Logical table description */ friendclass TDBMAC; public: // Constructor
MACDEF(void) {Pseudo = 3;}
/***********************************************************************/ /* This is the class declaration for the MAC table. */ /***********************************************************************/ class TDBMAC : public TDBASE { friendclass MACCOL; public: // Constructor
TDBMAC(PMACDEF tdp); //TDBMAC(PGLOBAL g, PTDBMAC tdbp);
// Members
FIXED_INFO *FixedInfo; // Points to fixed info structure
PIP_ADAPTER_INFO Piaf; // Points on Adapter info array
PIP_ADAPTER_INFO Curp; // Points on current Adapt info
PIP_ADAPTER_INFO Next; // Points on next Adapt info
ULONG Buflen; // Buffer length bool Fix; // true if FixedInfo is needed bool Adap; // true if Piaf is needed int N; // Row number
}; // end of class TDBMAC
/***********************************************************************/ /* Class MACCOL: MAC Address column. */ /***********************************************************************/ class MACCOL : public COLBLK { friendclass TDBMAC; public: // Constructors
MACCOL(PCOLDEF cdp, PTDB tdbp, int n); //MACCOL(MACCOL *colp, PTDB tdbp); // Constructor used in copy process
// Implementation int GetAmType(void) override {return TYPE_AM_MAC;}
// Methods void ReadColumn(PGLOBAL g) override;
protected:
MACCOL(void) {} // Default constructor not to be used
// Members
PTDBMAC Tdbp; // Points to MAC table block int Flag; // Indicates what to display
}; // end of class MACCOL
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-10-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.