--- trunk/reactos/lib/ddraw/main/clipper.c 2005-10-29 10:33:12 UTC (rev 18841)
+++ trunk/reactos/lib/ddraw/main/clipper.c 2005-10-29 10:37:26 UTC (rev 18842)
@@ -58,7 +58,7 @@
HRESULT WINAPI Main_DirectDrawClipper_QueryInterface(
LPDIRECTDRAWCLIPPER iface, REFIID riid, LPVOID* ppvObj)
{
- DX_STUB;
+ return E_NOINTERFACE;
}
HRESULT WINAPI Main_DirectDrawClipper_GetHWnd(
--- trunk/reactos/lib/ddraw/main/palette.c 2005-10-29 10:33:12 UTC (rev 18841)
+++ trunk/reactos/lib/ddraw/main/palette.c 2005-10-29 10:37:26 UTC (rev 18842)
@@ -63,7 +63,7 @@
Main_DirectDrawPalette_QueryInterface(LPDIRECTDRAWPALETTE iface,
REFIID refiid, LPVOID *obj)
{
- DX_STUB;
+ return E_NOINTERFACE;
}
IDirectDrawPaletteVtbl DirectDrawPalette_Vtable =
--- trunk/reactos/lib/ddraw/main/surface.c 2005-10-29 10:33:12 UTC (rev 18841)
+++ trunk/reactos/lib/ddraw/main/surface.c 2005-10-29 10:37:26 UTC (rev 18842)
@@ -117,7 +117,7 @@
Main_DDrawSurface_QueryInterface(LPDIRECTDRAWSURFACE7 iface, REFIID riid,
LPVOID* ppObj)
{
- DX_STUB;
+ return E_NOINTERFACE;
}
HRESULT WINAPI Main_DDrawSurface_Blt(LPDIRECTDRAWSURFACE7 iface, LPRECT rdst,
--- trunk/reactos/lib/ddraw/main/videoport.c 2005-10-29 10:33:12 UTC (rev 18841)
+++ trunk/reactos/lib/ddraw/main/videoport.c 2005-10-29 10:37:26 UTC (rev 18842)
@@ -3,7 +3,7 @@
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS
* FILE: lib/ddraw/main/videoport.c
- * PURPOSE: IDirectDrawVideoPort and DDVideoPortContainer Implementation
+ * PURPOSE: IDirectDrawVideoPort, DDVideoPortContainer and IDirectDrawVideoPortNotify Implementation
* PROGRAMMER: Maarten Bosma
*
*/
@@ -16,19 +16,19 @@
HRESULT WINAPI
Main_DirectDrawVideoPort_QueryInterface (LPDIRECTDRAWVIDEOPORT iface, REFIID riid, LPVOID* ppvObj)
{
- DX_STUB;
+ return E_NOINTERFACE;
}
ULONG WINAPI
Main_DirectDrawVideoPort_AddRef (LPDIRECTDRAWVIDEOPORT iface)
{
- DX_STUB;
+ return 1;
}
ULONG WINAPI
Main_DirectDrawVideoPort_Release (LPDIRECTDRAWVIDEOPORT iface)
{
- DX_STUB;
+ return 0;
}
HRESULT WINAPI
@@ -113,17 +113,17 @@
HRESULT WINAPI Main_DDVideoPortContainer_QueryInterface (LPDDVIDEOPORTCONTAINER iface, REFIID riid, LPVOID* ppvObj)
{
- DX_STUB;
+ return E_NOINTERFACE;
}
ULONG WINAPI Main_DDVideoPortContainer_AddRef (LPDDVIDEOPORTCONTAINER iface)
{
- DX_STUB;
+ return 1;
}
ULONG WINAPI Main_DDVideoPortContainer_Release (LPDDVIDEOPORTCONTAINER iface)
{
- DX_STUB;
+ return 0;
}
HRESULT WINAPI Main_DDVideoPortContainer_CreateVideoPort (LPDDVIDEOPORTCONTAINER iface, DWORD dwFlags, LPDDVIDEOPORTDESC pPortDesc,
@@ -149,6 +149,33 @@
DX_STUB;
}
+/************* IDirectDrawVideoPortNotify *************/
+
+HRESULT WINAPI Main_DDVideoPortNotify_QueryInterface (LPDIRECTDRAWVIDEOPORTNOTIFY iface, REFIID riid, LPVOID* ppvObj)
+{
+ return E_NOINTERFACE;
+}
+
+ULONG WINAPI Main_DDVideoPortNotify_AddRef (LPDIRECTDRAWVIDEOPORTNOTIFY iface)
+{
+ return 1;
+}
+
+ULONG WINAPI Main_DDVideoPortNotify_Release (LPDIRECTDRAWVIDEOPORTNOTIFY iface)
+{
+ return 0;
+}
+
+HRESULT WINAPI Main_DDVideoPortNotify_AcquireNotification (LPDIRECTDRAWVIDEOPORTNOTIFY iface, HANDLE* h, LPDDVIDEOPORTNOTIFY pVideoPortNotify)
+{
+ DX_STUB;
+}
+
+HRESULT WINAPI Main_DDVideoPortNotify_ReleaseNotification (LPDIRECTDRAWVIDEOPORTNOTIFY iface, HANDLE h)
+{
+ DX_STUB;
+}
+
IDirectDrawVideoPortVtbl DirectDrawVideoPort_Vtable =
{
Main_DirectDrawVideoPort_QueryInterface,
@@ -180,3 +207,12 @@
Main_DDVideoPortContainer_GetVideoPortConnectInfo,
Main_DDVideoPortContainer_QueryVideoPortStatus
};
+
+IDirectDrawVideoPortNotifyVtbl DDVideoPortNotify_Vtable =
+{
+ Main_DDVideoPortNotify_QueryInterface,
+ Main_DDVideoPortNotify_AddRef,
+ Main_DDVideoPortNotify_Release,
+ Main_DDVideoPortNotify_AcquireNotification,
+ Main_DDVideoPortNotify_ReleaseNotification
+};