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.

43 lines
2.4 KiB

  1. #ifndef __COMCATEX_H__
  2. #define __COMCATEX_H__
  3. #include <comcat.h>
  4. //-------------------------------------------------------------------------//
  5. // Retrieves cache-aware enumerator over classes which require or
  6. // implement the specified component catagory(ies).
  7. // See docs on ICatInformation::EnumClassesOfCategories() for more information
  8. // on arguments and usage.
  9. STDMETHODIMP SHEnumClassesOfCategories(
  10. ULONG cImplemented, //Number of category IDs in the rgcatidImpl array
  11. CATID rgcatidImpl[], //Array of category identifiers
  12. ULONG cRequired, //Number of category IDs in the rgcatidReq array
  13. CATID rgcatidReq[], //Array of category identifiers
  14. IEnumGUID** ppenumGUID ) ;//Address to receive a pointer to an IEnumGUID interface
  15. //-------------------------------------------------------------------------//
  16. // Determines whether a cache exists for the indicated CATID.
  17. // If bImplementing is TRUE, the function checks for a cache of
  18. // implementing classes; otherwise the function checks for a cache of
  19. // requiring classes. Returns S_OK if the cache exists, S_FALSE if
  20. // it does not exist, or an error indicating a failure occurred.
  21. STDMETHODIMP SHDoesComCatCacheExist( REFCATID refcatid, BOOL bImplementing ) ;
  22. //-------------------------------------------------------------------------//
  23. // Caches implementing and/or requiring classes for the specified categories
  24. // See docs on ICatInformation::EnumClassesOfCategories() for more information
  25. // on arguments.
  26. STDMETHODIMP SHWriteClassesOfCategories(
  27. ULONG cImplemented, //Number of category IDs in the rgcatidImpl array
  28. CATID rgcatidImpl[], //Array of category identifiers
  29. ULONG cRequired, //Number of category IDs in the rgcatidReq array
  30. CATID rgcatidReq[], //Array of category identifiers
  31. BOOL bForceUpdate, //TRUE: Unconditionally update the cache;
  32. //otherwise create cache iif doesn't exist.
  33. BOOL bWait, //If FALSE, the function returns immediately and the
  34. // caching occurs asynchronously; otherwise
  35. // the function returns only after the caching
  36. // operation has completed.
  37. HANDLE hEvent ) ; //(optional) Event to be signalled when cache update is done
  38. #endif __COMCATEX_H__