📄 vmr9.h
字号:
/* [in] */ DWORD SurfaceIndex,
/* [in] */ DWORD SurfaceFlags,
/* [out] */ IDirect3DSurface9 **lplpSurface);
HRESULT ( STDMETHODCALLTYPE *AdviseNotify )(
IVMRSurfaceAllocator9 * This,
/* [in] */ IVMRSurfaceAllocatorNotify9 *lpIVMRSurfAllocNotify);
END_INTERFACE
} IVMRSurfaceAllocator9Vtbl;
interface IVMRSurfaceAllocator9
{
CONST_VTBL struct IVMRSurfaceAllocator9Vtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IVMRSurfaceAllocator9_QueryInterface(This,riid,ppvObject) \
(This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
#define IVMRSurfaceAllocator9_AddRef(This) \
(This)->lpVtbl -> AddRef(This)
#define IVMRSurfaceAllocator9_Release(This) \
(This)->lpVtbl -> Release(This)
#define IVMRSurfaceAllocator9_InitializeDevice(This,dwUserID,lpAllocInfo,lpNumBuffers) \
(This)->lpVtbl -> InitializeDevice(This,dwUserID,lpAllocInfo,lpNumBuffers)
#define IVMRSurfaceAllocator9_TerminateDevice(This,dwID) \
(This)->lpVtbl -> TerminateDevice(This,dwID)
#define IVMRSurfaceAllocator9_GetSurface(This,dwUserID,SurfaceIndex,SurfaceFlags,lplpSurface) \
(This)->lpVtbl -> GetSurface(This,dwUserID,SurfaceIndex,SurfaceFlags,lplpSurface)
#define IVMRSurfaceAllocator9_AdviseNotify(This,lpIVMRSurfAllocNotify) \
(This)->lpVtbl -> AdviseNotify(This,lpIVMRSurfAllocNotify)
#endif /* COBJMACROS */
#endif /* C style interface */
HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocator9_InitializeDevice_Proxy(
IVMRSurfaceAllocator9 * This,
/* [in] */ DWORD_PTR dwUserID,
/* [in] */ VMR9AllocationInfo *lpAllocInfo,
/* [out][in] */ DWORD *lpNumBuffers);
void __RPC_STUB IVMRSurfaceAllocator9_InitializeDevice_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocator9_TerminateDevice_Proxy(
IVMRSurfaceAllocator9 * This,
/* [in] */ DWORD_PTR dwID);
void __RPC_STUB IVMRSurfaceAllocator9_TerminateDevice_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocator9_GetSurface_Proxy(
IVMRSurfaceAllocator9 * This,
/* [in] */ DWORD_PTR dwUserID,
/* [in] */ DWORD SurfaceIndex,
/* [in] */ DWORD SurfaceFlags,
/* [out] */ IDirect3DSurface9 **lplpSurface);
void __RPC_STUB IVMRSurfaceAllocator9_GetSurface_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocator9_AdviseNotify_Proxy(
IVMRSurfaceAllocator9 * This,
/* [in] */ IVMRSurfaceAllocatorNotify9 *lpIVMRSurfAllocNotify);
void __RPC_STUB IVMRSurfaceAllocator9_AdviseNotify_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
#endif /* __IVMRSurfaceAllocator9_INTERFACE_DEFINED__ */
#ifndef __IVMRSurfaceAllocatorNotify9_INTERFACE_DEFINED__
#define __IVMRSurfaceAllocatorNotify9_INTERFACE_DEFINED__
/* interface IVMRSurfaceAllocatorNotify9 */
/* [unique][helpstring][uuid][local][object][local] */
EXTERN_C const IID IID_IVMRSurfaceAllocatorNotify9;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("dca3f5df-bb3a-4d03-bd81-84614bfbfa0c")
IVMRSurfaceAllocatorNotify9 : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE AdviseSurfaceAllocator(
/* [in] */ DWORD_PTR dwUserID,
/* [in] */ IVMRSurfaceAllocator9 *lpIVRMSurfaceAllocator) = 0;
virtual HRESULT STDMETHODCALLTYPE SetD3DDevice(
/* [in] */ IDirect3DDevice9 *lpD3DDevice,
/* [in] */ HMONITOR hMonitor) = 0;
virtual HRESULT STDMETHODCALLTYPE ChangeD3DDevice(
/* [in] */ IDirect3DDevice9 *lpD3DDevice,
/* [in] */ HMONITOR hMonitor) = 0;
virtual HRESULT STDMETHODCALLTYPE AllocateSurfaceHelper(
/* [in] */ VMR9AllocationInfo *lpAllocInfo,
/* [out][in] */ DWORD *lpNumBuffers,
/* [out] */ IDirect3DSurface9 **lplpSurface) = 0;
virtual HRESULT STDMETHODCALLTYPE NotifyEvent(
/* [in] */ LONG EventCode,
/* [in] */ LONG_PTR Param1,
/* [in] */ LONG_PTR Param2) = 0;
};
#else /* C style interface */
typedef struct IVMRSurfaceAllocatorNotify9Vtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IVMRSurfaceAllocatorNotify9 * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */ void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IVMRSurfaceAllocatorNotify9 * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IVMRSurfaceAllocatorNotify9 * This);
HRESULT ( STDMETHODCALLTYPE *AdviseSurfaceAllocator )(
IVMRSurfaceAllocatorNotify9 * This,
/* [in] */ DWORD_PTR dwUserID,
/* [in] */ IVMRSurfaceAllocator9 *lpIVRMSurfaceAllocator);
HRESULT ( STDMETHODCALLTYPE *SetD3DDevice )(
IVMRSurfaceAllocatorNotify9 * This,
/* [in] */ IDirect3DDevice9 *lpD3DDevice,
/* [in] */ HMONITOR hMonitor);
HRESULT ( STDMETHODCALLTYPE *ChangeD3DDevice )(
IVMRSurfaceAllocatorNotify9 * This,
/* [in] */ IDirect3DDevice9 *lpD3DDevice,
/* [in] */ HMONITOR hMonitor);
HRESULT ( STDMETHODCALLTYPE *AllocateSurfaceHelper )(
IVMRSurfaceAllocatorNotify9 * This,
/* [in] */ VMR9AllocationInfo *lpAllocInfo,
/* [out][in] */ DWORD *lpNumBuffers,
/* [out] */ IDirect3DSurface9 **lplpSurface);
HRESULT ( STDMETHODCALLTYPE *NotifyEvent )(
IVMRSurfaceAllocatorNotify9 * This,
/* [in] */ LONG EventCode,
/* [in] */ LONG_PTR Param1,
/* [in] */ LONG_PTR Param2);
END_INTERFACE
} IVMRSurfaceAllocatorNotify9Vtbl;
interface IVMRSurfaceAllocatorNotify9
{
CONST_VTBL struct IVMRSurfaceAllocatorNotify9Vtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IVMRSurfaceAllocatorNotify9_QueryInterface(This,riid,ppvObject) \
(This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
#define IVMRSurfaceAllocatorNotify9_AddRef(This) \
(This)->lpVtbl -> AddRef(This)
#define IVMRSurfaceAllocatorNotify9_Release(This) \
(This)->lpVtbl -> Release(This)
#define IVMRSurfaceAllocatorNotify9_AdviseSurfaceAllocator(This,dwUserID,lpIVRMSurfaceAllocator) \
(This)->lpVtbl -> AdviseSurfaceAllocator(This,dwUserID,lpIVRMSurfaceAllocator)
#define IVMRSurfaceAllocatorNotify9_SetD3DDevice(This,lpD3DDevice,hMonitor) \
(This)->lpVtbl -> SetD3DDevice(This,lpD3DDevice,hMonitor)
#define IVMRSurfaceAllocatorNotify9_ChangeD3DDevice(This,lpD3DDevice,hMonitor) \
(This)->lpVtbl -> ChangeD3DDevice(This,lpD3DDevice,hMonitor)
#define IVMRSurfaceAllocatorNotify9_AllocateSurfaceHelper(This,lpAllocInfo,lpNumBuffers,lplpSurface) \
(This)->lpVtbl -> AllocateSurfaceHelper(This,lpAllocInfo,lpNumBuffers,lplpSurface)
#define IVMRSurfaceAllocatorNotify9_NotifyEvent(This,EventCode,Param1,Param2) \
(This)->lpVtbl -> NotifyEvent(This,EventCode,Param1,Param2)
#endif /* COBJMACROS */
#endif /* C style interface */
HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocatorNotify9_AdviseSurfaceAllocator_Proxy(
IVMRSurfaceAllocatorNotify9 * This,
/* [in] */ DWORD_PTR dwUserID,
/* [in] */ IVMRSurfaceAllocator9 *lpIVRMSurfaceAllocator);
void __RPC_STUB IVMRSurfaceAllocatorNotify9_AdviseSurfaceAllocator_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocatorNotify9_SetD3DDevice_Proxy(
IVMRSurfaceAllocatorNotify9 * This,
/* [in] */ IDirect3DDevice9 *lpD3DDevice,
/* [in] */ HMONITOR hMonitor);
void __RPC_STUB IVMRSurfaceAllocatorNotify9_SetD3DDevice_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocatorNotify9_ChangeD3DDevice_Proxy(
IVMRSurfaceAllocatorNotify9 * This,
/* [in] */ IDirect3DDevice9 *lpD3DDevice,
/* [in] */ HMONITOR hMonitor);
void __RPC_STUB IVMRSurfaceAllocatorNotify9_ChangeD3DDevice_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocatorNotify9_AllocateSurfaceHelper_Proxy(
IVMRSurfaceAllocatorNotify9 * This,
/* [in] */ VMR9AllocationInfo *lpAllocInfo,
/* [out][in] */ DWORD *lpNumBuffers,
/* [out] */ IDirect3DSurface9 **lplpSurface);
void __RPC_STUB IVMRSurfaceAllocatorNotify9_AllocateSurfaceHelper_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocatorNotify9_NotifyEvent_Proxy(
IVMRSurfaceAllocatorNotify9 * This,
/* [in] */ LONG EventCode,
/* [in] */ LONG_PTR Param1,
/* [in] */ LONG_PTR Param2);
void __RPC_STUB IVMRSurfaceAllocatorNotify9_NotifyEvent_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
#endif /* __IVMRSurfaceAllocatorNotify9_INTERFACE_DEFINED__ */
/* interface __MIDL_itf_vmr9_0011 */
/* [local] */
typedef /* [public] */
enum __MIDL___MIDL_itf_vmr9_0011_0001
{ VMR9ARMode_None = 0,
VMR9ARMode_LetterBox = VMR9ARMode_None + 1
} VMR9AspectRatioMode;
extern RPC_IF_HANDLE __MIDL_itf_vmr9_0011_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_vmr9_0011_v0_0_s_ifspec;
#ifndef __IVMRWindowlessControl9_INTERFACE_DEFINED__
#define __IVMRWindowlessControl9_INTERFACE_DEFINED__
/* interface IVMRWindowlessControl9 */
/* [unique][helpstring][uuid][local][object][local] */
EXTERN_C const IID IID_IVMRWindowlessControl9;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("8f537d09-f85e-4414-b23b-502e54c79927")
IVMRWindowlessControl9 : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE GetNativeVideoSize(
/* [out] */ LONG *lpWidth,
/* [out] */ LONG *lpHeight,
/* [out] */ LONG *lpARWidth,
/* [out] */ LONG *lpARHeight) = 0;
virtual HRESULT STDMETHODCALLTYPE GetMinIdealVideoSize(
/* [out] */ LONG *lpWidth,
/* [out] */ LONG *lpHeight) = 0;
virtual HRESULT STDMETHODCALLTYPE GetMaxIdealVideoSize(
/* [out] */ LONG *lpWidth,
/* [out] */ LONG *lpHeight) = 0;
virtual HRESULT STDMETHODCALLTYPE SetVideoPosition(
/* [in] */ const LPRECT lpSRCRect,
/* [in] */ const LPRECT lpDSTRect) = 0;
virtual HRESULT STDMETHODCALLTYPE GetVideoPosition(
/* [out] */ LPRECT lpSRCRect,
/* [out] */ LPRECT lpDSTRect) = 0;
virtual HRESULT STDMETHODCALLTYPE GetAspectRatioMode(
/* [out] */ DWORD *lpAspectRatioMode) = 0;
virtual HRESULT STDMETHODCALLTYPE SetAspectRatioMode(
/* [in] */ DWORD AspectRatioMode) = 0;
virtual HRESULT STDMETHODCALLTYPE SetVideoClippingWindow(
/* [in] */ HWND hwnd) = 0;
virtual HRESULT STDMETHODCALLTYPE RepaintVideo(
/* [in] */ HWND hwnd,
/* [in] */ HDC hdc) = 0;
virtual HRESULT STDMETHODCALLTYPE DisplayModeChanged( void) = 0;
virtual HRESULT STDMETHODCALLTYPE GetCurrentImage(
/* [out] */ BYTE **lpDib) = 0;
virtual HRESULT STDMETHODCALLTYPE SetBorderColor(
/* [in] */ COLORREF Clr) = 0;
virtual HRESULT STDMETHODCALLTYPE GetBorderColor(
/* [out] */ COLORREF *lpClr) = 0;
};
#else /* C style interface */
typedef struct IVMRWindowlessControl9Vtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IVMRWindowlessControl9 * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */ void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IVMRWindowlessControl9 * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IVMRWindowlessControl9 * This);
HRESULT ( STDMETHODCALLTYPE *GetNativeVideoSize )(
IVMRWindowlessControl9 * This,
/* [out] */ LONG *lpWidth,
/* [out] */ LONG *lpHeight,
/* [out] */ LONG *lpARWidth,
/* [out] */ LONG *lpARHeight);
HRESULT ( STDMETHODCALLTYPE *GetMinIdealVideoSize )(
IVMRWindowlessControl9 * This,
/* [out] */ LONG *lpWidth,
/* [out] */ LONG *lpHeight);
HRESULT ( STDMETHODCALLTYPE *GetMaxIdealVideoSize )(
IVMRWindowlessControl9 * This,
/* [out] */ LONG *lpWidth,
/* [out] */ LONG *lpHeight);
HRESULT ( STDMETHODCALLTYPE *SetVideoPosition )(
IVMRWindowlessControl9 * This,
/* [in] */ const LPRECT lpSRCRect,
/* [in] */ const LPRECT lpDSTRect);
HRESULT ( STDMETHODCALLTYPE *GetVideoPosition )(
IVMRWindowlessControl9 * This,
/* [out] */ LPRECT lpSRCRect,
/* [out] */ LPRECT lpDSTRect);
HRESULT ( STDMETHODCALLTYPE *GetAspectRatioMode )(
IVMRWindowlessControl9 * This,
/* [out] */ DWORD *lpAspectRatioMode);
HRESULT ( STDMETHODCALLTYPE *SetAspectRatioMode )(
IVMRWindowlessControl9 * This,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -