Create Stubs for IDirectDrawVideoPortNotify and fix return values of
IUnknown Stubs.
Modified: trunk/reactos/lib/ddraw/main/clipper.c
Modified: trunk/reactos/lib/ddraw/main/color.c
Modified: trunk/reactos/lib/ddraw/main/gamma.c
Modified: trunk/reactos/lib/ddraw/main/palette.c
Modified: trunk/reactos/lib/ddraw/main/surface.c
Modified: trunk/reactos/lib/ddraw/main/videoport.c
_____
Modified: trunk/reactos/lib/ddraw/main/clipper.c
--- 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(
_____
Modified: trunk/reactos/lib/ddraw/main/color.c
--- trunk/reactos/lib/ddraw/main/color.c 2005-10-29 10:33:12 UTC
(rev 18841)
+++ trunk/reactos/lib/ddraw/main/color.c 2005-10-29 10:37:26 UTC
(rev 18842)
@@ -35,7 +35,7 @@
Main_DirectDrawColorControl_QueryInterface(LPDIRECTDRAWCOLORCONTROL
iface,
REFIID riid, LPVOID* ppvObj)
{
- DX_STUB;
+ return E_NOINTERFACE;
}
HRESULT WINAPI
_____
Modified: trunk/reactos/lib/ddraw/main/gamma.c
--- trunk/reactos/lib/ddraw/main/gamma.c 2005-10-29 10:33:12 UTC
(rev 18841)
+++ trunk/reactos/lib/ddraw/main/gamma.c 2005-10-29 10:37:26 UTC
(rev 18842)
@@ -35,7 +35,7 @@
Main_DirectDrawGammaControl_QueryInterface(LPDIRECTDRAWGAMMACONTROL
iface, REFIID riid,
LPVOID *ppObj)
{
- DX_STUB;
+ return E_NOINTERFACE;
}
HRESULT WINAPI
_____
Modified: trunk/reactos/lib/ddraw/main/palette.c
--- 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 =
_____
Modified: trunk/reactos/lib/ddraw/main/surface.c
--- 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,
_____
Modified: trunk/reactos/lib/ddraw/main/videoport.c
--- 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
+};