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.

141 lines
4.0 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1999.
  5. //
  6. // Contents: private interface definitions between Custom and msrating
  7. //
  8. //----------------------------------------------------------------------------
  9. cpp_quote("//=--------------------------------------------------------------------------=")
  10. cpp_quote("// Ratingsp.h")
  11. cpp_quote("//=--------------------------------------------------------------------------=")
  12. cpp_quote("// (C) Copyright 1999 Microsoft Corporation. All Rights Reserved.")
  13. cpp_quote("//")
  14. cpp_quote("//Date : August 18, 1999")
  15. cpp_quote("//DESCRIPTION : private interface definitions between Custom and msrating")
  16. cpp_quote("//")
  17. #ifndef DO_NO_IMPORTS
  18. import "oleidl.idl";
  19. import "oaidl.idl";
  20. #endif
  21. typedef enum tagRATING_BLOCKING_SOURCE
  22. {
  23. RBS_NO_RATINGS, // No rating where found
  24. RBS_PAGE, // denied by page label
  25. RBS_RATING_HELPER, // denied by a rating helper
  26. RBS_CUSTOM_RATING_HELPER,
  27. RBS_ERROR
  28. } RATING_BLOCKING_SOURCE;
  29. typedef enum tagRATING_BLOCKING_METHOD
  30. {
  31. RBM_DENY,
  32. RBM_LABEL,
  33. RBM_UNINIT,
  34. RBM_ERROR_NOT_IN_CUSTOM_MODE,
  35. } RATING_BLOCKING_METHOD;
  36. typedef struct tagRATINGLEVEL
  37. {
  38. UINT nValue;
  39. LPWSTR pwszValueName;
  40. LPWSTR pwszDescription;
  41. } RATINGLEVEL;
  42. typedef struct tagRATINGCATEGORY
  43. {
  44. LPWSTR pwszCategoryName;
  45. LPWSTR pwszTransmitName;
  46. } RATINGCATEGORY;
  47. typedef struct tagRATINGBLOCKINGCATEGORY
  48. {
  49. LPWSTR pwszCategoryName;
  50. LPWSTR pwszTransmitName;
  51. UINT nValue;
  52. LPWSTR pwszValueName;
  53. } RATINGBLOCKINGCATEGORY;
  54. typedef struct tagRATINGBLOCKINGLABELLIST
  55. {
  56. LPWSTR pwszRatingSystemName;
  57. UINT cBlockingLabels;
  58. RATINGBLOCKINGCATEGORY* paRBLS;
  59. } RATINGBLOCKINGLABELLIST;
  60. typedef struct tagRATINGBLOCKINGINFO
  61. {
  62. LPWSTR pwszDeniedURL;
  63. RATING_BLOCKING_SOURCE rbSource;
  64. RATING_BLOCKING_METHOD rbMethod;
  65. UINT cLabels;
  66. RATINGBLOCKINGLABELLIST* prbLabelList;
  67. LPWSTR pwszRatingHelperName;
  68. LPWSTR pwszRatingHelperReason;
  69. } RATINGBLOCKINGINFO;
  70. typedef struct tagRATINGCATEGORYSETTING
  71. {
  72. LPSTR pszValueName;
  73. UINT nValue;
  74. } RATINGCATEGORYSETTING;
  75. typedef struct tagRATINGSYSTEMSETTING
  76. {
  77. LPSTR pszRatingSystemName;
  78. UINT cCategories;
  79. RATINGCATEGORYSETTING* paRCS;
  80. } RATINGSYSTEMSETTING;
  81. interface IRatingNotification;
  82. interface ICustomRatingHelper;
  83. [
  84. object,
  85. uuid(639447BD-B2D3-44b9-9FB0-510F23CB45E4),
  86. pointer_default(unique)
  87. ]
  88. interface IRatingNotification : IUnknown
  89. {
  90. HRESULT AccessDeniedNotify( [in] RATINGBLOCKINGINFO* rbInfo );
  91. HRESULT IsRatingsEnabled();
  92. }
  93. cpp_quote("")
  94. cpp_quote("#define SID_SRatingNotification IID_IRatingNotification")
  95. cpp_quote("")
  96. [
  97. object,
  98. uuid(D0D9842D-E211-4b2c-88DC-BC729342DFCB),
  99. pointer_default(unique),
  100. local
  101. ]
  102. interface ICustomRatingHelper : IUnknown
  103. {
  104. HRESULT ObtainCustomRating( [in] LPCSTR pszTargetUrl,
  105. [in] HANDLE hAbortEvent,
  106. [in] IMalloc *pAllocator,
  107. [out] LPSTR *ppRatingOut,
  108. [out] LPSTR *ppRatingName,
  109. [out] LPSTR *ppRatingReason);
  110. }
  111. cpp_quote("STDAPI RatingCustomInit(BOOL bInit = TRUE);")
  112. cpp_quote("STDAPI RatingCustomAddRatingSystem(LPSTR pszRatingSystemBuffer, UINT nBufferSize);")
  113. cpp_quote("STDAPI RatingCustomSetUserOptions(RATINGSYSTEMSETTING* pRSSettings, UINT cSettings);")
  114. cpp_quote("STDAPI RatingCustomAddRatingHelper(LPCSTR pszLibraryName, CLSID clsid, DWORD dwSort);")
  115. cpp_quote("STDAPI RatingCustomRemoveRatingHelper(CLSID clsid);")
  116. cpp_quote("STDAPI RatingCustomCrackData(LPCSTR pszUsername, void* pvRatingDetails, RATINGBLOCKINGINFO** pprbInfo);")
  117. cpp_quote("STDAPI RatingCustomDeleteCrackedData(RATINGBLOCKINGINFO* prblInfo);")
  118. cpp_quote("STDAPI RatingCustomSetDefaultBureau(LPCSTR pszRatingBureau);")