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.

91 lines
1.5 KiB

  1. #include <windows.h>
  2. #include <lm.h>
  3. #include <ole2.h>
  4. #include <olectl.h>
  5. #include <shellapi.h>
  6. #include <shlobj.h>
  7. #include <commctrl.h>
  8. #include <prsht.h>
  9. #include <mmc.h>
  10. #include <gpedit.h>
  11. #include <gptdemo.h>
  12. class CSnapIn;
  13. #include "layout.h"
  14. #include "compdata.h"
  15. #include "snapin.h"
  16. #include "dataobj.h"
  17. #include "debug.h"
  18. #include "util.h"
  19. //
  20. // Resource ids
  21. //
  22. #define IDS_SNAPIN_NAME 1
  23. #define IDS_NAME 2
  24. #define IDS_POLICY 3
  25. #define IDS_DISPLAY 4
  26. #define IDS_SAMPLES 5
  27. #define IDS_README 8
  28. #define IDS_APPEAR 19
  29. //
  30. // Icons
  31. //
  32. #define IDI_POLICY 1
  33. #define IDI_README 2
  34. #define IDI_APPEAR 7
  35. //
  36. // Bitmaps
  37. //
  38. #define IDB_16x16 1
  39. #define IDB_32x32 2
  40. //
  41. // Dialogs
  42. //
  43. #define IDD_README 150
  44. #define IDD_APPEAR 600
  45. #define IDC_RED 601
  46. #define IDC_GREEN 602
  47. #define IDC_BLUE 603
  48. #define IDC_BLACK 604
  49. #define IDC_GRAY 605
  50. #define IDC_DEFAULT 606
  51. #define IDC_WALLPAPER 607
  52. #define IDC_TILE 608
  53. #define IDC_CENTER 609
  54. //
  55. // Global variables
  56. //
  57. extern LONG g_cRefThisDll;
  58. extern HINSTANCE g_hInstance;
  59. //
  60. // Macros
  61. //
  62. #define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))
  63. //
  64. // Functions to create class factories
  65. //
  66. HRESULT CreateComponentDataClassFactory (REFCLSID rclsid, REFIID riid, LPVOID* ppv);