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.

91 lines
2.1 KiB

  1. /******************************************************************************
  2. *
  3. * dimapp.h
  4. *
  5. * Copyright (c) 1999, 2000 Microsoft Corporation. All Rights Reserved.
  6. *
  7. * Abstract:
  8. *
  9. * Contents:
  10. *
  11. *****************************************************************************/
  12. #ifndef _DIMAPP_H
  13. #define _DIMAPP_H
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #undef _DLL
  18. #undef _MT
  19. #define _MT
  20. #ifdef UNICODE
  21. #undef _UNICODE
  22. #define _UNICODE
  23. #endif
  24. #ifdef DEBUG
  25. #define _CHECKED
  26. #endif
  27. #include "windows.h"
  28. /*///////////////////////////////////////////////////////////
  29. // Callout Alignment Flags (inserted by a-mday 11-04-1999)
  30. //
  31. // (defines from diconfig\diacpage\cdevicecontrol.h)
  32. //*/
  33. #define CAF_LEFT 1
  34. #define CAF_RIGHT 2
  35. #define CAF_TOP 4
  36. #define CAF_BOTTOM 8
  37. #define CAF_TOPLEFT (CAF_TOP | CAF_LEFT)
  38. #define CAF_TOPRIGHT (CAF_TOP | CAF_RIGHT)
  39. #define CAF_BOTTOMLEFT (CAF_BOTTOM | CAF_LEFT)
  40. #define CAF_BOTTOMRIGHT (CAF_BOTTOM | CAF_RIGHT)
  41. #define DEV_IMAGE_ALIGN_CENTER 0
  42. #define DEV_IMAGE_ALIGN_LEFT CAF_LEFT
  43. #define DEV_IMAGE_ALIGN_RIGHT CAF_RIGHT
  44. #define DEV_IMAGE_ALIGN_TOP CAF_TOP
  45. #define DEV_IMAGE_ALIGN_BOTTOM CAF_BOTTOM
  46. #define DEV_IMAGE_ALIGN_TOPLEFT CAF_TOPLEFT
  47. #define DEV_IMAGE_ALIGN_TOPRIGHT CAF_TOPRIGHT
  48. #define DEV_IMAGE_ALIGN_BOTTOMLEFT CAF_BOTTOMLEFT
  49. #define DEV_IMAGE_ALIGN_BOTTOMRIGHT CAF_BOTTOMRIGHT
  50. STDAPI_(ULONG) DllAddRef(void);
  51. STDAPI_(ULONG) DllRelease(void);
  52. HRESULT Map_New(REFIID riid,LPVOID *ppvOut);
  53. #ifdef __cplusplus
  54. } /* ... extern "C" */
  55. #endif
  56. #ifdef __cplusplus /*make this dissapear in non C++ files (obj.c)*/
  57. #include "tchar.h"
  58. #include <exception>
  59. #ifdef _CHECKED
  60. #define MAP_EXCEPTION(A) MapException(_T(__FILE__),__LINE__,A)
  61. #else
  62. #define MAP_EXCEPTION(A) MapException(A)
  63. #endif
  64. class MapException:public exception
  65. {
  66. HRESULT m_hRes;
  67. public:
  68. HRESULT GetResult(){return m_hRes;};
  69. MapException(
  70. #ifdef _CHECKED
  71. LPCTSTR lpSourceFile,DWORD dwLine,
  72. #endif
  73. HRESULT hRes);
  74. };
  75. #endif
  76. #endif