Registriert seit: 27. Apr 2005
Ort: Görlitz
1.358 Beiträge
Delphi XE2 Professional
|
Re: WLan API Übersetztung ?
17. Okt 2006, 15:13
Ich vermute mal, so:
Delphi-Quellcode:
function WLAN_API_VERSION_MAJOR(AVersion : LongWord) : Word;
begin
Result:=AVersion and $FFFF;
end;
function WLAN_API_VERSION_MINOR(AVersion : LongWord) : Word;
begin
Result:=AVersion shr 16;
end;
function WLAN_API_MAKE_VERSION(AMajor, AMinor : Word) : LongWord;
begin
Result:=(LongWord(AMinor) shl 16) or AMajor;
end;
Benjamin Schwarze If I have seen further it is by standing on the shoulders of Giants. (Isaac Newton)
|