quartz: Define the QuartzTypeLib library in control.idl.
Also remove some unneeded forward declarations.
This commit is contained in:
parent
862377f123
commit
209132724a
|
@ -19,33 +19,33 @@
|
||||||
|
|
||||||
import "oaidl.idl";
|
import "oaidl.idl";
|
||||||
|
|
||||||
interface IMediaControl;
|
[
|
||||||
interface IBasicAudio;
|
version(1.0),
|
||||||
interface IBasicVideo;
|
uuid(56a868b0-0ad4-11ce-b03a-0020af0ba770)
|
||||||
interface IVideoWindow;
|
]
|
||||||
interface IMediaEvent;
|
library QuartzTypeLib
|
||||||
interface IMediaEventEx;
|
{
|
||||||
interface IMediaPosition;
|
importlib("stdole2.tlb");
|
||||||
|
|
||||||
typedef LONG OAFilterState;
|
typedef LONG OAFilterState;
|
||||||
typedef LONG_PTR OAHWND;
|
typedef LONG_PTR OAHWND;
|
||||||
typedef LONG_PTR OAEVENT;
|
typedef LONG_PTR OAEVENT;
|
||||||
|
|
||||||
cpp_quote("#ifndef REFTIME_DEFINED")
|
cpp_quote("#ifndef REFTIME_DEFINED")
|
||||||
cpp_quote("#define REFTIME_DEFINED")
|
cpp_quote("#define REFTIME_DEFINED")
|
||||||
typedef DOUBLE REFTIME;
|
typedef DOUBLE REFTIME;
|
||||||
cpp_quote("#endif")
|
cpp_quote("#endif")
|
||||||
|
|
||||||
/*****************************************************************************
|
/***************************************************************************
|
||||||
* IMediaControl interface
|
* IMediaControl interface
|
||||||
*/
|
*/
|
||||||
[
|
[
|
||||||
object,
|
object,
|
||||||
uuid(56a868b1-0ad4-11ce-b03a-0020af0ba770),
|
uuid(56a868b1-0ad4-11ce-b03a-0020af0ba770),
|
||||||
pointer_default(unique)
|
pointer_default(unique)
|
||||||
]
|
]
|
||||||
interface IMediaControl : IDispatch
|
interface IMediaControl : IDispatch
|
||||||
{
|
{
|
||||||
HRESULT Run();
|
HRESULT Run();
|
||||||
HRESULT Pause();
|
HRESULT Pause();
|
||||||
HRESULT Stop();
|
HRESULT Stop();
|
||||||
|
@ -55,36 +55,36 @@ interface IMediaControl : IDispatch
|
||||||
[propget] HRESULT FilterCollection( [out] IDispatch **ppUnk );
|
[propget] HRESULT FilterCollection( [out] IDispatch **ppUnk );
|
||||||
[propget] HRESULT RegFilterCollection( [out] IDispatch **ppUnk );
|
[propget] HRESULT RegFilterCollection( [out] IDispatch **ppUnk );
|
||||||
HRESULT StopWhenReady();
|
HRESULT StopWhenReady();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************
|
/***************************************************************************
|
||||||
* IBasicAudio interface
|
* IBasicAudio interface
|
||||||
*/
|
*/
|
||||||
[
|
[
|
||||||
object,
|
object,
|
||||||
uuid(56a868b3-0ad4-11ce-b03a-0020af0ba770),
|
uuid(56a868b3-0ad4-11ce-b03a-0020af0ba770),
|
||||||
pointer_default(unique)
|
pointer_default(unique)
|
||||||
]
|
]
|
||||||
interface IBasicAudio : IDispatch
|
interface IBasicAudio : IDispatch
|
||||||
{
|
{
|
||||||
[propput] HRESULT Volume( [in] LONG lVolume );
|
[propput] HRESULT Volume( [in] LONG lVolume );
|
||||||
[propget] HRESULT Volume( [out] LONG *plVolume );
|
[propget] HRESULT Volume( [out] LONG *plVolume );
|
||||||
[propput] HRESULT Balance( [in] LONG lBalance );
|
[propput] HRESULT Balance( [in] LONG lBalance );
|
||||||
[propget] HRESULT Balance( [out] LONG *plBalance );
|
[propget] HRESULT Balance( [out] LONG *plBalance );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************
|
/***************************************************************************
|
||||||
* IVideoWindow interface
|
* IVideoWindow interface
|
||||||
*/
|
*/
|
||||||
[
|
[
|
||||||
object,
|
object,
|
||||||
uuid(56a868b4-0ad4-11ce-b03a-0020af0ba770),
|
uuid(56a868b4-0ad4-11ce-b03a-0020af0ba770),
|
||||||
pointer_default(unique)
|
pointer_default(unique)
|
||||||
]
|
]
|
||||||
interface IVideoWindow : IDispatch
|
interface IVideoWindow : IDispatch
|
||||||
{
|
{
|
||||||
[propput] HRESULT Caption( [in] BSTR strCaption );
|
[propput] HRESULT Caption( [in] BSTR strCaption );
|
||||||
[propget] HRESULT Caption( [out] BSTR *strCaption );
|
[propget] HRESULT Caption( [out] BSTR *strCaption );
|
||||||
[propput] HRESULT WindowStyle( [in] LONG WindowStyle );
|
[propput] HRESULT WindowStyle( [in] LONG WindowStyle );
|
||||||
|
@ -124,19 +124,19 @@ interface IVideoWindow : IDispatch
|
||||||
HRESULT GetRestorePosition( [out] LONG *pLeft, [out] LONG *pTop, [out] LONG *pWidth, [out] LONG *pHeight );
|
HRESULT GetRestorePosition( [out] LONG *pLeft, [out] LONG *pTop, [out] LONG *pWidth, [out] LONG *pHeight );
|
||||||
HRESULT HideCursor( [in] LONG HideCursor );
|
HRESULT HideCursor( [in] LONG HideCursor );
|
||||||
HRESULT IsCursorHidden( [out] LONG *CursorHidden );
|
HRESULT IsCursorHidden( [out] LONG *CursorHidden );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************
|
/***************************************************************************
|
||||||
* IBasicVideo interface
|
* IBasicVideo interface
|
||||||
*/
|
*/
|
||||||
[
|
[
|
||||||
object,
|
object,
|
||||||
uuid(56a868b5-0ad4-11ce-b03a-0020af0ba770),
|
uuid(56a868b5-0ad4-11ce-b03a-0020af0ba770),
|
||||||
pointer_default(unique)
|
pointer_default(unique)
|
||||||
]
|
]
|
||||||
interface IBasicVideo : IDispatch
|
interface IBasicVideo : IDispatch
|
||||||
{
|
{
|
||||||
[propget] HRESULT AvgTimePerFrame( [out] REFTIME *pAvgTimePerFrame );
|
[propget] HRESULT AvgTimePerFrame( [out] REFTIME *pAvgTimePerFrame );
|
||||||
[propget] HRESULT BitRate( [out] LONG *pBitRate );
|
[propget] HRESULT BitRate( [out] LONG *pBitRate );
|
||||||
[propget] HRESULT BitErrorRate( [out] LONG *pBitErrorRate );
|
[propget] HRESULT BitErrorRate( [out] LONG *pBitErrorRate );
|
||||||
|
@ -173,65 +173,65 @@ interface IBasicVideo : IDispatch
|
||||||
[out, size_is(*pBufferSize), length_is(*pBufferSize)] LONG *pDIBImage );
|
[out, size_is(*pBufferSize), length_is(*pBufferSize)] LONG *pDIBImage );
|
||||||
HRESULT IsUsingDefaultSource();
|
HRESULT IsUsingDefaultSource();
|
||||||
HRESULT IsUsingDefaultDestination();
|
HRESULT IsUsingDefaultDestination();
|
||||||
}
|
}
|
||||||
|
|
||||||
[
|
[
|
||||||
uuid(329bb360-f6ea-11d1-9038-00a0c9697298),
|
uuid(329bb360-f6ea-11d1-9038-00a0c9697298),
|
||||||
helpstring("IBasicVideo2"),
|
helpstring("IBasicVideo2"),
|
||||||
odl
|
odl
|
||||||
]
|
]
|
||||||
|
|
||||||
interface IBasicVideo2 : IBasicVideo
|
interface IBasicVideo2 : IBasicVideo
|
||||||
{
|
{
|
||||||
HRESULT GetPreferredAspectRatio([out] LONG *plAspectX, [out] LONG *plAspectY);
|
HRESULT GetPreferredAspectRatio([out] LONG *plAspectX, [out] LONG *plAspectY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************
|
/***************************************************************************
|
||||||
* IMediaEvent interface
|
* IMediaEvent interface
|
||||||
*/
|
*/
|
||||||
[
|
[
|
||||||
object,
|
object,
|
||||||
uuid(56a868b6-0ad4-11ce-b03a-0020af0ba770),
|
uuid(56a868b6-0ad4-11ce-b03a-0020af0ba770),
|
||||||
pointer_default(unique)
|
pointer_default(unique)
|
||||||
]
|
]
|
||||||
interface IMediaEvent : IDispatch
|
interface IMediaEvent : IDispatch
|
||||||
{
|
{
|
||||||
HRESULT GetEventHandle( [out] OAEVENT *hEvent );
|
HRESULT GetEventHandle( [out] OAEVENT *hEvent );
|
||||||
HRESULT GetEvent( [out] LONG *lEventCode, [out] LONG_PTR *lParam1, [out] LONG_PTR *lParam2, [in] LONG msTimeout );
|
HRESULT GetEvent( [out] LONG *lEventCode, [out] LONG_PTR *lParam1, [out] LONG_PTR *lParam2, [in] LONG msTimeout );
|
||||||
HRESULT WaitForCompletion( [in] LONG msTimeout, [out] LONG *pEvCode );
|
HRESULT WaitForCompletion( [in] LONG msTimeout, [out] LONG *pEvCode );
|
||||||
HRESULT CancelDefaultHandling( [in] LONG lEvCode );
|
HRESULT CancelDefaultHandling( [in] LONG lEvCode );
|
||||||
HRESULT RestoreDefaultHandling( [in] LONG lEvCode );
|
HRESULT RestoreDefaultHandling( [in] LONG lEvCode );
|
||||||
HRESULT FreeEventParams( [in] LONG lEvCode, [in] LONG_PTR lParam1, [in] LONG_PTR lParam2 );
|
HRESULT FreeEventParams( [in] LONG lEvCode, [in] LONG_PTR lParam1, [in] LONG_PTR lParam2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************
|
/***************************************************************************
|
||||||
* IMediaEventEx interface
|
* IMediaEventEx interface
|
||||||
*/
|
*/
|
||||||
[
|
[
|
||||||
object,
|
object,
|
||||||
uuid(56a868c0-0ad4-11ce-b03a-0020af0ba770),
|
uuid(56a868c0-0ad4-11ce-b03a-0020af0ba770),
|
||||||
pointer_default(unique)
|
pointer_default(unique)
|
||||||
]
|
]
|
||||||
interface IMediaEventEx : IMediaEvent
|
interface IMediaEventEx : IMediaEvent
|
||||||
{
|
{
|
||||||
HRESULT SetNotifyWindow( [in] OAHWND hwnd, [in] LONG lMsg, [in] LONG_PTR lInstanceData );
|
HRESULT SetNotifyWindow( [in] OAHWND hwnd, [in] LONG lMsg, [in] LONG_PTR lInstanceData );
|
||||||
HRESULT SetNotifyFlags( [in] LONG lNoNotifyFlags );
|
HRESULT SetNotifyFlags( [in] LONG lNoNotifyFlags );
|
||||||
HRESULT GetNotifyFlags( [out] LONG *lplNoNotifyFlags );
|
HRESULT GetNotifyFlags( [out] LONG *lplNoNotifyFlags );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************
|
/***************************************************************************
|
||||||
* IMediaPosition interface
|
* IMediaPosition interface
|
||||||
*/
|
*/
|
||||||
[
|
[
|
||||||
object,
|
object,
|
||||||
uuid(56a868b2-0ad4-11ce-b03a-0020af0ba770),
|
uuid(56a868b2-0ad4-11ce-b03a-0020af0ba770),
|
||||||
pointer_default(unique)
|
pointer_default(unique)
|
||||||
]
|
]
|
||||||
interface IMediaPosition : IDispatch
|
interface IMediaPosition : IDispatch
|
||||||
{
|
{
|
||||||
HRESULT get_Duration( [out] REFTIME *plength );
|
HRESULT get_Duration( [out] REFTIME *plength );
|
||||||
HRESULT put_CurrentPosition( [in] REFTIME llTime );
|
HRESULT put_CurrentPosition( [in] REFTIME llTime );
|
||||||
HRESULT get_CurrentPosition( [out] REFTIME *pllTime );
|
HRESULT get_CurrentPosition( [out] REFTIME *pllTime );
|
||||||
|
@ -243,4 +243,6 @@ interface IMediaPosition : IDispatch
|
||||||
HRESULT get_Rate( [out] double *pdRate );
|
HRESULT get_Rate( [out] double *pdRate );
|
||||||
HRESULT CanSeekForward( [out] LONG *pCanSeekForward );
|
HRESULT CanSeekForward( [out] LONG *pCanSeekForward );
|
||||||
HRESULT CanSeekBackward( [out] LONG *pCanSeekBackward );
|
HRESULT CanSeekBackward( [out] LONG *pCanSeekBackward );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} /* library QuartzTypeLib */
|
||||||
|
|
Loading…
Reference in New Issue