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.

92 lines
1.8 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // MAIN.H / ChkDskW
  4. //
  5. // Microsoft Confidential
  6. // Copyright (c) Microsoft Corporation 1998
  7. // All rights reserved
  8. //
  9. // Includes all internal and external include files, defined values, macros,
  10. // data structures, and fucntion prototypes for the corisponding CXX file.
  11. //
  12. // 8/98 - Jason Cohen (JCOHEN)
  13. //
  14. //////////////////////////////////////////////////////////////////////////////
  15. // Only include this file once.
  16. //
  17. #ifndef _MAIN_H_
  18. #define _MAIN_H_
  19. //
  20. // Include file(s).
  21. //
  22. #include <windows.h>
  23. #include <tchar.h>
  24. #include <windowsx.h>
  25. #include <commctrl.h>
  26. #include "resource.h"
  27. #include "jcohen.h"
  28. #include "misc.h"
  29. #include "registry.h"
  30. //
  31. // External defined value(s).
  32. //
  33. #define SCANDISK_SCANNING 0x00000001
  34. #define SCANDISK_CANCELSCAN 0x00000002
  35. #define SCANDISK_SAGERUN 0x00000004
  36. #define SCANDISK_SAGESET 0x00000008
  37. // Registry key(s).
  38. //
  39. #define SCANDISK_REGKEY_MAIN _T("Software\\Microsoft\\Windows\\CurrentVersion\\Applets\\Scandisk")
  40. #define SCANDISK_REGKEY_SAGE _T("Software\\Microsoft\\Windows\\CurrentVersion\\Applets\\Scandisk\\Sage")
  41. // Registry value(s).
  42. //
  43. #define SCANDISK_REGVAL_DRIVES _T("Drives")
  44. #define SCANDISK_REGVAL_FIX _T("AutoFix")
  45. #define SCANDISK_REGVAL_SURFACE _T("SurfaceScan")
  46. //
  47. // External defined macro(s).
  48. //
  49. #ifdef _UNICODE
  50. #define ANSIWCHAR(lpw, lpa, cb) lpw = lpa
  51. #define WCHARANSI(lpa, lpw, cb) lpa = lpw
  52. #else // _UNICODE
  53. #define ANSIWCHAR(lpw, lpa, cb) MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, lpa, -1, lpw, cb / 2)
  54. #define WCHARANSI(lpa, lpw, cb) WideCharToMultiByte(CP_ACP, 0, lpw, -1, lpa, cb, NULL, NULL)
  55. #endif // _UNICODE
  56. //
  57. // External structure(s).
  58. //
  59. //
  60. // External global variable(s).
  61. //
  62. //
  63. // External global constant(s).
  64. //
  65. //
  66. // External function prototype(s).
  67. //
  68. #endif // _MAIN_H_