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.

71 lines
1.6 KiB

  1. //
  2. // Copyright 2001 - Microsoft Corporation
  3. //
  4. // Created By:
  5. // Geoff Pease (GPease) 23-JAN-2001
  6. //
  7. // Maintained By:
  8. // Geoff Pease (GPease) 23-JAN-2001
  9. //
  10. //////////////////////////////////////////////////////////////////////////////
  11. #define UNICODE
  12. #define _UNICODE
  13. #define SHELLEXT_REGISTRATION // turn on "approved" shell extension registration
  14. #if DBG==1 || defined( _DEBUG )
  15. #define DEBUG
  16. //#define NO_TRACE_INTERFACES // Define this to change Interface Tracking
  17. #define USES_SYSALLOCSTRING
  18. #endif // DBG==1 || _DEBUG
  19. //
  20. // SDK headers - files the use "<>"
  21. //
  22. #include <windows.h>
  23. #include <windowsx.h>
  24. #include <objbase.h>
  25. #include <ocidl.h>
  26. #include <shlwapi.h>
  27. #include <ComCat.h>
  28. #include <shobjidl.h>
  29. #include <shlobj.h>
  30. #include <ccstock.h>
  31. #include <ccstock2.h>
  32. #include <shlobjp.h>
  33. #include <commctrl.h>
  34. #include <imgprop.h>
  35. #include <gdiplus/gdipluspixelformats.h>
  36. #include <gdiplus/gdiplusimaging.h>
  37. #include <richedit.h>
  38. #include <strsafe.h>
  39. //
  40. // Infrequently changing local headers.
  41. //
  42. #include "Debug.h"
  43. #include "CITracker.h"
  44. #include "CFactory.h"
  45. #include "Dll.h"
  46. #include "Guids.h"
  47. #include "Register.h"
  48. #include "resource.h"
  49. #include "tiff.h"
  50. //
  51. // COM Macros to gain type checking.
  52. //
  53. #if !defined( TYPESAFEPARAMS )
  54. #define TYPESAFEPARAMS( _pinterface ) __uuidof(_pinterface), (void**)&_pinterface
  55. #endif !defined( TYPESAFEPARAMS )
  56. #if !defined( TYPESAFEQI )
  57. #define TYPESAFEQI( _pinterface ) \
  58. QueryInterface( TYPESAFEPARAMS( _pinterface ) )
  59. #endif !defined( TYPESAFEQI )