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.

85 lines
3.4 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995
  5. //
  6. // File: fsmacro.h
  7. //
  8. // Contents: Macros for adsi put/get methods
  9. //
  10. // History: 21-04-97 sophiac Created.
  11. //
  12. //----------------------------------------------------------------------------
  13. #define PUT_PROPERTY_LONG(this, Property) \
  14. RRETURN(put_LONG_Property( \
  15. (IADs *)this, \
  16. TEXT(#Property), \
  17. l##Property \
  18. ))
  19. #define GET_PROPERTY_LONG(this, Property) \
  20. RRETURN(get_LONG_Property( \
  21. (IADs *)this, \
  22. TEXT(#Property), \
  23. retval \
  24. ))
  25. #define PUT_PROPERTY_BSTR(this, Property) \
  26. RRETURN(put_BSTR_Property( \
  27. (IADs *)this, \
  28. TEXT(#Property), \
  29. bstr##Property \
  30. ))
  31. #define GET_PROPERTY_BSTR(this, Property) \
  32. RRETURN(get_BSTR_Property( \
  33. (IADs *)this, \
  34. TEXT(#Property), \
  35. retval \
  36. ))
  37. #define PUT_PROPERTY_VARIANT_BOOL(this, Property) \
  38. RRETURN(put_VARIANT_BOOL_Property( \
  39. (IADs *)this, \
  40. TEXT(#Property), \
  41. f##Property\
  42. ))
  43. #define GET_PROPERTY_VARIANT_BOOL(this, Property) \
  44. RRETURN(get_VARIANT_BOOL_Property( \
  45. (IADs *)this, \
  46. TEXT(#Property), \
  47. retval \
  48. ))
  49. #define PUT_PROPERTY_DATE(this, Property) \
  50. RRETURN(put_DATE_Property( \
  51. (IADs *)this, \
  52. TEXT(#Property), \
  53. da##Property \
  54. ))
  55. #define GET_PROPERTY_DATE(this, Property) \
  56. RRETURN(get_DATE_Property( \
  57. (IADs *)this, \
  58. TEXT(#Property), \
  59. retval \
  60. ))
  61. #define PUT_PROPERTY_VARIANT(this, Property) \
  62. RRETURN(put_VARIANT_Property( \
  63. (IADs *)this, \
  64. TEXT(#Property), \
  65. v##Property \
  66. ))
  67. #define GET_PROPERTY_VARIANT(this, Property) \
  68. RRETURN(get_VARIANT_Property( \
  69. (IADs *)this, \
  70. TEXT(#Property), \
  71. retval \
  72. ))