mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 23:35:45 +00:00
Create Stubs for IDirectDrawVideoPortNotify and fix return values of IUnknown Stubs.
svn path=/trunk/; revision=18842
This commit is contained in:
parent
53eca0bb47
commit
ce2340a078
6 changed files with 48 additions and 12 deletions
|
@ -58,7 +58,7 @@ HRESULT WINAPI Main_DirectDrawClipper_SetClipList(
|
||||||
HRESULT WINAPI Main_DirectDrawClipper_QueryInterface(
|
HRESULT WINAPI Main_DirectDrawClipper_QueryInterface(
|
||||||
LPDIRECTDRAWCLIPPER iface, REFIID riid, LPVOID* ppvObj)
|
LPDIRECTDRAWCLIPPER iface, REFIID riid, LPVOID* ppvObj)
|
||||||
{
|
{
|
||||||
DX_STUB;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT WINAPI Main_DirectDrawClipper_GetHWnd(
|
HRESULT WINAPI Main_DirectDrawClipper_GetHWnd(
|
||||||
|
|
|
@ -35,7 +35,7 @@ HRESULT WINAPI
|
||||||
Main_DirectDrawColorControl_QueryInterface(LPDIRECTDRAWCOLORCONTROL iface,
|
Main_DirectDrawColorControl_QueryInterface(LPDIRECTDRAWCOLORCONTROL iface,
|
||||||
REFIID riid, LPVOID* ppvObj)
|
REFIID riid, LPVOID* ppvObj)
|
||||||
{
|
{
|
||||||
DX_STUB;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT WINAPI
|
HRESULT WINAPI
|
||||||
|
|
|
@ -35,7 +35,7 @@ HRESULT WINAPI
|
||||||
Main_DirectDrawGammaControl_QueryInterface(LPDIRECTDRAWGAMMACONTROL iface, REFIID riid,
|
Main_DirectDrawGammaControl_QueryInterface(LPDIRECTDRAWGAMMACONTROL iface, REFIID riid,
|
||||||
LPVOID *ppObj)
|
LPVOID *ppObj)
|
||||||
{
|
{
|
||||||
DX_STUB;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT WINAPI
|
HRESULT WINAPI
|
||||||
|
|
|
@ -63,7 +63,7 @@ HRESULT WINAPI
|
||||||
Main_DirectDrawPalette_QueryInterface(LPDIRECTDRAWPALETTE iface,
|
Main_DirectDrawPalette_QueryInterface(LPDIRECTDRAWPALETTE iface,
|
||||||
REFIID refiid, LPVOID *obj)
|
REFIID refiid, LPVOID *obj)
|
||||||
{
|
{
|
||||||
DX_STUB;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
IDirectDrawPaletteVtbl DirectDrawPalette_Vtable =
|
IDirectDrawPaletteVtbl DirectDrawPalette_Vtable =
|
||||||
|
|
|
@ -117,7 +117,7 @@ HRESULT WINAPI
|
||||||
Main_DDrawSurface_QueryInterface(LPDIRECTDRAWSURFACE7 iface, REFIID riid,
|
Main_DDrawSurface_QueryInterface(LPDIRECTDRAWSURFACE7 iface, REFIID riid,
|
||||||
LPVOID* ppObj)
|
LPVOID* ppObj)
|
||||||
{
|
{
|
||||||
DX_STUB;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT WINAPI Main_DDrawSurface_Blt(LPDIRECTDRAWSURFACE7 iface, LPRECT rdst,
|
HRESULT WINAPI Main_DDrawSurface_Blt(LPDIRECTDRAWSURFACE7 iface, LPRECT rdst,
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS
|
* PROJECT: ReactOS
|
||||||
* FILE: lib/ddraw/main/videoport.c
|
* FILE: lib/ddraw/main/videoport.c
|
||||||
* PURPOSE: IDirectDrawVideoPort and DDVideoPortContainer Implementation
|
* PURPOSE: IDirectDrawVideoPort, DDVideoPortContainer and IDirectDrawVideoPortNotify Implementation
|
||||||
* PROGRAMMER: Maarten Bosma
|
* PROGRAMMER: Maarten Bosma
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -16,19 +16,19 @@
|
||||||
HRESULT WINAPI
|
HRESULT WINAPI
|
||||||
Main_DirectDrawVideoPort_QueryInterface (LPDIRECTDRAWVIDEOPORT iface, REFIID riid, LPVOID* ppvObj)
|
Main_DirectDrawVideoPort_QueryInterface (LPDIRECTDRAWVIDEOPORT iface, REFIID riid, LPVOID* ppvObj)
|
||||||
{
|
{
|
||||||
DX_STUB;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
ULONG WINAPI
|
ULONG WINAPI
|
||||||
Main_DirectDrawVideoPort_AddRef (LPDIRECTDRAWVIDEOPORT iface)
|
Main_DirectDrawVideoPort_AddRef (LPDIRECTDRAWVIDEOPORT iface)
|
||||||
{
|
{
|
||||||
DX_STUB;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ULONG WINAPI
|
ULONG WINAPI
|
||||||
Main_DirectDrawVideoPort_Release (LPDIRECTDRAWVIDEOPORT iface)
|
Main_DirectDrawVideoPort_Release (LPDIRECTDRAWVIDEOPORT iface)
|
||||||
{
|
{
|
||||||
DX_STUB;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT WINAPI
|
HRESULT WINAPI
|
||||||
|
@ -113,17 +113,17 @@ HRESULT WINAPI Main_DirectDrawVideoPort_WaitForSync (LPDIRECTDRAWVIDEOPORT iface
|
||||||
|
|
||||||
HRESULT WINAPI Main_DDVideoPortContainer_QueryInterface (LPDDVIDEOPORTCONTAINER iface, REFIID riid, LPVOID* ppvObj)
|
HRESULT WINAPI Main_DDVideoPortContainer_QueryInterface (LPDDVIDEOPORTCONTAINER iface, REFIID riid, LPVOID* ppvObj)
|
||||||
{
|
{
|
||||||
DX_STUB;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
ULONG WINAPI Main_DDVideoPortContainer_AddRef (LPDDVIDEOPORTCONTAINER iface)
|
ULONG WINAPI Main_DDVideoPortContainer_AddRef (LPDDVIDEOPORTCONTAINER iface)
|
||||||
{
|
{
|
||||||
DX_STUB;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ULONG WINAPI Main_DDVideoPortContainer_Release (LPDDVIDEOPORTCONTAINER iface)
|
ULONG WINAPI Main_DDVideoPortContainer_Release (LPDDVIDEOPORTCONTAINER iface)
|
||||||
{
|
{
|
||||||
DX_STUB;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT WINAPI Main_DDVideoPortContainer_CreateVideoPort (LPDDVIDEOPORTCONTAINER iface, DWORD dwFlags, LPDDVIDEOPORTDESC pPortDesc,
|
HRESULT WINAPI Main_DDVideoPortContainer_CreateVideoPort (LPDDVIDEOPORTCONTAINER iface, DWORD dwFlags, LPDDVIDEOPORTDESC pPortDesc,
|
||||||
|
@ -149,6 +149,33 @@ HRESULT WINAPI Main_DDVideoPortContainer_QueryVideoPortStatus (LPDDVIDEOPORTCONT
|
||||||
DX_STUB;
|
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 =
|
IDirectDrawVideoPortVtbl DirectDrawVideoPort_Vtable =
|
||||||
{
|
{
|
||||||
Main_DirectDrawVideoPort_QueryInterface,
|
Main_DirectDrawVideoPort_QueryInterface,
|
||||||
|
@ -180,3 +207,12 @@ IDDVideoPortContainerVtbl DDVideoPortContainer_Vtable =
|
||||||
Main_DDVideoPortContainer_GetVideoPortConnectInfo,
|
Main_DDVideoPortContainer_GetVideoPortConnectInfo,
|
||||||
Main_DDVideoPortContainer_QueryVideoPortStatus
|
Main_DDVideoPortContainer_QueryVideoPortStatus
|
||||||
};
|
};
|
||||||
|
|
||||||
|
IDirectDrawVideoPortNotifyVtbl DDVideoPortNotify_Vtable =
|
||||||
|
{
|
||||||
|
Main_DDVideoPortNotify_QueryInterface,
|
||||||
|
Main_DDVideoPortNotify_AddRef,
|
||||||
|
Main_DDVideoPortNotify_Release,
|
||||||
|
Main_DDVideoPortNotify_AcquireNotification,
|
||||||
|
Main_DDVideoPortNotify_ReleaseNotification
|
||||||
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue