![]() |
Re: WLan API Übersetztung ?
Und wieder habe ich eine Frage !
Habe ich das Richtig Übersetzt ?
Delphi-Quellcode:
#if defined(__midl)
typedef struct { unsigned long Data1; unsigned short Data2; unsigned short Data3; byte Data4[ 8 ]; } GUID; #else typedef struct _GUID { unsigned long Data1; unsigned short Data2; unsigned short Data3; unsigned char Data4[ 8 ]; } GUID;
Delphi-Quellcode:
TnduGuid = record
Data1: Longint; Data2: Shortint; Data3: Shortint; Data4: array [0..8] of Byte; end; |
Re: WLan API Übersetztung ?
Ich würd unsigned short eher mit Byte übersetzen
und unsigned long mit LongWord. Grüße Klaus |
Re: WLan API Übersetztung ?
Ok Probiere es mal aus. Danke !
|
Re: WLan API Übersetztung ?
Mal noch ne Frage die Arrays im C
Delphi-Quellcode:
sind doch Felder von 0 - 7
.. [8]
wirde das nicht in Delphi so aussehen
Delphi-Quellcode:
??
.. [0..7]
|
Re: WLan API Übersetztung ?
ja
|
Re: WLan API Übersetztung ?
Zitat:
Zitat:
GUID ist schon für delphi übersetzt:
Delphi-Quellcode:
unsigned short ist zwei Byte gross. :)
PGUID = ^TGUID;
TGUID = packed record D1: LongWord; D2: Word; D3: Word; D4: array[0..7] of Byte; end; |
Re: WLan API Übersetztung ?
In welcher Unit ? :gruebel: dann kann ich mir das Sparen :o
|
Re: WLan API Übersetztung ?
Bei D7 Prof in der System.pas.
|
Re: WLan API Übersetztung ?
Gut das geht jetzt, und nun habe ich noch das Problem hier
Code:
typedef struct _WLAN_BSS_ENTRY { DOT11_SSID dot11Ssid; ULONG uPhyId; DOT11_MAC_ADDRESS dot11Bssid; DOT11_BSS_TYPE dot11BssType; DOT11_PHY_TYPE dot11BssPhyType; LONG lRssi; ULONG uLinkQuality; BOOLEAN bInRegDomain; USHORT usBeaconPeriod; ULONGLONG ullTimestamp; ULONGLONG ullHostTimestamp; USHORT usCapabilityInformation; ULONG ulChCenterFrequency; WLAN_RATE_SET wlanRateSet; // the beginning of the IE blob // the offset is w.r.t. the beginning of the entry ULONG ulIeOffset; // size of the IE blob ULONG ulIeSize; } WLAN_BSS_ENTRY, * PWLAN_BSS_ENTRY; // struct WLAN_VARIABLE_SIZE_ARRAY defines a list of entries, // each of which may have different size typedef struct _WLAN_BSS_LIST { // The total size of the data in BYTE DWORD dwTotalSize; DWORD dwNumberOfItems; WLAN_BSS_ENTRY wlanBssEntries[1]; } WLAN_BSS_LIST, *PWLAN_BSS_LIST;
Delphi-Quellcode:
ist das alles richtig übersetzt ?
TnduWLanBSSEntry = record
dot11Ssid: TnduDot11_SSID; uPhyId: ULONG; dot11Bssid: TnduDot11_Mac_Address; dot11BssType: TnduDot11BssType; dot11BssPhyType: TnduDot11PhyType; lRssi: Longint; uLinkQuality: ULONG; bInRegDomain: Boolean; usBeaconPeriod: SHORT; ullTimestamp: LONGLONG; ullHostTimestamp: LONGLONG; usCapabilityInformation: SHORT; ulChCenterFrequency: ULONG; wlanRateSet: TnduWLanRateSet; ulIeOffset: ULONG; ulIeSize: ULONG; end; PnduWLanBSSList = ^TnduWLanBSSList; TnduWLanBSSList = record dwTotalSize: DWORD; dwNumberOfItems: DWORD; wlanBssEntries: TnduWLanBSSEntry; end; [edit=Luckie]Wir haben auch Code-Tags für C/C++/C#: [c ], [/c ] Mfg, Luckie[/edit] |
Re: WLan API Übersetztung ?
OK Luckie werde mich dran halten habs eben nicht gefunden aber ist das nun so richtig ?
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:45 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz