How to get Firefox bookmarks from a Delphi application? -


I know how to get favorites from IE, but how can I use Firefox's bookmarks?

I have a code to retrieve the IE Favorites:

  Schlobz uses ActiveX; Function GetIEFavourites (const favpath: string): TStrings; Search Var: TSearchRec; Str: Teestring; Path, dir, filename: string; Buffer: Sir's [0..2047] Sir; Found: integer; Start str: = TStringList.Create; // Find all file names in the preferred file path: = FavPath + '\ *. Url '; Dir: = ExtractFilepath (route); Found: = Finding first (path, faAnyFile, searchrec); While founding = 0, get the URL from files in the variable files. Now set the string (filename, buffer, gateprivateprofelistring ('Internet shortcut', PChar ('url'), zero, buffer, sizeoff (buffer), PCAR (dial) + Serchar) name))); Str.Add (file name); Found: = FindNext (searchrec); End; // Find subfolders found: = SearchSTist (DIR + '\ *. *', Finefile, SearchEx); Where found = 0 if ((searchrec.Attr and faDirectory)> 0) and (searchrec.Name [1]  & gt; '.') Then str.Addstrings (GetIEFavourites (dir + '\' + searchrec . Name)); Found: = FindNext (searchrec); End; FindClose (searchrec); Results: = str; End; Process FreePedal (pedal: PITIMIDLIS); Var Olocator: IML; Start on succeeding (SHGTMOLOK), then start the allocation. Free (pedal); {$ IFDEF VER100} Allocation Relay; End of {$ ENDIF}; End; Process TForm1.Button1Click (Sender: Tubbed); Var Pedal: PITIM IDList; FavPath: array of variables [0..MAX_PATH]; If successful, start ShGetSpecialFolderLocation (handle, CSIDL_FAVORITES, pidl), then ShGetPathfromIDList (pidl, FavPath) then ListBox1.Items: = GetIEFavourites (StrPas (FavPath)); // Calling application is responsible for freeing PItemIDList-pointer // with the IMalloc interface FreePIDL (pidl); End; End;  

Thanks.

After

are saved in 'favorite' locations. In the profile folder 'sqlite' they are in the table moz_bookmarks They see entries in the table with their area fk moz_places dll and a delphi Receive as.

Open the SQLite3_Open database and send simple SQL statement to use data like SQLite3_Exec

  Select> from moz_bookmarks;  

Unfortunately Firefox locks places.sqlite, which means you have to copy it first (copy the normal file). After you work on the copy, you can remove it.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -