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.

407 lines
11 KiB

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 6.00.0361 */
  3. /* Compiler settings for ratingsp.idl:
  4. Oicf, W1, Zp8, env=Win32 (32b run)
  5. protocol : dce , ms_ext, c_ext
  6. error checks: allocation ref bounds_check enum stub_data
  7. VC __declspec() decoration level:
  8. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  9. DECLSPEC_UUID(), MIDL_INTERFACE()
  10. */
  11. //@@MIDL_FILE_HEADING( )
  12. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __ratingsp_h__
  27. #define __ratingsp_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __IRatingNotification_FWD_DEFINED__
  33. #define __IRatingNotification_FWD_DEFINED__
  34. typedef interface IRatingNotification IRatingNotification;
  35. #endif /* __IRatingNotification_FWD_DEFINED__ */
  36. #ifndef __ICustomRatingHelper_FWD_DEFINED__
  37. #define __ICustomRatingHelper_FWD_DEFINED__
  38. typedef interface ICustomRatingHelper ICustomRatingHelper;
  39. #endif /* __ICustomRatingHelper_FWD_DEFINED__ */
  40. /* header files for imported files */
  41. #include "oleidl.h"
  42. #include "oaidl.h"
  43. #ifdef __cplusplus
  44. extern "C"{
  45. #endif
  46. void * __RPC_USER MIDL_user_allocate(size_t);
  47. void __RPC_USER MIDL_user_free( void * );
  48. /* interface __MIDL_itf_ratingsp_0000 */
  49. /* [local] */
  50. //=--------------------------------------------------------------------------=
  51. // Ratingsp.h
  52. //=--------------------------------------------------------------------------=
  53. // (C) Copyright 1999 Microsoft Corporation. All Rights Reserved.
  54. //
  55. //Date : August 18, 1999
  56. //DESCRIPTION : private interface definitions between Custom and msrating
  57. //
  58. typedef
  59. enum tagRATING_BLOCKING_SOURCE
  60. { RBS_NO_RATINGS = 0,
  61. RBS_PAGE = RBS_NO_RATINGS + 1,
  62. RBS_RATING_HELPER = RBS_PAGE + 1,
  63. RBS_CUSTOM_RATING_HELPER = RBS_RATING_HELPER + 1,
  64. RBS_ERROR = RBS_CUSTOM_RATING_HELPER + 1
  65. } RATING_BLOCKING_SOURCE;
  66. typedef
  67. enum tagRATING_BLOCKING_METHOD
  68. { RBM_DENY = 0,
  69. RBM_LABEL = RBM_DENY + 1,
  70. RBM_UNINIT = RBM_LABEL + 1,
  71. RBM_ERROR_NOT_IN_CUSTOM_MODE = RBM_UNINIT + 1
  72. } RATING_BLOCKING_METHOD;
  73. typedef struct tagRATINGLEVEL
  74. {
  75. UINT nValue;
  76. LPWSTR pwszValueName;
  77. LPWSTR pwszDescription;
  78. } RATINGLEVEL;
  79. typedef struct tagRATINGCATEGORY
  80. {
  81. LPWSTR pwszCategoryName;
  82. LPWSTR pwszTransmitName;
  83. } RATINGCATEGORY;
  84. typedef struct tagRATINGBLOCKINGCATEGORY
  85. {
  86. LPWSTR pwszCategoryName;
  87. LPWSTR pwszTransmitName;
  88. UINT nValue;
  89. LPWSTR pwszValueName;
  90. } RATINGBLOCKINGCATEGORY;
  91. typedef struct tagRATINGBLOCKINGLABELLIST
  92. {
  93. LPWSTR pwszRatingSystemName;
  94. UINT cBlockingLabels;
  95. RATINGBLOCKINGCATEGORY *paRBLS;
  96. } RATINGBLOCKINGLABELLIST;
  97. typedef struct tagRATINGBLOCKINGINFO
  98. {
  99. LPWSTR pwszDeniedURL;
  100. RATING_BLOCKING_SOURCE rbSource;
  101. RATING_BLOCKING_METHOD rbMethod;
  102. UINT cLabels;
  103. RATINGBLOCKINGLABELLIST *prbLabelList;
  104. LPWSTR pwszRatingHelperName;
  105. LPWSTR pwszRatingHelperReason;
  106. } RATINGBLOCKINGINFO;
  107. typedef struct tagRATINGCATEGORYSETTING
  108. {
  109. LPSTR pszValueName;
  110. UINT nValue;
  111. } RATINGCATEGORYSETTING;
  112. typedef struct tagRATINGSYSTEMSETTING
  113. {
  114. LPSTR pszRatingSystemName;
  115. UINT cCategories;
  116. RATINGCATEGORYSETTING *paRCS;
  117. } RATINGSYSTEMSETTING;
  118. extern RPC_IF_HANDLE __MIDL_itf_ratingsp_0000_v0_0_c_ifspec;
  119. extern RPC_IF_HANDLE __MIDL_itf_ratingsp_0000_v0_0_s_ifspec;
  120. #ifndef __IRatingNotification_INTERFACE_DEFINED__
  121. #define __IRatingNotification_INTERFACE_DEFINED__
  122. /* interface IRatingNotification */
  123. /* [unique][uuid][object] */
  124. EXTERN_C const IID IID_IRatingNotification;
  125. #if defined(__cplusplus) && !defined(CINTERFACE)
  126. MIDL_INTERFACE("639447BD-B2D3-44b9-9FB0-510F23CB45E4")
  127. IRatingNotification : public IUnknown
  128. {
  129. public:
  130. virtual HRESULT STDMETHODCALLTYPE AccessDeniedNotify(
  131. /* [in] */ RATINGBLOCKINGINFO *rbInfo) = 0;
  132. virtual HRESULT STDMETHODCALLTYPE IsRatingsEnabled( void) = 0;
  133. };
  134. #else /* C style interface */
  135. typedef struct IRatingNotificationVtbl
  136. {
  137. BEGIN_INTERFACE
  138. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  139. IRatingNotification * This,
  140. /* [in] */ REFIID riid,
  141. /* [iid_is][out] */ void **ppvObject);
  142. ULONG ( STDMETHODCALLTYPE *AddRef )(
  143. IRatingNotification * This);
  144. ULONG ( STDMETHODCALLTYPE *Release )(
  145. IRatingNotification * This);
  146. HRESULT ( STDMETHODCALLTYPE *AccessDeniedNotify )(
  147. IRatingNotification * This,
  148. /* [in] */ RATINGBLOCKINGINFO *rbInfo);
  149. HRESULT ( STDMETHODCALLTYPE *IsRatingsEnabled )(
  150. IRatingNotification * This);
  151. END_INTERFACE
  152. } IRatingNotificationVtbl;
  153. interface IRatingNotification
  154. {
  155. CONST_VTBL struct IRatingNotificationVtbl *lpVtbl;
  156. };
  157. #ifdef COBJMACROS
  158. #define IRatingNotification_QueryInterface(This,riid,ppvObject) \
  159. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  160. #define IRatingNotification_AddRef(This) \
  161. (This)->lpVtbl -> AddRef(This)
  162. #define IRatingNotification_Release(This) \
  163. (This)->lpVtbl -> Release(This)
  164. #define IRatingNotification_AccessDeniedNotify(This,rbInfo) \
  165. (This)->lpVtbl -> AccessDeniedNotify(This,rbInfo)
  166. #define IRatingNotification_IsRatingsEnabled(This) \
  167. (This)->lpVtbl -> IsRatingsEnabled(This)
  168. #endif /* COBJMACROS */
  169. #endif /* C style interface */
  170. HRESULT STDMETHODCALLTYPE IRatingNotification_AccessDeniedNotify_Proxy(
  171. IRatingNotification * This,
  172. /* [in] */ RATINGBLOCKINGINFO *rbInfo);
  173. void __RPC_STUB IRatingNotification_AccessDeniedNotify_Stub(
  174. IRpcStubBuffer *This,
  175. IRpcChannelBuffer *_pRpcChannelBuffer,
  176. PRPC_MESSAGE _pRpcMessage,
  177. DWORD *_pdwStubPhase);
  178. HRESULT STDMETHODCALLTYPE IRatingNotification_IsRatingsEnabled_Proxy(
  179. IRatingNotification * This);
  180. void __RPC_STUB IRatingNotification_IsRatingsEnabled_Stub(
  181. IRpcStubBuffer *This,
  182. IRpcChannelBuffer *_pRpcChannelBuffer,
  183. PRPC_MESSAGE _pRpcMessage,
  184. DWORD *_pdwStubPhase);
  185. #endif /* __IRatingNotification_INTERFACE_DEFINED__ */
  186. /* interface __MIDL_itf_ratingsp_0140 */
  187. /* [local] */
  188. #define SID_SRatingNotification IID_IRatingNotification
  189. extern RPC_IF_HANDLE __MIDL_itf_ratingsp_0140_v0_0_c_ifspec;
  190. extern RPC_IF_HANDLE __MIDL_itf_ratingsp_0140_v0_0_s_ifspec;
  191. #ifndef __ICustomRatingHelper_INTERFACE_DEFINED__
  192. #define __ICustomRatingHelper_INTERFACE_DEFINED__
  193. /* interface ICustomRatingHelper */
  194. /* [local][unique][uuid][object] */
  195. EXTERN_C const IID IID_ICustomRatingHelper;
  196. #if defined(__cplusplus) && !defined(CINTERFACE)
  197. MIDL_INTERFACE("D0D9842D-E211-4b2c-88DC-BC729342DFCB")
  198. ICustomRatingHelper : public IUnknown
  199. {
  200. public:
  201. virtual HRESULT STDMETHODCALLTYPE ObtainCustomRating(
  202. /* [in] */ LPCSTR pszTargetUrl,
  203. /* [in] */ HANDLE hAbortEvent,
  204. /* [in] */ IMalloc *pAllocator,
  205. /* [out] */ LPSTR *ppRatingOut,
  206. /* [out] */ LPSTR *ppRatingName,
  207. /* [out] */ LPSTR *ppRatingReason) = 0;
  208. };
  209. #else /* C style interface */
  210. typedef struct ICustomRatingHelperVtbl
  211. {
  212. BEGIN_INTERFACE
  213. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  214. ICustomRatingHelper * This,
  215. /* [in] */ REFIID riid,
  216. /* [iid_is][out] */ void **ppvObject);
  217. ULONG ( STDMETHODCALLTYPE *AddRef )(
  218. ICustomRatingHelper * This);
  219. ULONG ( STDMETHODCALLTYPE *Release )(
  220. ICustomRatingHelper * This);
  221. HRESULT ( STDMETHODCALLTYPE *ObtainCustomRating )(
  222. ICustomRatingHelper * This,
  223. /* [in] */ LPCSTR pszTargetUrl,
  224. /* [in] */ HANDLE hAbortEvent,
  225. /* [in] */ IMalloc *pAllocator,
  226. /* [out] */ LPSTR *ppRatingOut,
  227. /* [out] */ LPSTR *ppRatingName,
  228. /* [out] */ LPSTR *ppRatingReason);
  229. END_INTERFACE
  230. } ICustomRatingHelperVtbl;
  231. interface ICustomRatingHelper
  232. {
  233. CONST_VTBL struct ICustomRatingHelperVtbl *lpVtbl;
  234. };
  235. #ifdef COBJMACROS
  236. #define ICustomRatingHelper_QueryInterface(This,riid,ppvObject) \
  237. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  238. #define ICustomRatingHelper_AddRef(This) \
  239. (This)->lpVtbl -> AddRef(This)
  240. #define ICustomRatingHelper_Release(This) \
  241. (This)->lpVtbl -> Release(This)
  242. #define ICustomRatingHelper_ObtainCustomRating(This,pszTargetUrl,hAbortEvent,pAllocator,ppRatingOut,ppRatingName,ppRatingReason) \
  243. (This)->lpVtbl -> ObtainCustomRating(This,pszTargetUrl,hAbortEvent,pAllocator,ppRatingOut,ppRatingName,ppRatingReason)
  244. #endif /* COBJMACROS */
  245. #endif /* C style interface */
  246. HRESULT STDMETHODCALLTYPE ICustomRatingHelper_ObtainCustomRating_Proxy(
  247. ICustomRatingHelper * This,
  248. /* [in] */ LPCSTR pszTargetUrl,
  249. /* [in] */ HANDLE hAbortEvent,
  250. /* [in] */ IMalloc *pAllocator,
  251. /* [out] */ LPSTR *ppRatingOut,
  252. /* [out] */ LPSTR *ppRatingName,
  253. /* [out] */ LPSTR *ppRatingReason);
  254. void __RPC_STUB ICustomRatingHelper_ObtainCustomRating_Stub(
  255. IRpcStubBuffer *This,
  256. IRpcChannelBuffer *_pRpcChannelBuffer,
  257. PRPC_MESSAGE _pRpcMessage,
  258. DWORD *_pdwStubPhase);
  259. #endif /* __ICustomRatingHelper_INTERFACE_DEFINED__ */
  260. /* interface __MIDL_itf_ratingsp_0141 */
  261. /* [local] */
  262. STDAPI RatingCustomInit(BOOL bInit = TRUE);
  263. STDAPI RatingCustomAddRatingSystem(LPSTR pszRatingSystemBuffer, UINT nBufferSize);
  264. STDAPI RatingCustomSetUserOptions(RATINGSYSTEMSETTING* pRSSettings, UINT cSettings);
  265. STDAPI RatingCustomAddRatingHelper(LPCSTR pszLibraryName, CLSID clsid, DWORD dwSort);
  266. STDAPI RatingCustomRemoveRatingHelper(CLSID clsid);
  267. STDAPI RatingCustomCrackData(LPCSTR pszUsername, void* pvRatingDetails, RATINGBLOCKINGINFO** pprbInfo);
  268. STDAPI RatingCustomDeleteCrackedData(RATINGBLOCKINGINFO* prblInfo);
  269. STDAPI RatingCustomSetDefaultBureau(LPCSTR pszRatingBureau);
  270. extern RPC_IF_HANDLE __MIDL_itf_ratingsp_0141_v0_0_c_ifspec;
  271. extern RPC_IF_HANDLE __MIDL_itf_ratingsp_0141_v0_0_s_ifspec;
  272. /* Additional Prototypes for ALL interfaces */
  273. /* end of Additional Prototypes */
  274. #ifdef __cplusplus
  275. }
  276. #endif
  277. #endif