// MACUTIL.H Olivier Bertrand 2008-2012 // Get Mac Addresses via GetAdaptersInfo #ifdefined(_WIN32) #include <iphlpapi.h> #else// !_WIN32 #errorThis is WINDOWS only #endif// !_WIN32 #include"block.h"
typedefclass MACINFO *MACIP;
/***********************************************************************/ /* This is the class declaration for MACINFO. */ /***********************************************************************/ class DllExport MACINFO : public BLOCK { public: // Constructor
MACINFO(bool adap, bool fix);
// Implementation int GetNadap(PGLOBAL g); bool GetMacInfo(PGLOBAL g); bool GetFixedInfo(PGLOBAL g); void MakeErrorMsg(PGLOBAL g, DWORD drc); bool NextMac(void); bool GetOneInfo(PGLOBAL g, int flag, void *v, int lv);
// Members
FIXED_INFO *Fip; // Points to fixed info structure
PIP_ADAPTER_INFO Piaf; // Points on Adapter info array
PIP_ADAPTER_INFO Curp; // Points on current Adapt info
ULONG Buflen; // Buffer length bool Fix; // true if FixedInfo is needed bool Adap; // true if Piaf is needed int N; // Number of adapters
}; // end of class MACINFO
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 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.