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.

66 lines
2.4 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 _CONVERT_H
  19. #define _CONVERT_H
  20. // ItemType is going to be the type of entry found in the bookmarks
  21. // file.
  22. typedef enum MYENTRYTYPE
  23. {
  24. ET_OPEN_DIR = 531, // New level in heirarchy
  25. ET_CLOSE_DIR, // Close level in heirarchy
  26. ET_BOOKMARK, // Bookmark entry.
  27. ET_NONE, // End of File
  28. ET_ERROR // Bail, we encountered an error
  29. } MyEntryType;
  30. //////////////////////////////////////////////////////////////////
  31. // Exprted Functions
  32. //////////////////////////////////////////////////////////////////
  33. //////////////////////////////////////////////////////////////////
  34. // Internal Functions
  35. //////////////////////////////////////////////////////////////////
  36. BOOL ImportNetscapeProxy(void); // Import Netscape Proxy Setting
  37. BOOL UpdateHomePage(void); // Upgrade IE v1.0 Home URL to v3.0
  38. BOOL ImportBookmarks(HINSTANCE hInstWithStr); // Import Netscape Bookmarks to IE Favorites
  39. BOOL RegStrValueEmpty(HKEY hTheKey, char * szPath, char * szKey);
  40. BOOL GetNSProxyValue(char * szProxyValue, DWORD * pdwSize);
  41. BOOL VerifyBookmarksFile(HANDLE hFile);
  42. BOOL ConvertBookmarks(char * szFavoritesDir, HANDLE hFile, HINSTANCE hInstWithStr);
  43. MyEntryType NextFileEntry(char ** ppStr, char ** ppToken);
  44. BOOL GetData(char ** ppData, HANDLE hFile);
  45. void RemoveInvalidFileNameChars(char * pBuf);
  46. BOOL CreateDir(char *pDirName);
  47. BOOL CloseDir(void);
  48. BOOL CreateBookmark(char *pBookmarkName);
  49. BOOL GetNavBkMkDir( LPSTR lpszDir, int isize );
  50. #endif // _CONVERT_H