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.

119 lines
4.9 KiB

  1. #define PUT_PROPERTY_LONG(this, Property) \
  2. RRETURN(put_LONG_Property( \
  3. (IADs *)this, \
  4. TEXT(#Property), \
  5. l##Property \
  6. ))
  7. #define GET_PROPERTY_LONG(this, Property) \
  8. RRETURN(get_LONG_Property( \
  9. (IADs *)this, \
  10. TEXT(#Property), \
  11. retval \
  12. ))
  13. #define PUT_PROPERTY_BSTR(this, Property) \
  14. RRETURN(put_BSTR_Property( \
  15. (IADs *)this, \
  16. TEXT(#Property), \
  17. bstr##Property \
  18. ))
  19. #define GET_PROPERTY_BSTR(this, Property) \
  20. RRETURN(get_BSTR_Property( \
  21. (IADs *)this, \
  22. TEXT(#Property), \
  23. retval \
  24. ))
  25. #define PUT_PROPERTY_FILETIME(this, Property) \
  26. HRESULT tmphr; \
  27. tmphr = put_FILETIME_Property( \
  28. (IADs *)this, \
  29. TEXT(#Property), \
  30. da##Property \
  31. ); \
  32. RRETURN_EXP_IF_ERR(tmphr);
  33. #define GET_PROPERTY_FILETIME(this, Property) \
  34. HRESULT tmphr; \
  35. tmphr = get_FILETIME_Property( \
  36. (IADs *)this, \
  37. TEXT(#Property), \
  38. retval \
  39. ); \
  40. RRETURN_EXP_IF_ERR(tmphr);
  41. #define PUT_PROPERTY_VARIANT_BOOL(this, Property) \
  42. RRETURN(put_VARIANT_BOOL_Property( \
  43. (IADs *)this, \
  44. TEXT(#Property), \
  45. f##Property\
  46. ))
  47. #define GET_PROPERTY_VARIANT_BOOL(this, Property) \
  48. RRETURN(get_VARIANT_BOOL_Property( \
  49. (IADs *)this, \
  50. TEXT(#Property), \
  51. retval \
  52. ))
  53. #define PUT_PROPERTY_DATE(this, Property) \
  54. RRETURN(put_DATE_Property( \
  55. (IADs *)this, \
  56. TEXT(#Property), \
  57. da##Property \
  58. ))
  59. #define GET_PROPERTY_DATE(this, Property) \
  60. RRETURN(get_DATE_Property( \
  61. (IADs *)this, \
  62. TEXT(#Property), \
  63. retval \
  64. ))
  65. #define PUT_PROPERTY_LONGDATE(this, Property) \
  66. RRETURN(put_DATE_Property_ToLong( \
  67. (IADs *)this, \
  68. TEXT(#Property), \
  69. da##Property \
  70. ))
  71. #define GET_PROPERTY_LONGDATE(this, Property) \
  72. RRETURN(get_DATE_Property_FromLong( \
  73. (IADs *)this, \
  74. TEXT(#Property), \
  75. retval \
  76. ))
  77. #define PUT_PROPERTY_VARIANT(this, Property) \
  78. RRETURN(put_VARIANT_Property( \
  79. (IADs *)this, \
  80. TEXT(#Property), \
  81. v##Property \
  82. ))
  83. #define GET_PROPERTY_VARIANT(this, Property) \
  84. RRETURN(get_VARIANT_Property( \
  85. (IADs *)this, \
  86. TEXT(#Property), \
  87. retval \
  88. ))
  89. #define PUT_PROPERTY_BSTRARRAY(this, Property) \
  90. RRETURN(put_BSTRARRAY_Property( \
  91. (IADs *)this, \
  92. TEXT(#Property), \
  93. v##Property \
  94. ))
  95. #define GET_PROPERTY_BSTRARRAY(this, Property) \
  96. RRETURN(get_BSTRARRAY_Property( \
  97. (IADs *)this, \
  98. TEXT(#Property), \
  99. retval \
  100. ))