Wie kann ich die MAC-Adresse / Physikalische Adresse mit C++ herausfinden?



  • Wie kann ich die MAC-Adresse / Physikalische Adresse mit C++ herausfinden?
    Kennt jemand grad eine library die man bequem includen kann?
    Ich finde zwar massenhaft codes bei google, aber keine libraries. Und die codes brauchen entweder eine Adapternummer (???), generieren zufällige MAC Adressen oder funktionieren schlicht und einfach nicht. Es ist zum verzweifeln!

    Gruss
    Kenji

    PS: Ich benutze MSVisualC++ 6



  • hier ist ein Artikel darüber:

    http://community.borland.com/article/0,1410,26040,00.html

    Ist von borland, aber es ist compiler unabhänging.

    Gruß evi



  • 1. Weg: siehe http://www.c-plusplus.net/forum/viewtopic-var-p-is-1495252.html#1495252

    2. Weg: Generiert zufalls-Macadresse -> sinnlos

    3. Weg:

    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28971) : error C2059: syntax error : 'sizeof'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28973) : error C2065: 'OID_ifEntryType' : undeclared identifier
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28973) : error C2059: syntax error : 'sizeof'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28973) : error C2143: syntax error : missing ';' before '}'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28973) : error C2143: syntax error : missing ';' before '}'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28975) : error C2065: 'OID_ifEntryNum' : undeclared identifier
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28975) : error C2059: syntax error : 'sizeof'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28975) : error C2143: syntax error : missing ';' before '}'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28975) : error C2143: syntax error : missing ';' before '}'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28986) : error C2501: 'm_Init' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28987) : error C2501: 'm_InitEx' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28988) : error C2501: 'm_Query' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28989) : error C2501: 'm_Trap' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28993) : error C2501: 'm_hInst' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28993) : error C2440: 'initializing' : cannot convert from 'struct HINSTANCE__ *' to 'int'
    This conversion requires a reinterpret_cast, a C-style cast or function-style cast
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28994) : error C2143: syntax error : missing ';' before 'if'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28995) : error C2143: syntax error : missing ';' before '{'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28995) : error C2447: missing function header (old-style formal list?)
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28999) : error C2501: 'm_Init' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28999) : error C2374: 'm_Init' : redefinition; multiple initialization
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28986) : see declaration of 'm_Init'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29000) : error C2664: 'GetProcAddress' : cannot convert parameter 1 from 'int' to 'struct HINSTANCE__ *'
    Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29001) : error C2501: 'm_InitEx' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29001) : error C2374: 'm_InitEx' : redefinition; multiple initialization
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28987) : see declaration of 'm_InitEx'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29003) : error C2664: 'GetProcAddress' : cannot convert parameter 1 from 'int' to 'struct HINSTANCE__ *'
    Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29004) : error C2501: 'm_Query' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29004) : error C2374: 'm_Query' : redefinition; multiple initialization
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28988) : see declaration of 'm_Query'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29006) : error C2664: 'GetProcAddress' : cannot convert parameter 1 from 'int' to 'struct HINSTANCE__ *'
    Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29007) : error C2501: 'm_Trap' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29007) : error C2374: 'm_Trap' : redefinition; multiple initialization
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28989) : see declaration of 'm_Trap'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29008) : error C2664: 'GetProcAddress' : cannot convert parameter 1 from 'int' to 'struct HINSTANCE__ *'
    Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29009) : error C2065: 'PollForTrapEvent' : undeclared identifier
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29009) : error C2065: 'SupportedView' : undeclared identifier
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29009) : error C2501: 'm_Init' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29009) : error C2374: 'm_Init' : redefinition; multiple initialization
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28986) : see declaration of 'm_Init'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29009) : error C2078: too many initializers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29009) : error C2440: 'initializing' : cannot convert from 'int *' to 'int'
    This conversion requires a reinterpret_cast, a C-style cast or function-style cast
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29012) : error C2143: syntax error : missing ';' before '.'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29012) : error C2501: 'varBindList' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29012) : error C2371: 'varBindList' : redefinition; different basic types
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28976) : see declaration of 'varBindList'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29012) : error C2143: syntax error : missing ';' before '.'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29013) : error C2466: cannot allocate an array of constant size 0
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29013) : error C2143: syntax error : missing ';' before '.'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29013) : error C2501: 'varBind' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29013) : error C2371: 'varBind' : redefinition; different basic types
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28977) : see declaration of 'varBind'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29013) : error C2143: syntax error : missing ';' before '.'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29014) : error C2143: syntax error : missing ';' before '.'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29014) : error C2501: 'varBind' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29014) : error C2369: 'varBind' : redefinition; different subscripts
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28977) : see declaration of 'varBind'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29014) : error C2143: syntax error : missing ';' before '.'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29018) : error C2143: syntax error : missing ';' before '.'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29018) : error C2501: 'varBindList' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29018) : error C2371: 'varBindList' : redefinition; different basic types
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28976) : see declaration of 'varBindList'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29018) : error C2143: syntax error : missing ';' before '.'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29019) : error C2501: 'SnmpUtilOidCpy' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29019) : error C2373: 'SnmpUtilOidCpy' : redefinition; different type modifiers
    C:\Programme\VC98\INCLUDE\snmp.h(360) : see declaration of 'SnmpUtilOidCpy'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29019) : error C2078: too many initializers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29019) : error C2440: 'initializing' : cannot convert from 'AsnObjectIdentifier *' to 'int'
    This conversion requires a reinterpret_cast, a C-style cast or function-style cast
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29020) : error C2501: 'ret' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29020) : error C2086: 'ret' : redefinition
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29024) : error C2501: 'printf' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29024) : error C2373: 'printf' : redefinition; different type modifiers
    C:\Programme\VC98\INCLUDE\stdio.h(329) : see declaration of 'printf'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29024) : error C2078: too many initializers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29025) : error C2143: syntax error : missing ';' before '.'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29025) : error C2501: 'varBindList' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29025) : error C2371: 'varBindList' : redefinition; different basic types
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(28976) : see declaration of 'varBindList'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29025) : error C2143: syntax error : missing ';' before '.'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29028) : error C2501: 'SnmpUtilOidCpy' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29028) : error C2373: 'SnmpUtilOidCpy' : redefinition; different type modifiers
    C:\Programme\VC98\INCLUDE\snmp.h(360) : see declaration of 'SnmpUtilOidCpy'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29028) : error C2078: too many initializers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29028) : error C2440: 'initializing' : cannot convert from 'AsnObjectIdentifier *' to 'int'
    This conversion requires a reinterpret_cast, a C-style cast or function-style cast
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29031) : error C2065: 'MIB_ifMACEntAddr' : undeclared identifier
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29031) : error C2501: 'SnmpUtilOidCpy' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29031) : error C2373: 'SnmpUtilOidCpy' : redefinition; different type modifiers
    C:\Programme\VC98\INCLUDE\snmp.h(360) : see declaration of 'SnmpUtilOidCpy'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29031) : error C2078: too many initializers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29031) : error C2440: 'initializing' : cannot convert from 'int *' to 'int'
    This conversion requires a reinterpret_cast, a C-style cast or function-style cast
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29033) : error C2143: syntax error : missing ';' before 'do'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29034) : error C2143: syntax error : missing ';' before '{'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29034) : error C2447: missing function header (old-style formal list?)
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29096) : error C2143: syntax error : missing ';' before 'while'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29099) : warning C4273: 'getch' : inconsistent dll linkage. dllexport assumed.
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29101) : error C2501: 'FreeLibrary' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29101) : error C2373: 'FreeLibrary' : redefinition; different type modifiers
    C:\Programme\VC98\INCLUDE\winbase.h(1085) : see declaration of 'FreeLibrary'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29103) : error C2501: 'SnmpUtilVarBindFree' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29103) : error C2373: 'SnmpUtilVarBindFree' : redefinition; different type modifiers
    C:\Programme\VC98\INCLUDE\snmp.h(443) : see declaration of 'SnmpUtilVarBindFree'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29103) : error C2440: 'initializing' : cannot convert from 'SnmpVarBind *' to 'int'
    This conversion requires a reinterpret_cast, a C-style cast or function-style cast
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29104) : error C2501: 'SnmpUtilVarBindFree' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29104) : error C2373: 'SnmpUtilVarBindFree' : redefinition; different type modifiers
    C:\Programme\VC98\INCLUDE\snmp.h(443) : see declaration of 'SnmpUtilVarBindFree'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29104) : error C2440: 'initializing' : cannot convert from 'SnmpVarBind *' to 'int'
    This conversion requires a reinterpret_cast, a C-style cast or function-style cast
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29117) : error C2065: 'mac_addr' : undeclared identifier
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29117) : error C2501: 'PutString2' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29117) : error C2078: too many initializers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29118) : error C2501: 'PutString2' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29118) : error C2374: 'PutString2' : redefinition; multiple initialization
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29117) : see declaration of 'PutString2'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29118) : error C2078: too many initializers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29119) : error C2501: 'PutString2' : missing storage-class or type specifiers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29119) : error C2374: 'PutString2' : redefinition; multiple initialization
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29117) : see declaration of 'PutString2'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29119) : error C2078: too many initializers
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29123) : error C2143: syntax error : missing ';' before '}'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29123) : error C2143: syntax error : missing ';' before '}'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29123) : error C2143: syntax error : missing ';' before '}'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29126) : error C2143: syntax error : missing ';' before '{'
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29126) : error C2447: missing function header (old-style formal list?)
    D:\OwnServer\sources hb client351\_ClienaDMGFIX\Game.cpp(29126) : fatal error C1003: error count exceeds 100; stopping compilation
    Error executing cl.exe.
    Creating browse info file...
    BSCMAKE: error BK1506 : cannot open file '.\Release\Game.sbr': No such file or directory
    Error executing bscmake.exe.

    Client.exe - 103 error(s), 1 warning(s)

    Also, naja, das hab ich auch schon gefunden, da funzt leider gar nichts.
    Trotzdem Danke

    Gruss
    Kenji



  • 1.) Die MAC Adresse ist eine OS spezifische Sache. -> OS Api (z.B. WinAPI für Windows).
    2.) Mit reinem C++ kannst Du die MAC Adresse nicht herausfinden.

    Was benutzt Du für ein OS?
    Simon



  • Windows XP, SP2
    Dazu kompilier ich mit MicrosoftVisualC++ 6.0

    Ich brauch eben die MAC Adresse, um die Clients eindeutig zu identifizieren, da einige hacker die IP ständig wechseln. Da ist mir nur die Physikalische Adresse eingefallen, weil die eigentlich nie ändert.
    Klar kann man sie auch ändern, aber wer das nicht weiss, fällt auf die Nase.



  • Klar kann man sie auch ändern, aber wer das nicht weiss, fällt auf die Nase.

    Wer das nicht weiss, von dem brauchst Du dir auch keine Sorgen zu machen.

    BTW: Benutze doch eine aktuelle IDE, z.B. VS 2008 Express.

    Simon



  • So viel geld hab ich dann auch wieder nicht dass ich mir ein neues VisualC++ leisten kann...

    Naja mal nach dem Esel schauen...

    PS: Ich glaube doch. Woher wollen die das mit der MacAdresse mitkriegen? Wenn ich die Adresse verschlüssele können sie sie nicht einmal im gesendeten packet finden.

    Wie würdest du es denn machen?



  • du brauchst keinen esel, die express edition ist kostenlos

    und die mac adresse ist keine lösung

    z.B. die hier könnte ich nehmen
    ifconfig hw ether 00:00:00:11:00:00



  • Oh mann jetzt suche ich so lang nach dem schei** und ihr sagt es sei nicht gut?

    Kann mir jemand sagen was DAUERHAFT an einem computer gleich bleibt und irgendwie abgefragt werden kann und bei jedem individuell ist?



  • sowas gibt's nicht.



  • Seriennummer der Festplatte: http://www.winsim.com/diskid32/diskid32.html



  • EDIT: WOW GEIL GRAD AUSPROBIEREN!



  • Hallo

    Stell dir doch mal die Frage : Wenn es so ein perfektes Identifizierungssystem gäbe warum wird es dann nicht von Microsoft für sein Windows benutzt?

    bis bald
    akari



  • Die Frage vertehe ich jetzt überhaupt nicht.
    Microsoft verwendet ja nur scheiss für sein betriebssystem, warum sollten sie als ausnahme was gutes reintun?

    Irgendwie kann ich dieses DiskId32.exe nicht compilieren, respektive, ich kann das .dsw gar nicht öffnen.
    Bin halt noch ein newbie.



  • Kenji schrieb:

    Die Frage vertehe ich jetzt überhaupt nicht.
    Microsoft verwendet ja nur scheiss für sein betriebssystem, warum sollten sie als ausnahme was gutes reintun?

    Irgendwie kann ich dieses DiskId32.exe nicht compilieren, respektive, ich kann das .dsw gar nicht öffnen.
    Bin halt noch ein newbie.

    jaja, immer dieses scheiß m$ produkte...

    mach dir mal gedanken darüber, woher die hardware informationen kommen und welchen weg sie genommen haben
    stell dir vor jemand baut die funktion um die vom kernel dafür bereit gestellt wird
    zu gegebenr maßen, beim windows wird es schwer

    aber wenn microsoft das nicht kann, kannst du das schon lange



  • Nein, leider kan ICH persönlich nichts! :,-(

    Ich schaff nicht einmal, dieses .cpp file zu compilieren.
    Ich kann ja die .dsw auf unerfindlichen gründen nicht öffnen.
    Wenn ich nur die CPP öffne, gibts viele errors (weil wahrscheinlich libs fehlen)

    D:\OwnServer\diskid32\diskid32.cpp(659) : error C2146: syntax error : missing ';' before identifier 'BusType'
    D:\OwnServer\diskid32\diskid32.cpp(659) : error C2501: 'STORAGE_BUS_TYPE' : missing storage-class or type specifiers
    D:\OwnServer\diskid32\diskid32.cpp(659) : error C2501: 'BusType' : missing storage-class or type specifiers
    D:\OwnServer\diskid32\diskid32.cpp(889) : error C2039: 'BusType' : is not a member of '_STORAGE_DEVICE_DESCRIPTOR'
            D:\OwnServer\diskid32\diskid32.cpp(582) : see declaration of '_STORAGE_DEVICE_DESCRIPTOR'
    D:\OwnServer\diskid32\diskid32.cpp(1540) : error C2065: 'IP_ADAPTER_INFO' : undeclared identifier
    D:\OwnServer\diskid32\diskid32.cpp(1540) : error C2146: syntax error : missing ';' before identifier 'AdapterInfo'
    D:\OwnServer\diskid32\diskid32.cpp(1540) : error C2065: 'AdapterInfo' : undeclared identifier
    D:\OwnServer\diskid32\diskid32.cpp(1540) : error C2109: subscript requires array or pointer type
    D:\OwnServer\diskid32\diskid32.cpp(1544) : error C2065: 'GetAdaptersInfo' : undeclared identifier
    D:\OwnServer\diskid32\diskid32.cpp(1550) : error C2065: 'PIP_ADAPTER_INFO' : undeclared identifier
    D:\OwnServer\diskid32\diskid32.cpp(1550) : error C2146: syntax error : missing ';' before identifier 'pAdapterInfo'
    D:\OwnServer\diskid32\diskid32.cpp(1550) : error C2065: 'pAdapterInfo' : undeclared identifier
    D:\OwnServer\diskid32\diskid32.cpp(1554) : error C2227: left of '->Address' must point to class/struct/union
    D:\OwnServer\diskid32\diskid32.cpp(1554) : error C2227: left of '->Address' must point to class/struct/union
    D:\OwnServer\diskid32\diskid32.cpp(1555) : error C2227: left of '->Address' must point to class/struct/union
    D:\OwnServer\diskid32\diskid32.cpp(1556) : error C2227: left of '->Address' must point to class/struct/union
    D:\OwnServer\diskid32\diskid32.cpp(1557) : error C2227: left of '->Address' must point to class/struct/union
    D:\OwnServer\diskid32\diskid32.cpp(1558) : error C2227: left of '->Next' must point to class/struct/union
    Error executing cl.exe.
    

    Gruss
    Kenji


Anmelden zum Antworten