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.

69 lines
1.2 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1997.
  5. //
  6. // File: object.hxx
  7. //
  8. // Contents: ADSI object Type class
  9. //
  10. // History:
  11. //----------------------------------------------------------------------------
  12. class FAR ObjectTypeList
  13. {
  14. private:
  15. SAFEARRAY FAR * _pObjList;
  16. DWORD _dwCurrentIndex;
  17. DWORD _dwLBound;
  18. DWORD _dwUBound;
  19. DWORD _dwMaxElements;
  20. public:
  21. ObjectTypeList();
  22. static
  23. HRESULT
  24. ObjectTypeList::CreateObjectTypeList(
  25. VARIANT vFilter,
  26. ObjectTypeList ** ppObjectTypeList
  27. );
  28. ~ObjectTypeList();
  29. HRESULT
  30. GetCurrentObject(
  31. PDWORD pdwObject
  32. );
  33. HRESULT
  34. Next();
  35. HRESULT
  36. Reset();
  37. };
  38. HRESULT
  39. BuildObjectArray(
  40. VARIANT var,
  41. SAFEARRAY ** ppFilter,
  42. DWORD * pdwNumElements
  43. );
  44. HRESULT
  45. BuildDefaultObjectArray(
  46. PFILTERS pFilters,
  47. DWORD dwMaxFilters,
  48. SAFEARRAY ** ppFilter,
  49. DWORD * pdwNumElements
  50. );
  51. HRESULT
  52. IsValidFilter(
  53. LPWSTR ObjectName,
  54. DWORD *pdwFilterId,
  55. PFILTERS pFilters,
  56. DWORD dwMaxFilters
  57. );