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.

62 lines
1.5 KiB

  1. /*
  2. * db.c - Twin database module description.
  3. */
  4. /* Types
  5. ********/
  6. /* database header version numbers */
  7. #define HEADER_MAJOR_VER (0x0001)
  8. #define HEADER_MINOR_VER (0x0005)
  9. /* old (but supported) version numbers */
  10. #define HEADER_M8_MINOR_VER (0x0004)
  11. typedef struct _dbversion
  12. {
  13. DWORD dwMajorVer;
  14. DWORD dwMinorVer;
  15. }
  16. DBVERSION;
  17. DECLARE_STANDARD_TYPES(DBVERSION);
  18. /* Prototypes
  19. *************/
  20. /* db.c */
  21. extern TWINRESULT WriteTwinDatabase(HCACHEDFILE, HBRFCASE);
  22. extern TWINRESULT ReadTwinDatabase(HBRFCASE, HCACHEDFILE);
  23. extern TWINRESULT WriteDBSegmentHeader(HCACHEDFILE, LONG, PCVOID, UINT);
  24. extern TWINRESULT TranslateFCRESULTToTWINRESULT(FCRESULT);
  25. /* path.c */
  26. extern TWINRESULT WritePathList(HCACHEDFILE, HPATHLIST);
  27. extern TWINRESULT ReadPathList(HCACHEDFILE, HPATHLIST, PHHANDLETRANS);
  28. /* brfcase.c */
  29. extern TWINRESULT WriteBriefcaseInfo(HCACHEDFILE, HBRFCASE);
  30. extern TWINRESULT ReadBriefcaseInfo(HCACHEDFILE, HBRFCASE, HHANDLETRANS);
  31. /* string.c */
  32. extern TWINRESULT WriteStringTable(HCACHEDFILE, HSTRINGTABLE);
  33. extern TWINRESULT ReadStringTable(HCACHEDFILE, HSTRINGTABLE, PHHANDLETRANS);
  34. /* twin.c */
  35. extern TWINRESULT WriteTwinFamilies(HCACHEDFILE, HPTRARRAY);
  36. extern TWINRESULT ReadTwinFamilies(HCACHEDFILE, HBRFCASE, PCDBVERSION, HHANDLETRANS, HHANDLETRANS);
  37. /* foldtwin.c */
  38. extern TWINRESULT WriteFolderPairList(HCACHEDFILE, HPTRARRAY);
  39. extern TWINRESULT ReadFolderPairList(HCACHEDFILE, HBRFCASE, HHANDLETRANS, HHANDLETRANS);