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.

126 lines
3.1 KiB

  1. /*
  2. **------------------------------------------------------------------------------
  3. ** Module: Disk Cleanup Manager
  4. ** File: common.h
  5. **
  6. ** Purpose: various common stuff for this module
  7. ** Notes:
  8. ** Mod Log: Created by Jason Cobb (2/97)
  9. **
  10. ** Copyright (c)1997 Microsoft Corporation, All Rights Reserved
  11. **------------------------------------------------------------------------------
  12. */
  13. #ifndef COMMON_H
  14. #define COMMON_H
  15. /*
  16. **------------------------------------------------------------------------------
  17. ** Microsoft C++ include files
  18. **------------------------------------------------------------------------------
  19. */
  20. #ifndef STRICT
  21. #define STRICT
  22. #endif
  23. #define INC_OLE2 // WIN32, get ole2 from windows.h
  24. #include <windows.h>
  25. #include <windowsx.h>
  26. #include <shlobj.h>
  27. #include <shlobjp.h>
  28. #include <shlwapi.h>
  29. #include <shlwapip.h>
  30. #include <initguid.h>
  31. #include <regstr.h>
  32. #include "resource.h"
  33. #include "cmstrings.h"
  34. #include "ids.h"
  35. #ifdef _DEBUG
  36. #define DEBUG
  37. #endif
  38. #define ARRAYSIZE(x) (sizeof(x)/sizeof(x[0]))
  39. #define FLAG_SAGESET 0x00000001
  40. #define FLAG_SAGERUN 0x00000002
  41. #define FLAG_TUNEUP 0x00000004
  42. #define FLAG_LOWDISK 0x00000008
  43. #define FLAG_VERYLOWDISK 0x00000010
  44. #define FLAG_SETUP 0x00000020
  45. #define FLAG_SAVE_STATE 0x80000000
  46. #define STATE_SELECTED 0x00000001
  47. #define STATE_SAGE_SELECTED 0x00000002
  48. #define RETURN_SUCCESS 0x00000001
  49. #define RETURN_CLEANER_FAILED 0x00000002
  50. #define RETURN_USER_CANCELED_SCAN 0x00000003
  51. #define RETURN_USER_CANCELED_PURGE 0x00000004
  52. #ifdef NEC_98
  53. #define SZ_DEFAULT_DRIVE TEXT("A:\\")
  54. #else
  55. #define SZ_DEFAULT_DRIVE TEXT("C:\\")
  56. #endif
  57. #define SZ_CLASSNAME TEXT("CLEANMGR")
  58. #define SZ_STATE TEXT("StateFlags")
  59. #define SZ_DEFAULTICONPATH TEXT("CLSID\\%s\\DefaultIcon")
  60. #define SZ_RUNDLL32 TEXT("RUNDLL32.EXE")
  61. #define SZ_INSTALLED_PROGRAMS TEXT("shell32.dll,Control_RunDLL appwiz.cpl")
  62. #define SZ_RUN_INSTALLED_PROGRAMS TEXT("control.exe appwiz.cpl")
  63. #define SZ_SYSOCMGR TEXT("sysocmgr.exe")
  64. #define SZ_WINDOWS_SETUP TEXT("/i:%s\\sysoc.inf")
  65. #define DEFAULT_PRIORITY 200
  66. #define MAX_GUID_STRING_LEN 39
  67. #define INTER_ITEM_SPACE 10
  68. #define DESCRIPTION_LENGTH 512
  69. #define BUTTONTEXT_LENGTH 50
  70. #define MAX_DESC_LEN 100
  71. #define INDENT 5
  72. #define cbRESOURCE 256
  73. #define NUM_BYTES_IN_MB 0x100000
  74. extern HINSTANCE g_hInstance;
  75. extern HWND g_hDlg;
  76. #ifdef DEBUG
  77. #define MI_TRAP _asm int 3
  78. void
  79. DebugPrint(
  80. HRESULT hr,
  81. LPCSTR lpFormat,
  82. ...
  83. );
  84. #define MiDebugMsg( args ) DebugPrint args
  85. #else
  86. #define MI_TRAP
  87. #define MiDebugMsg( args )
  88. #endif // DEBUG
  89. #endif // COMMON_H
  90. /*
  91. **------------------------------------------------------------------------------
  92. ** End of File
  93. **------------------------------------------------------------------------------
  94. */