function GetFlashDisks: TStrings;var buf: array[0..MAX_PATH - 1] of Char; M_Result: Integer; i: Integer; tmpStr: string;begin Result := TStringList.Create; M_Result := GetLogicalDriveStrings(MAX_PATH, buf); for i := 0 to (M_Result div 4) do begin
function Join(mylist: TStrings; seperatorStr: string): string;var i: Integer;begin Result := string.Empty; for i := 0 to mylist.Count - 1 do begin Result := Result + mylist[i]; if i < mylist.Count - 1 then Result := Result + ' '