Source code of Windows XP (NT5)
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.

100 lines
1.4 KiB

  1. /*++
  2. Copyright (C) 2000 Microsoft Corporation
  3. Module Name:
  4. ftcomp.h
  5. Abstract:
  6. Header for the compatibility dll
  7. Author:
  8. Cristian Teodorescu (cristiat) 6-July-2000
  9. Notes:
  10. Revision History:
  11. --*/
  12. #pragma once
  13. #ifndef _FTCOMP_H
  14. #define _FTCOMP_H
  15. //
  16. // Exports
  17. //
  18. BOOL WINAPI
  19. FtCompatibilityCheckError(
  20. PCOMPAIBILITYCALLBACK CompatibilityCallback,
  21. LPVOID Context
  22. );
  23. BOOL WINAPI
  24. FtCompatibilityCheckWarning(
  25. PCOMPAIBILITYCALLBACK CompatibilityCallback,
  26. LPVOID Context
  27. );
  28. //
  29. // Variables
  30. //
  31. extern HINSTANCE g_hinst;
  32. extern TCHAR g_FTCOMP50_ERROR_HTML_FILE[];
  33. extern TCHAR g_FTCOMP50_ERROR_TEXT_FILE[];
  34. extern TCHAR g_FTCOMP40_ERROR_HTML_FILE[];
  35. extern TCHAR g_FTCOMP40_ERROR_TEXT_FILE[];
  36. extern TCHAR g_FTCOMP40_WARNING_HTML_FILE[];
  37. extern TCHAR g_FTCOMP40_WARNING_TEXT_FILE[];
  38. //
  39. // Helpers
  40. //
  41. BOOL
  42. FtPresent50(
  43. PBOOL FtPresent
  44. );
  45. BOOL
  46. FtPresent40(
  47. PBOOL FtPresent
  48. );
  49. BOOL
  50. FtBootSystemPagefilePresent40(
  51. PBOOL FtPresent
  52. );
  53. NTSTATUS
  54. OpenDevice(
  55. PWSTR DeviceName,
  56. PHANDLE Handle
  57. );
  58. BOOL
  59. FtPresentOnDisk40(
  60. HANDLE Handle,
  61. PDISK_REGISTRY DiskRegistry,
  62. PBOOL FtPresent
  63. );
  64. BOOL
  65. IsFtSet40(
  66. WCHAR DriveLetter,
  67. PDISK_REGISTRY DiskRegistry
  68. );
  69. BOOL
  70. GetDeviceDriveLetter(
  71. PWSTR DeviceName,
  72. PWCHAR DriveLetter
  73. );
  74. #endif // _FTCOMP_H