/MyBot/VideoProcessing/AForge/Video.DirectShow/Internals/ICreateDevEnum.cs

# · C# · 37 lines · 14 code · 2 blank · 21 comment · 0 complexity · 77f3b4941d6b809b322d980f45bb404a MD5 · raw file

  1. // AForge Direct Show Library
  2. // AForge.NET framework
  3. //
  4. // Copyright Š Andrew Kirillov, 2007
  5. // andrew.kirillov@gmail.com
  6. //
  7. namespace AForge.Video.DirectShow.Internals
  8. {
  9. using System;
  10. using System.Runtime.InteropServices;
  11. using System.Runtime.InteropServices.ComTypes;
  12. /// <summary>
  13. /// The <b>ICreateDevEnum</b> interface creates an enumerator for devices within a particular category,
  14. /// such as video capture devices, audio capture devices, video compressors, and so forth.
  15. /// </summary>
  16. ///
  17. [ComImport,
  18. Guid( "29840822-5B84-11D0-BD3B-00A0C911CE86" ),
  19. InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
  20. internal interface ICreateDevEnum
  21. {
  22. /// <summary>
  23. /// Creates a class enumerator for a specified device category.
  24. /// </summary>
  25. ///
  26. /// <param name="type">Specifies the class identifier of the device category.</param>
  27. /// <param name="enumMoniker">Address of a variable that receives an <b>IEnumMoniker</b> interface pointer</param>
  28. /// <param name="flags">Bitwise combination of zero or more flags. If zero, the method enumerates every filter in the category.</param>
  29. ///
  30. /// <returns>Return's <b>HRESULT</b> error code.</returns>
  31. ///
  32. [PreserveSig]
  33. int CreateClassEnumerator( [In] ref Guid type, [Out] out IEnumMoniker enumMoniker, [In] int flags );
  34. }
  35. }