Click here to Skip to main content
16,005,141 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Please I need help Pin
Saksida Bojan18-Jan-06 5:38
Saksida Bojan18-Jan-06 5:38 
GeneralRe: Please I need help Pin
Nish Nishant18-Jan-06 5:55
sitebuilderNish Nishant18-Jan-06 5:55 
GeneralRe: Please I need help Pin
Saksida Bojan18-Jan-06 6:03
Saksida Bojan18-Jan-06 6:03 
GeneralRe: Please I need help Pin
Nish Nishant18-Jan-06 6:53
sitebuilderNish Nishant18-Jan-06 6:53 
GeneralRe: Please I need help Pin
Saksida Bojan19-Jan-06 22:51
Saksida Bojan19-Jan-06 22:51 
Questionabout IMediaSeeking Pin
abstarsss15-Jan-06 21:10
abstarsss15-Jan-06 21:10 
AnswerRe: about IMediaSeeking Pin
Nish Nishant16-Jan-06 4:41
sitebuilderNish Nishant16-Jan-06 4:41 
GeneralRe: about IMediaSeeking Pin
abstarsss16-Jan-06 16:31
abstarsss16-Jan-06 16:31 
#pragma once

using namespace System;
using namespace System::Runtime::InteropServices;

namespace QuartzTypeLib
{

[StructLayout(LayoutKind::Sequential), ComVisible(false)]
public ref class DsOptInt64
{
public:
DsOptInt64( long Value )
{
this->Value = Value;
}
long Value;
};


[Flags, ComVisible(false)]
public enum class SeekingCapabilities // AM_SEEKING_SeekingCapabilities AM_SEEKING_SEEKING_CAPABILITIES
{
CanSeekAbsolute = 0x001,
CanSeekForwards = 0x002,
CanSeekBackwards = 0x004,
CanGetCurrentPos = 0x008,
CanGetStopPos = 0x010,
CanGetDuration = 0x020,
CanPlayBackwards = 0x040,
CanDoSegments = 0x080,
Source = 0x100 // Doesn't pass thru used to count segment ends
};

[Flags, ComVisible(false)]
public enum class SeekingFlags // AM_SEEKING_SeekingFlags AM_SEEKING_SEEKING_FLAGS
{
NoPositioning = 0x00, // No change
AbsolutePositioning = 0x01, // Position is supplied and is absolute
RelativePositioning = 0x02, // Position is supplied and is relative
IncrementalPositioning = 0x03, // (Stop) position relative to current, useful for seeking when paused (use +1)
PositioningBitsMask = 0x03, // Useful mask
SeekToKeyFrame = 0x04, // Just seek to key frame (performance gain)
ReturnTime = 0x08, // Plug the media time equivalents back into the supplied LONGLONGs
Segment = 0x10, // At end just do EC_ENDOFSEGMENT, don't do EndOfStream
NoFlush = 0x20 // Don't flush
};

[ComVisible(true), ComImport,
Guid("36b73880-c2c8-11cf-8b46-00805f6cef60"),
InterfaceType( ComInterfaceType::InterfaceIsIUnknown )]
public interface class IMediaSeeking
{
[PreserveSig]
int GetCapabilities(SeekingCapabilities &pCapabilities );

[PreserveSig]
int CheckCapabilities( [In, Out] SeekingCapabilities &pCapabilities );

[PreserveSig]
int IsFormatSupported( [In] Guid& pFormat );
[PreserveSig]
int QueryPreferredFormat( [Out] Guid& pFormat );

[PreserveSig]
int GetTimeFormat( [Out] Guid& pFormat );
[PreserveSig]
int IsUsingTimeFormat( [In] Guid& pFormat );
[PreserveSig]
int SetTimeFormat( [In] Guid& pFormat );

[PreserveSig]
int GetDuration( long& pDuration );
[PreserveSig]
int GetStopPosition( long& pStop );
[PreserveSig]
int GetCurrentPosition( long &pCurrent );

[PreserveSig]
int ConvertTimeFormat( long& pTarget, [In] Guid& pTargetFormat,
long& Source, [In] Guid& pSourceFormat );

[PreserveSig]
int SetPositions(
[In, Out, MarshalAs(UnmanagedType::LPStruct)] DsOptInt64^ pCurrent,
SeekingFlags dwCurrentFlags,
[In, Out, MarshalAs(UnmanagedType::LPStruct)] DsOptInt64^ pStop,
SeekingFlags dwStopFlags );

[PreserveSig]
int GetPositions( long &pCurrent, long &pStop );

[PreserveSig]
int GetAvailable( long &pEarliest, long &pLatest );

[PreserveSig]
int SetRate( double dRate );
[PreserveSig]
int GetRate( double& pdRate );

[PreserveSig]
int GetPreroll( long &pllPreroll );
};





}


GeneralRe: about IMediaSeeking Pin
Nish Nishant18-Jan-06 5:33
sitebuilderNish Nishant18-Jan-06 5:33 
QuestionStrings and other resources Pin
Red Stateler13-Jan-06 6:39
Red Stateler13-Jan-06 6:39 
AnswerRe: Strings and other resources Pin
Nish Nishant15-Jan-06 3:54
sitebuilderNish Nishant15-Jan-06 3:54 
GeneralRe: Strings and other resources Pin
Red Stateler17-Jan-06 5:31
Red Stateler17-Jan-06 5:31 
GeneralRe: Strings and other resources Pin
Nish Nishant17-Jan-06 5:41
sitebuilderNish Nishant17-Jan-06 5:41 
Questiondebugging VC6.0 DLL from VS .NET 2003 Pin
eddyroth13-Jan-06 4:19
eddyroth13-Jan-06 4:19 
AnswerRe: debugging VC6.0 DLL from VS .NET 2003 Pin
Nish Nishant13-Jan-06 4:24
sitebuilderNish Nishant13-Jan-06 4:24 
GeneralRe: debugging VC6.0 DLL from VS .NET 2003 Pin
eddyroth13-Jan-06 4:40
eddyroth13-Jan-06 4:40 
GeneralRe: debugging VC6.0 DLL from VS .NET 2003 Pin
Nish Nishant13-Jan-06 4:48
sitebuilderNish Nishant13-Jan-06 4:48 
QuestionCopy Constructors Pin
Tom Moore13-Jan-06 1:11
Tom Moore13-Jan-06 1:11 
AnswerRe: Copy Constructors Pin
Nish Nishant13-Jan-06 3:19
sitebuilderNish Nishant13-Jan-06 3:19 
GeneralRe: Copy Constructors Pin
Tom Moore14-Jan-06 11:37
Tom Moore14-Jan-06 11:37 
GeneralRe: Copy Constructors Pin
Nish Nishant14-Jan-06 17:22
sitebuilderNish Nishant14-Jan-06 17:22 
QuestionDynamically created property Pin
Soundman32.211-Jan-06 4:34
Soundman32.211-Jan-06 4:34 
AnswerRe: Dynamically created property Pin
Nish Nishant11-Jan-06 4:36
sitebuilderNish Nishant11-Jan-06 4:36 
QuestionRE: Sinh Calculator Pin
Dylan06038811-Jan-06 3:39
Dylan06038811-Jan-06 3:39 
AnswerRe: RE: Sinh Calculator Pin
Nish Nishant11-Jan-06 3:52
sitebuilderNish Nishant11-Jan-06 3:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.