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.

70 lines
1.7 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__88E11F15_58D2_477F_9D30_DBF092670E6A__INCLUDED_)
  5. #define AFX_STDAFX_H__88E11F15_58D2_477F_9D30_DBF092670E6A__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #define STRICT
  10. #ifndef _WIN32_WINNT
  11. #define _WIN32_WINNT 0x0400
  12. #endif
  13. #define _ATL_APARTMENT_THREADED
  14. #include <atlbase.h>
  15. //You may derive a class from CComModule and use it if you want to override
  16. //something, but do not change the name of _Module
  17. #if ( _ATL_VER >= 0x0300 )
  18. #define _ATL_NO_UUIDOF
  19. #endif
  20. using namespace ATL;
  21. class CLayerUIModule : public CComModule
  22. {
  23. public:
  24. HRESULT WINAPI UpdateRegistryCLSID(const CLSID& clsid, BOOL bRegister);
  25. };
  26. #define DECLARE_REGISTRY_CLSID() \
  27. static HRESULT WINAPI UpdateRegistry(BOOL bRegister) \
  28. { \
  29. return _Module.UpdateRegistryCLSID(GetObjectCLSID(), bRegister); \
  30. }
  31. extern CLayerUIModule _Module;
  32. #include <atlcom.h>
  33. #include <shellapi.h>
  34. #include <shlobj.h>
  35. extern const CLSID CLSID_ShimLayerPropertyPage;
  36. #if DBG
  37. void LogMsgDbg(LPTSTR pszFmt, ...);
  38. #define LogMsg LogMsgDbg
  39. #else
  40. #define LogMsg
  41. #endif // DBG
  42. #include "shfusion.h"
  43. #include "shimdb.h"
  44. //{{AFX_INSERT_LOCATION}}
  45. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  46. #endif // !defined(AFX_STDAFX_H__88E11F15_58D2_477F_9D30_DBF092670E6A__INCLUDED)