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.

157 lines
7.1 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1997
  5. //
  6. // File: iis2.h
  7. //
  8. // Contents: Macros for ADSI IIS methods
  9. //
  10. // History: 25-Feb-97 SophiaC Created.
  11. //
  12. //----------------------------------------------------------------------------
  13. #define IIS_CLSID_IISNamespace d6bfa35e-89f2-11d0-8527-00c04fd8d503
  14. #define IIS_LIBIID_IISOle 49d704a0-89f7-11d0-8527-00c04fd8d503
  15. #define IIS_CLSID_IISProvider d88966de-89f2-11d0-8527-00c04fd8d503
  16. #define IIS_CLSID_MimeType 9036B028-A780-11d0-9B3D-0080C710EF95
  17. #define IIS_IID_IISMimeType 9036B027-A780-11d0-9B3D-0080C710EF95
  18. #define IIS_CLSID_IPSecurity F3287520-BBA3-11d0-9BDC-00A0C922E703
  19. #define IIS_IID_IISIPSecurity F3287521-BBA3-11d0-9BDC-00A0C922E703
  20. #define IIS_CLSID_PropertyAttribute FD2280A8-51A4-11D2-A601-3078302C2030
  21. #define IIS_IID_IISPropertyAttribute 50E21930-A247-11D1-B79C-00A0C922E703
  22. #define IIS_IID_IISBaseObject 4B42E390-0E96-11d1-9C3F-00A0C922E703
  23. #define IIS_IID_IISSchemaObject B6865A9C-3F64-11D2-A600-00A0C922E703
  24. #define PROPERTY_RO(name,type, prid) \
  25. [propget, id(prid)] \
  26. HRESULT name([out, retval] type * retval);
  27. #define PROPERTY_LONG_RW(name, prid) \
  28. [propget, id(prid)] \
  29. HRESULT name([out, retval] long * retval); \
  30. \
  31. [propput, id(prid)] \
  32. HRESULT name([in] long ln##name);
  33. #define PROPERTY_LONG_RO(name, prid) \
  34. [propget, id(prid)] \
  35. HRESULT name([out, retval] long * retval);
  36. #define PROPERTY_BSTR_RW(name, prid) \
  37. [propget, id(prid)] \
  38. HRESULT name([out, retval] BSTR * retval); \
  39. \
  40. [propput, id(prid)] \
  41. HRESULT name([in] BSTR bstr##name);
  42. #define PROPERTY_BSTR_RO(name, prid) \
  43. [propget, id(prid)] \
  44. HRESULT name([out, retval] BSTR * retval);
  45. #define PROPERTY_VARIANT_BOOL_RW(name, prid) \
  46. [propget, id(prid)] \
  47. HRESULT name([out, retval] VARIANT_BOOL * retval); \
  48. \
  49. [propput, id(prid)] \
  50. HRESULT name([in] VARIANT_BOOL f##name);
  51. #define PROPERTY_VARIANT_BOOL_RO(name, prid) \
  52. [propget, id(prid)] \
  53. HRESULT name([out, retval] VARIANT_BOOL * retval);
  54. #define PROPERTY_VARIANT_RW(name, prid) \
  55. [propget, id(prid)] \
  56. HRESULT name([out, retval] VARIANT * retval); \
  57. \
  58. [propput, id(prid)] \
  59. HRESULT name([in] VARIANT v##name);
  60. #define PROPERTY_VARIANT_RO(name, prid) \
  61. [propget, id(prid)] \
  62. HRESULT name([out, retval] VARIANT * retval); \
  63. #define PROPERTY_DATE_RW(name, prid) \
  64. [propget, id(prid)] \
  65. HRESULT name([out, retval] DATE * retval); \
  66. \
  67. [propput, id(prid)] \
  68. HRESULT name([in] DATE da##name);
  69. #define PROPERTY_DATE_RO(name, prid) \
  70. [propget, id(prid)] \
  71. HRESULT name([out, retval] DATE * retval);
  72. #define PROPERTY_DISPATCH_RW(name, prid) \
  73. [propget, id(prid)] \
  74. HRESULT name([out, retval] IDispatch ** retval); \
  75. \
  76. [propput, id(prid)] \
  77. HRESULT name([in] IDispatch * p##name);
  78. #define DECLARE_IISMimeType_METHODS \
  79. STDMETHOD(get_MimeType)(THIS_ BSTR FAR* retval); \
  80. STDMETHOD(put_MimeType)(THIS_ BSTR bstrMimeType); \
  81. STDMETHOD(get_Extension)(THIS_ BSTR FAR* retval); \
  82. STDMETHOD(put_Extension)(THIS_ BSTR bstrExtension);
  83. #define DECLARE_IISIPSecurity_METHODS \
  84. STDMETHOD(get_IPDeny)(THIS_ VARIANT FAR* retval); \
  85. STDMETHOD(put_IPDeny)(THIS_ VARIANT pVarIPDeny); \
  86. STDMETHOD(get_IPGrant)(THIS_ VARIANT FAR* retval); \
  87. STDMETHOD(put_IPGrant)(THIS_ VARIANT pVarIPGrant); \
  88. STDMETHOD(get_DomainDeny)(THIS_ VARIANT FAR* retval); \
  89. STDMETHOD(put_DomainDeny)(THIS_ VARIANT pVarDomainDeny); \
  90. STDMETHOD(get_DomainGrant)(THIS_ VARIANT FAR* retval); \
  91. STDMETHOD(put_DomainGrant)(THIS_ VARIANT pVarDomainGrant); \
  92. STDMETHOD(get_GrantByDefault)(THIS_ VARIANT_BOOL FAR* retval); \
  93. STDMETHOD(put_GrantByDefault)(THIS_ VARIANT_BOOL bGrantByDefault);
  94. #define DECLARE_IISBaseObject_METHODS \
  95. STDMETHOD(GetDataPaths) ( \
  96. THIS_ \
  97. BSTR bstrName, \
  98. LONG lnAttribute, \
  99. VARIANT FAR* pvPaths); \
  100. STDMETHOD(GetPropertyAttribObj) ( \
  101. THIS_ \
  102. BSTR bstrName, \
  103. IDispatch **ppObject);
  104. #define DECLARE_IISSchemaObject_METHODS \
  105. STDMETHOD(GetSchemaPropertyAttributes) ( \
  106. THIS_ \
  107. BSTR bstrName, \
  108. IDispatch **ppObject); \
  109. STDMETHOD(PutSchemaPropertyAttributes) ( \
  110. THIS_ \
  111. IDispatch *pObject);
  112. #define DECLARE_IISPropertyAttribute_METHODS \
  113. STDMETHOD(get_PropName)(THIS_ BSTR FAR* retval); \
  114. STDMETHOD(get_MetaId)(THIS_ LONG FAR* retval); \
  115. STDMETHOD(put_MetaId)(THIS_ LONG lMetaId); \
  116. STDMETHOD(get_UserType)(THIS_ LONG FAR* retval); \
  117. STDMETHOD(put_UserType)(THIS_ LONG lUserType); \
  118. STDMETHOD(get_AllAttributes)(THIS_ LONG FAR* retval); \
  119. STDMETHOD(get_Inherit)(THIS_ VARIANT_BOOL FAR* retval); \
  120. STDMETHOD(put_Inherit)(THIS_ VARIANT_BOOL bInherit); \
  121. STDMETHOD(get_PartialPath)(THIS_ VARIANT_BOOL FAR* retval); \
  122. STDMETHOD(put_PartialPath)(THIS_ VARIANT_BOOL bPartialPath); \
  123. STDMETHOD(get_Secure)(THIS_ VARIANT_BOOL FAR* retval); \
  124. STDMETHOD(put_Secure)(THIS_ VARIANT_BOOL bSecure); \
  125. STDMETHOD(get_Reference)(THIS_ VARIANT_BOOL FAR* retval); \
  126. STDMETHOD(put_Reference)(THIS_ VARIANT_BOOL bReference); \
  127. STDMETHOD(get_Volatile)(THIS_ VARIANT_BOOL FAR* retval); \
  128. STDMETHOD(put_Volatile)(THIS_ VARIANT_BOOL bVolatile); \
  129. STDMETHOD(get_Isinherit)(THIS_ VARIANT_BOOL FAR* retval); \
  130. STDMETHOD(put_Isinherit)(THIS_ VARIANT_BOOL bIsinherit); \
  131. STDMETHOD(get_InsertPath)(THIS_ VARIANT_BOOL FAR* retval); \
  132. STDMETHOD(put_InsertPath)(THIS_ VARIANT_BOOL bInsertPath); \
  133. STDMETHOD(get_Default)(THIS_ VARIANT FAR* retval); \
  134. STDMETHOD(put_Default)(THIS_ VARIANT VarDefaults);