![]() |
ICMP_ECHO_REPLY Struktur in Pascal übersetzen
Hallo!
Da ich noch kein C - Experte bin, brauche ich eure Hilfe. Ich will folgende Struktur nach Pascal übersetzen:
Code:
Kann mir wer helfen?
typedef struct icmp_echo_reply {
IPAddr Address; ULONG Status; ULONG RoundTripTime; USHORT DataSize; USHORT Reserved; PVOID Data; IP_OPTION_INFORMATION Options; } ICMP_ECHO_REPLY, *PICMP_ECHO_REPLY; |
Re: ICMP_ECHO_REPLY Struktur in Pascal übersetzen
Hi.
Entsprechung in Delphi/Pascal:
Delphi-Quellcode:
type
PICMP_ECHO_REPLY = ^TICMP_ECHO_REPLY; TICMP_ECHO_REPLY = packed record Address : IPAddr; Status, RoundTripTime : LongWord; DataSize, Reserved : Word; Data : Pointer; Options : TIP_OPTIONS_INFORMATION; end; |
Re: ICMP_ECHO_REPLY Struktur in Pascal übersetzen
Danke!
Was ich noch wissen möchte: UINT ist doch Integer, oder? |
Re: ICMP_ECHO_REPLY Struktur in Pascal übersetzen
Hi.
Nein. Es ist ein Cardinal bzw. Longword. ;-) |
Re: ICMP_ECHO_REPLY Struktur in Pascal übersetzen
UINT ist unsigned also Cardinal.
Ich wuerde die vorgefertigten Typen von Windows.pas benutzen. Da sind UINT und Konsorten schon drin. |
Re: ICMP_ECHO_REPLY Struktur in Pascal übersetzen
Danke!
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:10 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