Source code of Windows XP (NT5)
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.

58 lines
869 B

  1. class FAR ObjectTypeList
  2. {
  3. private:
  4. SAFEARRAY FAR * _pObjList;
  5. DWORD _dwCurrentIndex;
  6. DWORD _dwLBound;
  7. DWORD _dwUBound;
  8. DWORD _dwMaxElements;
  9. public:
  10. ObjectTypeList();
  11. static
  12. HRESULT
  13. ObjectTypeList::CreateObjectTypeList(
  14. VARIANT vFilter,
  15. ObjectTypeList ** ppObjectTypeList
  16. );
  17. ~ObjectTypeList();
  18. HRESULT
  19. GetCurrentObject(
  20. PDWORD pdwObject
  21. );
  22. HRESULT
  23. Next();
  24. HRESULT
  25. Reset();
  26. };
  27. HRESULT
  28. BuildObjectArray(
  29. VARIANT var,
  30. SAFEARRAY ** ppFilter,
  31. DWORD * pdwNumElements
  32. );
  33. HRESULT
  34. BuildDefaultObjectArray(
  35. PFILTERS pFilters,
  36. DWORD dwMaxFilters,
  37. SAFEARRAY ** ppFilter,
  38. DWORD * pdwNumElements
  39. );
  40. HRESULT
  41. IsValidFilter(
  42. LPWSTR ObjectName,
  43. DWORD *pdwFilterId,
  44. PFILTERS pFilters,
  45. DWORD dwMaxFilters
  46. );