PlayList.cs :  » Game » DirectShow » DirectShowLib » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » Game » DirectShow 
DirectShow » DirectShowLib » PlayList.cs
#region license

/*
DirectShowLib - Provide access to DirectShow interfaces via .NET
Copyright (C) 2007
http://sourceforge.net/projects/directshownet/

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

#endregion

using System;
using System.Runtime.InteropServices;

namespace DirectShowLib{
    #region Declarations

#if ALLOW_UNTESTED_INTERFACES

    /// <summary>
    /// From AMPlayListItemFlags
    /// </summary>
    public enum AMPlayListItemFlags
    {
        CanSkip = 0x1,
        CanBind = 0x2
    }

    /// <summary>
    /// From AMPlayListFlags
    /// </summary>
    [Flags]
    public enum AMPlayListFlags
    {
        None = 0,
        StartInScanMode = 0x1,
        ForceBanner = 0x2
    }

#endif

    #endregion

    #region Interfaces

#if ALLOW_UNTESTED_INTERFACES

    [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
    Guid("56a868ff-0ad4-11ce-b03a-0020af0ba770"),
    InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    public interface IAMPlayListItem
    {
        int GetFlags(
            out AMPlayListItemFlags pdwFlags
            );

        int GetSourceCount(
            out int pdwSources
            );

        int GetSourceURL(
            int dwSourceIndex,
            [MarshalAs(UnmanagedType.BStr)] out string pbstrURL
            );

        int GetSourceStart(
            int dwSourceIndex,
            out long prtStart
            );

        int GetSourceDuration(
            int dwSourceIndex,
            out long prtDuration
            );

        int GetSourceStartMarker(
            int dwSourceIndex,
            out int pdwMarker
            );

        int GetSourceEndMarker(
            int dwSourceIndex,
            out int pdwMarker
            );

        int GetSourceStartMarkerName(
            int dwSourceIndex,
            [MarshalAs(UnmanagedType.BStr)] out string pbstrStartMarker
            );

        int GetSourceEndMarkerName(
            int dwSourceIndex,
            [MarshalAs(UnmanagedType.BStr)] out string pbstrEndMarker
            );

        int GetLinkURL(
            [MarshalAs(UnmanagedType.BStr)] out string pbstrURL);

        int GetScanDuration(
            int dwSourceIndex,
            out long prtScanDuration
            );
    }

    [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
    Guid("56a868fe-0ad4-11ce-b03a-0020af0ba770"),
    InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    public interface IAMPlayList
    {
        int GetFlags(
            out AMPlayListFlags pdwFlags
            );

        int GetItemCount(
            out int pdwItems
            );

        int GetItem(
            int dwItemIndex,
            out IAMPlayListItem ppItem
            );

        int GetNamedEvent(
            string pwszEventName,
            int dwItemIndex,
            out IAMPlayListItem ppItem,
            out AMPlayListItemFlags pdwFlags
            );

        int GetRepeatInfo(
            out int pdwRepeatCount,
            out int pdwRepeatStart,
            out int pdwRepeatEnd
            );
    }

    [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
    Guid("4C437B91-6E9E-11d1-A704-006097C4E476"),
    InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    public interface ISpecifyParticularPages
    {
        int GetPages(
            [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidWhatPages,
            out DsCAUUID pPages
            );
    }

    [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
    Guid("02EF04DD-7580-11d1-BECE-00C04FB6E937"),
    InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    public interface IAMRebuild
    {
        int RebuildNow( );
    };

#endif

    #endregion
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.