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.

101 lines
2.2 KiB

  1. #include "shellpch.h"
  2. #pragma hdrstop
  3. #include <ratings.h>
  4. #undef STDAPI
  5. #define STDAPI HRESULT STDAPICALLTYPE
  6. static
  7. STDAPI
  8. RatingObtainQuery(LPCSTR pszTargetUrl,
  9. DWORD dwUserData,
  10. void (*fCallback)(DWORD dwUserData,
  11. HRESULT hr,
  12. LPCSTR pszRating,
  13. void *lpvRatingDetails),
  14. HANDLE *phRatingObtainQuery)
  15. {
  16. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  17. }
  18. static
  19. STDAPI
  20. RatingEnabledQuery()
  21. {
  22. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  23. }
  24. static
  25. STDAPI
  26. RatingFreeDetails(void *pRatingDetails)
  27. {
  28. return NOERROR;
  29. }
  30. static
  31. STDAPI
  32. RatingAccessDeniedDialog2(HWND hDlg,
  33. LPCSTR pszUsername,
  34. void *pRatingDetails)
  35. {
  36. return S_FALSE;
  37. }
  38. static
  39. STDAPI
  40. RatingCustomDeleteCrackedData(struct RATINGBLOCKINGINFO* prblInfo)
  41. {
  42. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  43. }
  44. static
  45. STDAPI
  46. RatingCustomCrackData(LPCSTR pszUsername,
  47. void* pvRatingDetails,
  48. struct RATINGBLOCKINGINFO** pprbInfo)
  49. {
  50. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  51. }
  52. static
  53. STDAPI
  54. RatingCheckUserAccess(LPCSTR pszUsername,
  55. LPCSTR pszURL,
  56. LPCSTR pszRatingInfo,
  57. LPBYTE pData,
  58. DWORD cbData,
  59. void **ppRatingDetails)
  60. {
  61. if (ppRatingDetails)
  62. {
  63. *ppRatingDetails = NULL;
  64. }
  65. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  66. }
  67. static
  68. STDAPI
  69. RatingObtainCancel(HANDLE hRatingObtainQuery)
  70. {
  71. return E_HANDLE;
  72. }
  73. //
  74. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  75. //
  76. DEFINE_PROCNAME_ENTRIES(msrating)
  77. {
  78. DLPENTRY(RatingAccessDeniedDialog2)
  79. DLPENTRY(RatingCheckUserAccess)
  80. DLPENTRY(RatingCustomCrackData)
  81. DLPENTRY(RatingCustomDeleteCrackedData)
  82. DLPENTRY(RatingEnabledQuery)
  83. DLPENTRY(RatingFreeDetails)
  84. DLPENTRY(RatingObtainCancel)
  85. DLPENTRY(RatingObtainQuery)
  86. };
  87. DEFINE_PROCNAME_MAP(msrating)