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.

96 lines
3.1 KiB

  1. BOOL MatchLocale(DWORD dwReqLocale, DWORD dwPkgLocale);
  2. BOOL MatchPlatform(
  3. CSPLATFORM *pReqPlatform,
  4. CSPLATFORM *pPkgPlatform,
  5. BOOL fExcludeX86OnWin64,
  6. BOOL fLegacy);
  7. //---------------------------------------------------------------
  8. // Query
  9. //----------------------------------------------------------------
  10. HRESULT FetchInstallData(HANDLE hADs,
  11. ADS_SEARCH_HANDLE hADsSearchHandle,
  12. QUERYCONTEXT *pQryContext,
  13. uCLSSPEC *pclsspec,
  14. LPOLESTR pszFileExt,
  15. ULONG cRows,
  16. ULONG *pcRowsFetched,
  17. PACKAGEDISPINFO *pPackageInfo,
  18. UINT *pdwPriority,
  19. BOOL OnDemandInstallOnly,
  20. GUID* pGpoId,
  21. WCHAR* wszGpoPath
  22. );
  23. HRESULT FetchPackageInfo(HANDLE hADs,
  24. ADS_SEARCH_HANDLE hADsSearchHandle,
  25. DWORD dwFlags,
  26. DWORD dwQueryFlags,
  27. CSPLATFORM *pPlatform,
  28. ULONG cRows,
  29. ULONG *pcRowsFetched,
  30. PACKAGEDISPINFO *pPackageInfo,
  31. BOOL *fFirst,
  32. GUID* pGpoId,
  33. WCHAR* wszGpoPath,
  34. PRSOPTOKEN pRsopUserToken
  35. );
  36. HRESULT FetchCategory(HANDLE hADs,
  37. ADS_SEARCH_HANDLE hADsSearchHandle,
  38. APPCATEGORYINFOLIST *pCategoryInfoList,
  39. LCID Locale
  40. );
  41. void GetAttributesFromPackageFlags(DWORD dwPackageFlags,
  42. UINT* pUILevel,
  43. CLASSPATHTYPE* pClassType);
  44. void GetCurrentUsn(LPOLESTR szStoreUsn);
  45. //
  46. // For category retrieval, we define the alloc size
  47. // smaller in checked builds in order to force
  48. // more re-allocs and catch bugs in the retrieval logic
  49. //
  50. #if defined(DBG)
  51. #define CATEGORY_RETRIEVAL_ALLOC_SIZE 2
  52. #else // defined(DBG)
  53. #define CATEGORY_RETRIEVAL_ALLOC_SIZE 64
  54. #endif // defined(DBG)
  55. HRESULT GetRsopSpecificAttributes(
  56. HANDLE hAds,
  57. ADS_SEARCH_HANDLE hSearchHandle,
  58. PRSOPTOKEN pRsopUserToken,
  59. PACKAGEDISPINFO* pPackageInfo,
  60. BOOL* pbUserHasAccess );
  61. HRESULT GetSecurityDescriptor(
  62. HANDLE hAds,
  63. ADS_SEARCH_HANDLE hSearchHandle,
  64. PRSOPTOKEN pRsopUserToken,
  65. PACKAGEDISPINFO* pPackageInfo,
  66. BOOL* pbUserHasAccess);
  67. HRESULT GetCategories(
  68. HANDLE hAds,
  69. ADS_SEARCH_HANDLE hSearchHandle,
  70. PACKAGEDISPINFO* pPackageInfo);