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.

74 lines
1.6 KiB

  1. // stdafx.h : include file for standard system include files,
  2. // or project specific include files that are used frequently,
  3. // but are changed infrequently
  4. #if !defined(AFX_STDAFX_H__CD83A789_6F75_11D2_A385_00609772642E__INCLUDED_)
  5. #define AFX_STDAFX_H__CD83A789_6F75_11D2_A385_00609772642E__INCLUDED_
  6. #if _MSC_VER >= 1000
  7. #pragma once
  8. #endif // _MSC_VER >= 1000
  9. #ifndef STRICT
  10. #define STRICT
  11. #endif
  12. #ifndef _WIN64
  13. #ifndef _WIN32_WINNT
  14. #define _WIN32_WINNT 0x0400
  15. #endif
  16. #endif
  17. #define _ATL_APARTMENT_THREADED
  18. #include <atlbase.h>
  19. //////////////////////////////
  20. // fixes problem with atlwin.h
  21. #ifdef __cplusplus
  22. extern "C" { /* Assume C declarations for C++ */
  23. #endif /* __cplusplus */
  24. DECLSPEC_IMPORT VOID APIENTRY DragAcceptFiles(HWND,BOOL);
  25. #ifdef __cplusplus
  26. }
  27. #endif /* __cplusplus */
  28. // fixes problem with atlwin.h
  29. //////////////////////////////
  30. //You may derive a class from CComModule and use it if you want to override
  31. //something, but do not change the name of _Module
  32. extern CComModule _Module;
  33. #include <atlcom.h>
  34. #include <atlwin.h>
  35. //////////////////
  36. // ESI additions
  37. // Helper functions
  38. template<class TYPE>
  39. inline void SAFE_RELEASE(TYPE*& pObj)
  40. {
  41. if (pObj != NULL)
  42. {
  43. pObj->Release();
  44. pObj = NULL;
  45. }
  46. else
  47. {
  48. // todo TRACE(_T("Release called on NULL interface ptr\n"));
  49. }
  50. }
  51. extern const LPTSTR szDefragGUID;
  52. #include <prsht.h>
  53. #include <shfusion.h>
  54. //
  55. /////////////////
  56. //{{AFX_INSERT_LOCATION}}
  57. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  58. #endif // !defined(AFX_STDAFX_H__CD83A789_6F75_11D2_A385_00609772642E__INCLUDED)