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.

61 lines
893 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. BSTR* pszObject
  21. );
  22. HRESULT
  23. Next();
  24. HRESULT
  25. Reset();
  26. BOOL
  27. IsEmpty();
  28. };
  29. HRESULT
  30. BuildObjectArray(
  31. VARIANT var,
  32. SAFEARRAY ** ppFilter,
  33. DWORD * pdwNumElements
  34. );
  35. HRESULT
  36. BuildDefaultObjectArray(
  37. PFILTERS pFilters,
  38. DWORD dwMaxFilters,
  39. SAFEARRAY ** ppFilter,
  40. DWORD * pdwNumElements
  41. );
  42. HRESULT
  43. IsValidFilter(
  44. LPTSTR ObjectName,
  45. DWORD *pdwFilterId,
  46. PFILTERS pFilters,
  47. DWORD dwMaxFilters
  48. );