includes: Fix alignment for 64-bits
[wine/wine64.git] / include / control.idl
blobddb52795b6039c9e1906e9fb82c815d7b3767932
1 /*
2 * Copyright (C) 2002 Lionel Ulmer
3 * Copyright (C) 2004 Alexandre Julliard
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 import "oaidl.idl";
22 interface IMediaControl;
23 interface IBasicAudio;
24 interface IBasicVideo;
25 interface IVideoWindow;
26 interface IMediaEvent;
27 interface IMediaEventEx;
28 interface IMediaPosition;
30 typedef long OAFilterState;
31 typedef LONG_PTR OAHWND;
32 typedef LONG_PTR OAEVENT;
34 cpp_quote("#ifndef REFTIME_DEFINED")
35 cpp_quote("#define REFTIME_DEFINED")
36 typedef DOUBLE REFTIME;
37 cpp_quote("#endif")
39 /*****************************************************************************
40 * IMediaControl interface
43 object,
44 uuid(56a868b1-0ad4-11ce-b03a-0020af0ba770),
45 pointer_default(unique)
47 interface IMediaControl : IDispatch
49 HRESULT Run();
50 HRESULT Pause();
51 HRESULT Stop();
52 HRESULT GetState( [in] LONG msTimeout, [out] OAFilterState *pfs );
53 HRESULT RenderFile( [in] BSTR strFilename );
54 HRESULT AddSourceFilter( [in] BSTR strFilename, [out] IDispatch **ppUnk );
55 [propget] HRESULT FilterCollection( [out] IDispatch **ppUnk );
56 [propget] HRESULT RegFilterCollection( [out] IDispatch **ppUnk );
57 HRESULT StopWhenReady();
61 /*****************************************************************************
62 * IBasicAudio interface
65 object,
66 uuid(56a868b3-0ad4-11ce-b03a-0020af0ba770),
67 pointer_default(unique)
69 interface IBasicAudio : IDispatch
71 [propput] HRESULT Volume( [in] long lVolume );
72 [propget] HRESULT Volume( [out] long *plVolume );
73 [propput] HRESULT Balance( [in] long lBalance );
74 [propget] HRESULT Balance( [out] long *plBalance );
78 /*****************************************************************************
79 * IVideoWindow interface
82 object,
83 uuid(56a868b4-0ad4-11ce-b03a-0020af0ba770),
84 pointer_default(unique)
86 interface IVideoWindow : IDispatch
88 [propput] HRESULT Caption( [in] BSTR strCaption );
89 [propget] HRESULT Caption( [out] BSTR *strCaption );
90 [propput] HRESULT WindowStyle( [in] long WindowStyle );
91 [propget] HRESULT WindowStyle( [out] long *WindowStyle );
92 [propput] HRESULT WindowStyleEx( [in] long WindowStyleEx );
93 [propget] HRESULT WindowStyleEx( [out] long *WindowStyleEx );
94 [propput] HRESULT AutoShow( [in] long AutoShow );
95 [propget] HRESULT AutoShow( [out] long *AutoShow );
96 [propput] HRESULT WindowState( [in] long WindowState );
97 [propget] HRESULT WindowState( [out] long *WindowState );
98 [propput] HRESULT BackgroundPalette( [in] long BackgroundPalette );
99 [propget] HRESULT BackgroundPalette( [out] long *pBackgroundPalette );
100 [propput] HRESULT Visible( [in] long Visible );
101 [propget] HRESULT Visible( [out] long *pVisible );
102 [propput] HRESULT Left( [in] long Left );
103 [propget] HRESULT Left( [out] long *pLeft );
104 [propput] HRESULT Width( [in] long Width );
105 [propget] HRESULT Width( [out] long *pWidth );
106 [propput] HRESULT Top( [in] long Top );
107 [propget] HRESULT Top( [out] long *pTop );
108 [propput] HRESULT Height( [in] long Height );
109 [propget] HRESULT Height( [out] long *pHeight );
110 [propput] HRESULT Owner( [in] OAHWND Owner );
111 [propget] HRESULT Owner( [out] OAHWND *Owner );
112 [propput] HRESULT MessageDrain( [in] OAHWND Drain );
113 [propget] HRESULT MessageDrain( [out] OAHWND *Drain );
114 [propget] HRESULT BorderColor( [out] long *Color );
115 [propput] HRESULT BorderColor( [in] long Color );
116 [propget] HRESULT FullScreenMode( [out] long *FullScreenMode );
117 [propput] HRESULT FullScreenMode( [in] long FullScreenMode );
118 HRESULT SetWindowForeground( [in] long Focus );
119 HRESULT NotifyOwnerMessage( [in] OAHWND hwnd, [in] long uMsg, [in] LONG_PTR wParam, [in] LONG_PTR lParam );
120 HRESULT SetWindowPosition( [in] long Left, [in] long Top, [in] long Width, [in] long Height );
121 HRESULT GetWindowPosition( [out] long *pLeft, [out] long *pTop, [out] long *pWidth, [out] long *pHeight );
122 HRESULT GetMinIdealImageSize( [out] long *pWidth, [out] long *pHeight );
123 HRESULT GetMaxIdealImageSize( [out] long *pWidth, [out] long *pHeight );
124 HRESULT GetRestorePosition( [out] long *pLeft, [out] long *pTop, [out] long *pWidth, [out] long *pHeight );
125 HRESULT HideCursor( [in] long HideCursor );
126 HRESULT IsCursorHidden( [out] long *CursorHidden );
130 /*****************************************************************************
131 * IBasicVideo interface
134 object,
135 uuid(56a868b5-0ad4-11ce-b03a-0020af0ba770),
136 pointer_default(unique)
138 interface IBasicVideo : IDispatch
140 [propget] HRESULT AvgTimePerFrame( [out] REFTIME *pAvgTimePerFrame );
141 [propget] HRESULT BitRate( [out] long *pBitRate );
142 [propget] HRESULT BitErrorRate( [out] long *pBitErrorRate );
143 [propget] HRESULT VideoWidth( [out] long *pVideoWidth );
144 [propget] HRESULT VideoHeight( [out] long *pVideoHeight );
145 [propput] HRESULT SourceLeft( [in] long SourceLeft );
146 [propget] HRESULT SourceLeft( [out] long *pSourceLeft );
147 [propput] HRESULT SourceWidth( [in] long SourceWidth );
148 [propget] HRESULT SourceWidth( [out] long *pSourceWidth );
149 [propput] HRESULT SourceTop( [in] long SourceTop );
150 [propget] HRESULT SourceTop( [out] long *pSourceTop );
151 [propput] HRESULT SourceHeight( [in] long SourceHeight );
152 [propget] HRESULT SourceHeight( [out] long *pSourceHeight );
153 [propput] HRESULT DestinationLeft( [in] long DestinationLeft );
154 [propget] HRESULT DestinationLeft( [out] long *pDestinationLeft );
155 [propput] HRESULT DestinationWidth( [in] long DestinationWidth );
156 [propget] HRESULT DestinationWidth( [out] long *pDestinationWidth );
157 [propput] HRESULT DestinationTop( [in] long DestinationTop );
158 [propget] HRESULT DestinationTop( [out] long *pDestinationTop );
159 [propput] HRESULT DestinationHeight( [in] long DestinationHeight );
160 [propget] HRESULT DestinationHeight( [out] long *pDestinationHeight );
161 HRESULT SetSourcePosition( [in] long Left, [in] long Top, [in] long Width, [in] long Height );
162 HRESULT GetSourcePosition( [out] long *pLeft, [out] long *pTop, [out] long *pWidth, [out] long *pHeight );
163 HRESULT SetDefaultSourcePosition();
164 HRESULT SetDestinationPosition( [in] long Left, [in] long Top, [in] long Width, [in] long Height );
165 HRESULT GetDestinationPosition( [out] long *pLeft, [out] long *pTop, [out] long *pWidth, [out] long *pHeight );
166 HRESULT SetDefaultDestinationPosition();
167 HRESULT GetVideoSize( [out] long *pWidth, [out] long *pHeight );
168 HRESULT GetVideoPaletteEntries( [in] long StartIndex,
169 [in] long Entries,
170 [out] long *pRetrieved,
171 [out, size_is(Entries), length_is(*pRetrieved)] long *pPalette );
172 HRESULT GetCurrentImage( [in, out] long *pBufferSize,
173 [out, size_is(*pBufferSize), length_is(*pBufferSize)] long *pDIBImage );
174 HRESULT IsUsingDefaultSource();
175 HRESULT IsUsingDefaultDestination();
179 uuid(329bb360-f6ea-11d1-9038-00a0c9697298),
180 helpstring("IBasicVideo2"),
184 interface IBasicVideo2 : IBasicVideo
186 HRESULT GetPreferredAspectRatio([out] LONG *plAspectX, [out] LONG *plAspectY);
190 /*****************************************************************************
191 * IMediaEvent interface
194 object,
195 uuid(56a868b6-0ad4-11ce-b03a-0020af0ba770),
196 pointer_default(unique)
198 interface IMediaEvent : IDispatch
200 HRESULT GetEventHandle( [out] OAEVENT *hEvent );
201 HRESULT GetEvent( [out] long *lEventCode, [out] LONG_PTR *lParam1, [out] LONG_PTR *lParam2, [in] long msTimeout );
202 HRESULT WaitForCompletion( [in] long msTimeout, [out] long *pEvCode );
203 HRESULT CancelDefaultHandling( [in] long lEvCode );
204 HRESULT RestoreDefaultHandling( [in] long lEvCode );
205 HRESULT FreeEventParams( [in] long lEvCode, [in] LONG_PTR lParam1, [in] LONG_PTR lParam2 );
209 /*****************************************************************************
210 * IMediaEventEx interface
213 object,
214 uuid(56a868c0-0ad4-11ce-b03a-0020af0ba770),
215 pointer_default(unique)
217 interface IMediaEventEx : IMediaEvent
219 HRESULT SetNotifyWindow( [in] OAHWND hwnd, [in] long lMsg, [in] LONG_PTR lInstanceData );
220 HRESULT SetNotifyFlags( [in] long lNoNotifyFlags );
221 HRESULT GetNotifyFlags( [out] long *lplNoNotifyFlags );
225 /*****************************************************************************
226 * IMediaPosition interface
229 object,
230 uuid(56a868b2-0ad4-11ce-b03a-0020af0ba770),
231 pointer_default(unique)
233 interface IMediaPosition : IDispatch
235 HRESULT get_Duration( [out] REFTIME *plength );
236 HRESULT put_CurrentPosition( [in] REFTIME llTime );
237 HRESULT get_CurrentPosition( [out] REFTIME *pllTime );
238 HRESULT get_StopTime( [out] REFTIME *pllTime );
239 HRESULT put_StopTime( [in] REFTIME llTime );
240 HRESULT get_PrerollTime( [out] REFTIME *pllTime );
241 HRESULT put_PrerollTime( [in] REFTIME llTime );
242 HRESULT put_Rate( [in] double dRate );
243 HRESULT get_Rate( [out] double *pdRate );
244 HRESULT CanSeekForward( [out] LONG *pCanSeekForward );
245 HRESULT CanSeekBackward( [out] LONG *pCanSeekBackward );