1 /*
2  * COPYRIGHT:            See COPYING in the top level directory
3  * PROJECT:              ReactOS DirectX
4  * FILE:                 dll/directx/ddraw/Videoport/videoport_stubs.c
5  * PURPOSE:              IDirectDrawVideoPort, DDVideoPortContainer and IDirectDrawVideoPortNotify Implementation
6  * PROGRAMMER:           Maarten Bosma
7  *
8  */
9 
10 #include "rosdraw.h"
11 
12 
13 /************* IDirectDrawVideoPort *************/
14 
15 HRESULT WINAPI
Main_DirectDrawVideoPort_QueryInterface(LPDIRECTDRAWVIDEOPORT iface,REFIID riid,LPVOID * ppvObj)16 Main_DirectDrawVideoPort_QueryInterface (LPDIRECTDRAWVIDEOPORT iface, REFIID riid, LPVOID* ppvObj)
17 {
18    DX_WINDBG_trace();
19 
20    DX_STUB;
21 }
22 
23 ULONG WINAPI
Main_DirectDrawVideoPort_AddRef(LPDIRECTDRAWVIDEOPORT iface)24 Main_DirectDrawVideoPort_AddRef (LPDIRECTDRAWVIDEOPORT iface)
25 {
26   DX_WINDBG_trace();
27 
28    DX_STUB;
29 }
30 
31 ULONG WINAPI
Main_DirectDrawVideoPort_Release(LPDIRECTDRAWVIDEOPORT iface)32 Main_DirectDrawVideoPort_Release (LPDIRECTDRAWVIDEOPORT iface)
33 {
34   DX_WINDBG_trace();
35 
36    DX_STUB;
37 }
38 
39 HRESULT WINAPI
Main_DirectDrawVideoPort_Flip(LPDIRECTDRAWVIDEOPORT iface,LPDIRECTDRAWSURFACE lpDDSurface,DWORD dwFlags)40 Main_DirectDrawVideoPort_Flip (LPDIRECTDRAWVIDEOPORT iface, LPDIRECTDRAWSURFACE lpDDSurface, DWORD dwFlags)
41 {
42   DX_WINDBG_trace();
43 
44    DX_STUB;
45 }
46 
47 HRESULT WINAPI
Main_DirectDrawVideoPort_GetBandwidthInfo(LPDIRECTDRAWVIDEOPORT iface,LPDDPIXELFORMAT lpddpfFormat,DWORD dwWidth,DWORD dwHeight,DWORD dwFlags,LPDDVIDEOPORTBANDWIDTH lpBandwidth)48 Main_DirectDrawVideoPort_GetBandwidthInfo (LPDIRECTDRAWVIDEOPORT iface, LPDDPIXELFORMAT lpddpfFormat, DWORD dwWidth,
49 										   DWORD dwHeight, DWORD dwFlags, LPDDVIDEOPORTBANDWIDTH lpBandwidth)
50 {
51    DX_WINDBG_trace();
52    DX_STUB;
53 }
54 
55 HRESULT WINAPI
Main_DirectDrawVideoPort_GetColorControls(LPDIRECTDRAWVIDEOPORT iface,LPDDCOLORCONTROL lpColorControl)56 Main_DirectDrawVideoPort_GetColorControls (LPDIRECTDRAWVIDEOPORT iface, LPDDCOLORCONTROL lpColorControl)
57 {
58    DX_WINDBG_trace();
59    DX_STUB;
60 }
61 
Main_DirectDrawVideoPort_GetInputFormats(LPDIRECTDRAWVIDEOPORT iface,LPDWORD lpNumFormats,LPDDPIXELFORMAT lpFormats,DWORD dwFlags)62 HRESULT WINAPI Main_DirectDrawVideoPort_GetInputFormats (LPDIRECTDRAWVIDEOPORT iface, LPDWORD lpNumFormats,
63 														 LPDDPIXELFORMAT lpFormats, DWORD dwFlags)
64 {
65    DX_WINDBG_trace();
66    DX_STUB;
67 }
68 
Main_DirectDrawVideoPort_GetOutputFormats(LPDIRECTDRAWVIDEOPORT iface,LPDDPIXELFORMAT lpInputFormat,LPDWORD lpNumFormats,LPDDPIXELFORMAT lpFormats,DWORD dwFlags)69 HRESULT WINAPI Main_DirectDrawVideoPort_GetOutputFormats (LPDIRECTDRAWVIDEOPORT iface, LPDDPIXELFORMAT lpInputFormat,
70 														  LPDWORD lpNumFormats, LPDDPIXELFORMAT lpFormats, DWORD dwFlags)
71 {
72    DX_WINDBG_trace();
73    DX_STUB;
74 }
75 
Main_DirectDrawVideoPort_GetFieldPolarity(LPDIRECTDRAWVIDEOPORT iface,LPBOOL lpbFieldPolarity)76 HRESULT WINAPI Main_DirectDrawVideoPort_GetFieldPolarity (LPDIRECTDRAWVIDEOPORT iface, LPBOOL lpbFieldPolarity)
77 {
78    DX_WINDBG_trace();
79    DX_STUB;
80 }
81 
Main_DirectDrawVideoPort_GetVideoLine(LPDIRECTDRAWVIDEOPORT This,LPDWORD lpdwLine)82 HRESULT WINAPI Main_DirectDrawVideoPort_GetVideoLine (LPDIRECTDRAWVIDEOPORT This, LPDWORD lpdwLine)
83 {
84    DX_WINDBG_trace();
85    DX_STUB;
86 }
87 
Main_DirectDrawVideoPort_GetVideoSignalStatus(LPDIRECTDRAWVIDEOPORT iface,LPDWORD lpdwStatus)88 HRESULT WINAPI Main_DirectDrawVideoPort_GetVideoSignalStatus (LPDIRECTDRAWVIDEOPORT iface, LPDWORD lpdwStatus)
89 {
90 	DX_WINDBG_trace();
91    DX_STUB;
92 }
93 
Main_DirectDrawVideoPort_SetColorControls(LPDIRECTDRAWVIDEOPORT iface,LPDDCOLORCONTROL lpColorControl)94 HRESULT WINAPI Main_DirectDrawVideoPort_SetColorControls (LPDIRECTDRAWVIDEOPORT iface, LPDDCOLORCONTROL lpColorControl)
95 {
96 	DX_WINDBG_trace();
97    DX_STUB;
98 }
99 
Main_DirectDrawVideoPort_SetTargetSurface(LPDIRECTDRAWVIDEOPORT iface,LPDIRECTDRAWSURFACE lpDDSurface,DWORD dwFlags)100 HRESULT WINAPI Main_DirectDrawVideoPort_SetTargetSurface (LPDIRECTDRAWVIDEOPORT iface, LPDIRECTDRAWSURFACE lpDDSurface,
101 														  DWORD dwFlags)
102 {
103 	DX_WINDBG_trace();
104    DX_STUB;
105 }
106 
Main_DirectDrawVideoPort_StartVideo(LPDIRECTDRAWVIDEOPORT iface,LPDDVIDEOPORTINFO dwFlags)107 HRESULT WINAPI Main_DirectDrawVideoPort_StartVideo (LPDIRECTDRAWVIDEOPORT iface, LPDDVIDEOPORTINFO dwFlags)
108 {
109    DX_WINDBG_trace();
110    DX_STUB;
111 }
112 
Main_DirectDrawVideoPort_StopVideo(LPDIRECTDRAWVIDEOPORT iface)113 HRESULT WINAPI Main_DirectDrawVideoPort_StopVideo (LPDIRECTDRAWVIDEOPORT iface)
114 {
115 	DX_WINDBG_trace();
116    DX_STUB;
117 }
118 
Main_DirectDrawVideoPort_UpdateVideo(LPDIRECTDRAWVIDEOPORT iface,LPDDVIDEOPORTINFO dwFlags)119 HRESULT WINAPI Main_DirectDrawVideoPort_UpdateVideo (LPDIRECTDRAWVIDEOPORT iface, LPDDVIDEOPORTINFO dwFlags)
120 {
121 	DX_WINDBG_trace();
122    DX_STUB;
123 }
124 
Main_DirectDrawVideoPort_WaitForSync(LPDIRECTDRAWVIDEOPORT iface,DWORD dwFlags,DWORD dwLine,DWORD dwTimeout)125 HRESULT WINAPI Main_DirectDrawVideoPort_WaitForSync (LPDIRECTDRAWVIDEOPORT iface, DWORD dwFlags, DWORD dwLine,
126 													 DWORD dwTimeout)
127 {
128 	DX_WINDBG_trace();
129    DX_STUB;
130 }
131 
132 /************* IDDVideoPortContainer *************/
133 
Main_DDVideoPortContainer_QueryInterface(LPDDVIDEOPORTCONTAINER iface,REFIID riid,LPVOID * ppvObj)134 HRESULT WINAPI Main_DDVideoPortContainer_QueryInterface (LPDDVIDEOPORTCONTAINER iface, REFIID riid, LPVOID* ppvObj)
135 {
136 	DX_WINDBG_trace();
137    DX_STUB;
138 }
139 
Main_DDVideoPortContainer_AddRef(LPDDVIDEOPORTCONTAINER iface)140 ULONG WINAPI Main_DDVideoPortContainer_AddRef (LPDDVIDEOPORTCONTAINER iface)
141 {
142 	DX_WINDBG_trace();
143    DX_STUB;
144 }
145 
Main_DDVideoPortContainer_Release(LPDDVIDEOPORTCONTAINER iface)146 ULONG WINAPI Main_DDVideoPortContainer_Release (LPDDVIDEOPORTCONTAINER iface)
147 {
148 	DX_WINDBG_trace();
149    DX_STUB;
150 }
151 
Main_DDVideoPortContainer_CreateVideoPort(LPDDVIDEOPORTCONTAINER iface,DWORD dwFlags,LPDDVIDEOPORTDESC pPortDesc,LPDIRECTDRAWVIDEOPORT * DDVideoPort,IUnknown * pUnkOuter)152 HRESULT WINAPI Main_DDVideoPortContainer_CreateVideoPort (LPDDVIDEOPORTCONTAINER iface, DWORD dwFlags, LPDDVIDEOPORTDESC pPortDesc,
153 														  LPDIRECTDRAWVIDEOPORT* DDVideoPort, IUnknown* pUnkOuter)
154 {
155     DX_WINDBG_trace();
156    DX_STUB;
157 }
158 
159 HRESULT WINAPI
Main_DDVideoPortContainer_EnumVideoPorts(LPDDVIDEOPORTCONTAINER iface,DWORD dwFlags,LPDDVIDEOPORTCAPS pCaps,LPVOID pContext,LPDDENUMVIDEOCALLBACK pEnumVideoCallback)160 Main_DDVideoPortContainer_EnumVideoPorts (LPDDVIDEOPORTCONTAINER iface,
161                                           DWORD dwFlags,
162                                           LPDDVIDEOPORTCAPS pCaps,
163                                           LPVOID pContext,
164 							              LPDDENUMVIDEOCALLBACK pEnumVideoCallback)
165 {
166     DX_WINDBG_trace();
167    DX_STUB;
168 }
169 
170 HRESULT WINAPI
Main_DDVideoPortContainer_GetVideoPortConnectInfo(LPDDVIDEOPORTCONTAINER iface,DWORD PortId,DWORD * pNumEntries,LPDDVIDEOPORTCONNECT pConnectInfo)171 Main_DDVideoPortContainer_GetVideoPortConnectInfo (LPDDVIDEOPORTCONTAINER iface,
172                                                    DWORD PortId, DWORD* pNumEntries,
173 												   LPDDVIDEOPORTCONNECT pConnectInfo)
174 {
175     DX_WINDBG_trace();
176    DX_STUB;
177 }
178 
179 HRESULT WINAPI
Main_DDVideoPortContainer_QueryVideoPortStatus(LPDDVIDEOPORTCONTAINER iface,DWORD PortId,LPDDVIDEOPORTSTATUS pStatus)180 Main_DDVideoPortContainer_QueryVideoPortStatus (LPDDVIDEOPORTCONTAINER iface,
181                                                 DWORD PortId,
182                                                 LPDDVIDEOPORTSTATUS pStatus)
183 {
184     DX_WINDBG_trace();
185    DX_STUB;
186 }
187 
188 /************* IDirectDrawVideoPortNotify *************/
189 
190 HRESULT WINAPI
Main_DDVideoPortNotify_QueryInterface(LPDIRECTDRAWVIDEOPORTNOTIFY iface,REFIID riid,LPVOID * ppvObj)191 Main_DDVideoPortNotify_QueryInterface (LPDIRECTDRAWVIDEOPORTNOTIFY iface, REFIID
192                                        riid, LPVOID* ppvObj)
193 {
194 	DX_WINDBG_trace();
195    DX_STUB;
196 }
197 
198 ULONG WINAPI
Main_DDVideoPortNotify_AddRef(LPDIRECTDRAWVIDEOPORTNOTIFY iface)199 Main_DDVideoPortNotify_AddRef (LPDIRECTDRAWVIDEOPORTNOTIFY iface)
200 {
201 	DX_WINDBG_trace();
202    DX_STUB;
203 }
204 
205 ULONG WINAPI
Main_DDVideoPortNotify_Release(LPDIRECTDRAWVIDEOPORTNOTIFY iface)206 Main_DDVideoPortNotify_Release (LPDIRECTDRAWVIDEOPORTNOTIFY iface)
207 {
208 	DX_WINDBG_trace();
209    DX_STUB;
210 }
211 
Main_DDVideoPortNotify_AcquireNotification(LPDIRECTDRAWVIDEOPORTNOTIFY iface,HANDLE * h,LPDDVIDEOPORTNOTIFY pVideoPortNotify)212 HRESULT WINAPI Main_DDVideoPortNotify_AcquireNotification (LPDIRECTDRAWVIDEOPORTNOTIFY iface, HANDLE* h, LPDDVIDEOPORTNOTIFY pVideoPortNotify)
213 {
214     DX_WINDBG_trace();
215    DX_STUB;
216 }
217 
Main_DDVideoPortNotify_ReleaseNotification(LPDIRECTDRAWVIDEOPORTNOTIFY iface,HANDLE h)218 HRESULT WINAPI Main_DDVideoPortNotify_ReleaseNotification (LPDIRECTDRAWVIDEOPORTNOTIFY iface, HANDLE h)
219 {
220     DX_WINDBG_trace();
221    DX_STUB;
222 }
223 
224 IDirectDrawVideoPortVtbl DirectDrawVideoPort_Vtable =
225 {
226 	Main_DirectDrawVideoPort_QueryInterface,
227 	Main_DirectDrawVideoPort_AddRef,
228 	Main_DirectDrawVideoPort_Release,
229 	Main_DirectDrawVideoPort_Flip,
230 	Main_DirectDrawVideoPort_GetBandwidthInfo,
231 	Main_DirectDrawVideoPort_GetColorControls,
232 	Main_DirectDrawVideoPort_GetInputFormats,
233 	Main_DirectDrawVideoPort_GetOutputFormats,
234 	Main_DirectDrawVideoPort_GetFieldPolarity,
235 	Main_DirectDrawVideoPort_GetVideoLine,
236 	Main_DirectDrawVideoPort_GetVideoSignalStatus,
237 	Main_DirectDrawVideoPort_SetColorControls,
238 	Main_DirectDrawVideoPort_SetTargetSurface,
239 	Main_DirectDrawVideoPort_StartVideo,
240 	Main_DirectDrawVideoPort_StopVideo,
241 	Main_DirectDrawVideoPort_UpdateVideo,
242 	Main_DirectDrawVideoPort_WaitForSync
243 };
244 
245 IDDVideoPortContainerVtbl DDVideoPortContainer_Vtable =
246 {
247     Main_DDVideoPortContainer_QueryInterface,
248     Main_DDVideoPortContainer_AddRef,
249     Main_DDVideoPortContainer_Release,
250     Main_DDVideoPortContainer_CreateVideoPort,
251     Main_DDVideoPortContainer_EnumVideoPorts,
252     Main_DDVideoPortContainer_GetVideoPortConnectInfo,
253     Main_DDVideoPortContainer_QueryVideoPortStatus
254 };
255 
256 IDirectDrawVideoPortNotifyVtbl DDVideoPortNotify_Vtable =
257 {
258    Main_DDVideoPortNotify_QueryInterface,
259    Main_DDVideoPortNotify_AddRef,
260    Main_DDVideoPortNotify_Release,
261    Main_DDVideoPortNotify_AcquireNotification,
262    Main_DDVideoPortNotify_ReleaseNotification
263 };
264