Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.8 KiB

  1. /************************************************************\
  2. FILE: convert.h
  3. DATE: Apr 1, 1996
  4. AUTHOR: Bryan Starbuck (bryanst)
  5. DESCRIPTION:
  6. This file will handle the logic to convert Netscape
  7. bookmarks to Microsoft Internet Explorer favorites. This
  8. will happen by finding the location of the Netscape bookmarks
  9. file and the Microsoft Internet Explorer favorites directory
  10. from the registry. Then it will parse the bookmarks file to
  11. extract the URLs, which will finally be added to the favorites
  12. directory.
  13. NOTES:
  14. This was developed with Netscape 2.0 and IE 2.0. Future notes
  15. will be made about compatibility with different versions of
  16. these browsers.
  17. \************************************************************/
  18. #ifndef _IMPEXP_H
  19. #define _IMPEXP_H
  20. //////////////////////////////////////////////////////////////////
  21. // Exported Functions
  22. //////////////////////////////////////////////////////////////////
  23. BOOL GetVersionFromFile(PTSTR pszFileName, PDWORD pdwMSVer, PDWORD pdwLSVer);
  24. void DoImportOrExport(BOOL fImport, LPCWSTR pwszPath, LPCWSTR pwszImpExpDestPath, BOOL fConfirm);
  25. BOOL ImportBookmarks(TCHAR *pszPathToFavorites, TCHAR *pszPathToBookmarks, HWND hwnd); // Import Netscape Bookmarks to IE Favorites
  26. BOOL ExportFavorites(TCHAR *pszPathToFavorites, TCHAR *pszPathToBookmarks); // Export IE Favorites to Netscape Bookmarks
  27. #ifdef UNIX
  28. BOOL GetNavBkMkDir( LPTSTR lpszDir, int isize);
  29. BOOL GetPathFromRegistry(LPTSTR szPath, UINT cbPath, HKEY theHKEY, LPTSTR szKey, LPTSTR szVName);
  30. BOOL VerifyBookmarksFile(HANDLE hFile);
  31. BOOL ImportBookmarks(TCHAR *pszPathToFavorites, TCHAR *pszPathToBookmarks, HWND hwnd);// Import Netscape Bookmarks to IE Favorites
  32. #endif
  33. #endif // _IMPEXP_H