- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
语境:
我正在尝试使用 Delphi 应用程序中的一些 COM 接口(interface)(Direct2D 1.1)。为此,我必须将接口(interface)移植到 Delphi。我已经这样做了,但是其中一个接口(interface)有问题:我调用的方法不正确。我通过在 C++ 和 Delphi 中编写完全相同的代码来验证这一点。在调试器下运行两者,我看到Delphi调用的代码与C++调用的代码不一样。所以我在移植那个接口(interface)时犯了一个错误。
为了找出我的错误在哪里,我想转储所有方法指针以比较 C++ 和 Delphi 显示的地址。它们应该与指向同一个 DLL 的点相同。
我不知道如何掌握VMT!
我已阅读 this但它不适用于我的情况:.h 文件不包含 C 等效项。
我正在寻找类似于我用来检查结构的 offsetof() 和 sizeof() 的东西。以及获取给定接口(interface)方法地址的东西。
任何帮助表示赞赏。
PS:我希望我的英语是可以理解的。
最佳答案
我找到了解决方案,所以我将回答我自己的问题:
下面是将指针为变量“Screen”的接口(interface)的 VMT 加载到指针数组 VMT 所需的代码。代码假设有 93 种方法(实际上是这样)。我还不知道如何获取给定接口(interface)中的方法计数以完全自动化该过程。
UINT_PTR* Ptr1 = reinterpret_cast<UINT_PTR*>(Screen);
UINT_PTR* Ptr2 = reinterpret_cast<UINT_PTR*>(*Ptr1);
UINT_PTR* VMT[92];
for (UINT I = 0; I < ARRAYSIZE(VMT); I++) {
VMT[I] = reinterpret_cast<UINT_PTR*>(*Ptr2);
Ptr2++;
}
我通过使用调试器并加载 Windows 符号验证了此代码是否正常。这在 VMT 中给出以下结果:
+ [0] 0x6dd34e90 {d2d1.dll!ComObjectImpl<class RefCountedObject<class D2DDeviceContext,struct LockingRequired,struct LockFactoryOnReferenceReachedZero>,class type_list<struct ID2D1DeviceContext6,class type_list<struct ID2D1DeviceContext5,class type_list<struct ID2D1DeviceContext4,class type_list<struct ID2D1DeviceContext3,class type_list<struct ID2D1DeviceContext2,class type_list<struct ID2D1DeviceContext1,class type_list<struct ID2D1DeviceContext,class type_list<class IRenderTargetInternal,class type_list<struct ID2D1GdiInteropRenderTarget,class type_list<struct ID2D1ImagingDeviceContext,class type_list<struct ID2D1PrivateCompositorDeviceContext,class type_list<struct ID2D1PrivatePencilDeviceContext,class type_list<struct ID2D1PrivateTestDeviceContext,class type_list<struct ID2D1PrivateInkingDeviceContext,class type_list<struct CompoundCast<struct ID2D1RenderTarget,struct ID2D1DeviceContext6>,class type_list<struct CompoundCast<struct ID2D1Resource,struct ID2D1DeviceContext6>,class null_type> > > > > > > > > > > > > > > > >::QueryInterface(struct _GUID const &,void * *)} {...} unsigned int *
+ [1] 0x6dd208e0 {d2d1.dll!RefCountedObject<class D2DDeviceContext,struct LockingRequired,struct LockFactoryOnReferenceReachedZero>::AddRef(void)} {...} unsigned int *
+ [2] 0x6dcfc150 {d2d1.dll!RefCountedObject<class D2DDeviceContext,struct LockingRequired,struct LockFactoryOnReferenceReachedZero>::Release(void)} {...} unsigned int *
+ [3] 0x6dda0aa0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::GetFactory(struct ID2D1Factory * *)const } {...} unsigned int *
+ [4] 0x6dd99f40 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::CreateBitmap(struct D2D_SIZE_U,void const *,unsigned int,struct D2D1_BITMAP_PROPERTIES const *,struct ID2D1Bitmap * *)} {...} unsigned int *
+ [5] 0x6dd29d40 {d2d1.dll!D2DDeviceContextBase<...>::CreateBitmapFromWicBitmap(void)} {2337640550} unsigned int *
+ [6] 0x6dd9cce0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::CreateSharedBitmap(struct _GUID const &,void *,struct D2D1_BITMAP_PROPERTIES const *,struct ID2D1Bitmap * *)} {...} unsigned int *
+ [7] 0x6dc75440 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::CreateBitmapBrush(struct ID2D1Bitmap *,struct D2D1_BITMAP_BRUSH_PROPERTIES const *,struct D2D1_BRUSH_PROPERTIES const *,struct ID2D1BitmapBrush * *)} {...} unsigned int *
+ [8] 0x6dcfe940 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::CreateSolidColorBrush(struct _D3DCOLORVALUE const *,struct D2D1_BRUSH_PROPERTIES const *,struct ID2D1SolidColorBrush * *)} {...} unsigned int *
+ [9] 0x6dd9b7a0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::CreateGradientStopCollection(struct D2D1_GRADIENT_STOP const *,unsigned int,enum D2D1_GAMMA,enum D2D1_EXTEND_MODE,struct ID2D1GradientStopCollection * *)} {...} unsigned int *
+ [10] 0x6dd9c490 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::CreateLinearGradientBrush(struct D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES const *,struct D2D1_BRUSH_PROPERTIES const *,struct ID2D1GradientStopCollection *,struct ID2D1LinearGradientBrush * *)} {...} unsigned int *
+ [11] 0x6dd9ca10 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::CreateRadialGradientBrush(struct D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES const *,struct D2D1_BRUSH_PROPERTIES const *,struct ID2D1GradientStopCollection *,struct ID2D1RadialGradientBrush * *)} {...} unsigned int *
+ [12] 0x6dd9aec0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::CreateCompatibleRenderTarget(struct D2D_SIZE_F const *,struct D2D_SIZE_U const *,struct D2D1_PIXEL_FORMAT const *,enum D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS,struct ID2D1BitmapRenderTarget * *)} {...} unsigned int *
+ [13] 0x6dd9c330 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::CreateLayer(struct D2D_SIZE_F const *,struct ID2D1Layer * *)} {...} unsigned int *
+ [14] 0x6dd9c6c0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::CreateMesh(struct ID2D1Mesh * *)} {...} unsigned int *
+ [15] 0x6dd9e5e0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::DrawLine(struct D2D_POINT_2F,struct D2D_POINT_2F,struct ID2D1Brush *,float,struct ID2D1StrokeStyle *)} {...} unsigned int *
+ [16] 0x6dd158b0 {d2d1.dll!D2DDeviceContextBase<...>::DrawRectangle(void)} {2337640550} unsigned int *
+ [17] 0x6dd12700 {d2d1.dll!D2DDeviceContextBase<...>::FillRectangle(void)} {2337640550} unsigned int *
+ [18] 0x6dd9e920 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::DrawRoundedRectangle(struct D2D1_ROUNDED_RECT const *,struct ID2D1Brush *,float,struct ID2D1StrokeStyle *)} {...} unsigned int *
+ [19] 0x6dd9fa50 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::FillRoundedRectangle(struct D2D1_ROUNDED_RECT const *,struct ID2D1Brush *)} {...} unsigned int *
+ [20] 0x6dd9db00 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::DrawEllipse(struct D2D1_ELLIPSE const *,struct ID2D1Brush *,float,struct ID2D1StrokeStyle *)} {...} unsigned int *
+ [21] 0x6dd9f3d0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::FillEllipse(struct D2D1_ELLIPSE const *,struct ID2D1Brush *)} {...} unsigned int *
+ [22] 0x6dcd8c00 {d2d1.dll!D2DDeviceContextBase<...>::DrawGeometry(void)} {2337640550} unsigned int *
+ [23] 0x6dcd1660 {d2d1.dll!D2DDeviceContextBase<...>::FillGeometry(void)} {2337640550} unsigned int *
+ [24] 0x6dd9f5f0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::FillMesh(struct ID2D1Mesh *,struct ID2D1Brush *)} {...} unsigned int *
+ [25] 0x6dd9f800 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::FillOpacityMask(struct ID2D1Bitmap *,struct ID2D1Brush *,enum D2D1_OPACITY_MASK_CONTENT,struct D2D_RECT_F const *,struct D2D_RECT_F const *)} {...} unsigned int *
+ [26] 0x6dd12080 {d2d1.dll!D2DDeviceContextBase<...>::DrawBitmap(void)} {2337640550} unsigned int *
+ [27] 0x6dcfafb0 {d2d1.dll!D2DDeviceContextBase<...>::DrawTextW(void)} {2337640550} unsigned int *
+ [28] 0x6dd9ef40 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::DrawTextLayout(struct D2D_POINT_2F,struct IDWriteTextLayout *,struct ID2D1Brush *,enum D2D1_DRAW_TEXT_OPTIONS)} {...} unsigned int *
+ [29] 0x6dc807c0 {d2d1.dll!D2DDeviceContextBase<...>::DrawGlyphRun(void)} {2337640550} unsigned int *
+ [30] 0x6dc7f650 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::SetTransform(struct D2D_MATRIX_3X2_F const *)} {...} unsigned int *
+ [31] 0x6dcfbe30 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::GetTransform(struct D2D_MATRIX_3X2_F *)const } {...} unsigned int *
+ [32] 0x6dcfcbb0 {d2d1.dll!D2DDeviceContextBase<...>::SetAntialiasMode(void)} {2337640550} unsigned int *
+ [33] 0x6dcfcd70 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::GetAntialiasMode(void)const } {...} unsigned int *
+ [34] 0x6dda3cf0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::SetTextAntialiasMode(enum D2D1_TEXT_ANTIALIAS_MODE)} {...} unsigned int *
+ [35] 0x6dcfcf00 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::GetTextAntialiasMode(void)const } {...} unsigned int *
+ [36] 0x6dcfd870 {d2d1.dll!D2DDeviceContextBase<...>::SetTextRenderingParams(void)} {2337640550} unsigned int *
+ [37] 0x6dda1b40 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::GetTextRenderingParams(struct IDWriteRenderingParams * *)const } {...} unsigned int *
+ [38] 0x6dda3a90 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::SetTags(unsigned __int64,unsigned __int64)} {...} unsigned int *
+ [39] 0x6dda1a40 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::GetTags(unsigned __int64 *,unsigned __int64 *)const } {...} unsigned int *
+ [40] 0x6dda2ac0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::PushLayer(struct D2D1_LAYER_PARAMETERS const *,struct ID2D1Layer *)} {...} unsigned int *
+ [41] 0x6dd15c30 {d2d1.dll!D2DDeviceContextBase<...>::PopLayer(void)} {2337640550} unsigned int *
+ [42] 0x6dd13570 {d2d1.dll!D2DDeviceContextBase<...>::Flush(void)} {2337640550} unsigned int *
+ [43] 0x6dd189f0 {d2d1.dll!D2DDeviceContextBase<...>::SaveDrawingState(void)} {2337640550} unsigned int *
+ [44] 0x6dcfc180 {d2d1.dll!D2DDeviceContextBase<...>::RestoreDrawingState(void)} {2337640550} unsigned int *
+ [45] 0x6dcf49d0 {d2d1.dll!D2DDeviceContextBase<...>::PushAxisAlignedClip(void)} {2337640550} unsigned int *
+ [46] 0x6dd13340 {d2d1.dll!D2DDeviceContextBase<...>::PopAxisAlignedClip(void)} {2337640550} unsigned int *
+ [47] 0x6dcdb410 {d2d1.dll!D2DDeviceContextBase<...>::Clear(void)} {2337640550} unsigned int *
+ [48] 0x6dcd8720 {d2d1.dll!D2DDeviceContextBase<...>::BeginDraw(void)} {2337640550} unsigned int *
+ [49] 0x6dcd8900 {d2d1.dll!D2DDeviceContextBase<...>::EndDraw(void)} {2337640550} unsigned int *
+ [50] 0x6dcd2b80 {d2d1.dll!D2DDeviceContextBase<ID2D1DeviceContext6,ID2D1DeviceContext6,null_type>::GetPixelFormat(void)} {...} unsigned int *
+ [51] 0x6dc81160 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::SetDpi(float,float)} {...} unsigned int *
+ [52] 0x6dcfbd00 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::GetDpi(float *,float *)const } {...} unsigned int *
+ [53] 0x6dda1710 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::GetSize(void)const } {...} unsigned int *
+ [54] 0x6dcd2230 {d2d1.dll!D2DDeviceContextBase<ID2D1DeviceContext6,ID2D1DeviceContext6,null_type>::GetPixelSize(void)} {...} unsigned int *
+ [55] 0x6dda12d0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::GetMaximumBitmapSize(void)const } {...} unsigned int *
+ [56] 0x6dda1f40 {d2d1.dll!D2DDeviceContextBase<struct ID2D1BitmapRenderTarget,struct ID2D1BitmapRenderTarget,struct ID2D1DeviceContext6>::IsSupported(struct D2D1_RENDER_TARGET_PROPERTIES const *)const } {...} unsigned int *
+ [57] 0x6dc89b50 {d2d1.dll!D2DDeviceContextBase<ID2D1DeviceContext6,ID2D1DeviceContext6,null_type>::CreateBitmap(void)} {...} unsigned int *
+ [58] 0x6dcfe7f0 {d2d1.dll!D2DDeviceContextBase<ID2D1DeviceContext6,ID2D1DeviceContext6,null_type>::CreateBitmapFromWicBitmap(void)} {...} unsigned int *
+ [59] 0x6dda59d0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::CreateColorContext(enum D2D1_COLOR_SPACE,unsigned char const *,unsigned int,struct ID2D1ColorContext * *)} {...} unsigned int *
+ [60] 0x6dc835c0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::CreateColorContextFromFilename(unsigned short const *,struct ID2D1ColorContext * *)} {...} unsigned int *
+ [61] 0x6dda5ce0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::CreateColorContextFromWicColorContext(struct IWICColorContext *,struct ID2D1ColorContext * *)} {...} unsigned int *
+ [62] 0x6dcad780 {d2d1.dll!D2DDeviceContextBase<ID2D1DeviceContext6,ID2D1DeviceContext6,null_type>::CreateBitmapFromDxgiSurface(void)} {...} unsigned int *
+ [63] 0x6dcdce60 {d2d1.dll!D2DDeviceContextBase<ID2D1DeviceContext6,ID2D1DeviceContext6,null_type>::CreateEffect(void)} {...} unsigned int *
+ [64] 0x6dda6230 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::CreateGradientStopCollection(struct D2D1_GRADIENT_STOP const *,unsigned int,enum D2D1_COLOR_SPACE,enum D2D1_COLOR_SPACE,enum D2D1_BUFFER_PRECISION,enum D2D1_EXTEND_MODE,enum D2D1_COLOR_INTERPOLATION_MODE,struct ID2D1GradientStopCollection1 * *)} {...} unsigned int *
+ [65] 0x6dc7d8b0 {d2d1.dll!D2DDeviceContextBase<ID2D1DeviceContext6,ID2D1DeviceContext6,null_type>::CreateImageBrush(void)} {...} unsigned int *
+ [66] 0x6dc75640 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::CreateBitmapBrush(struct ID2D1Bitmap *,struct D2D1_BITMAP_BRUSH_PROPERTIES1 const *,struct D2D1_BRUSH_PROPERTIES const *,struct ID2D1BitmapBrush1 * *)} {...} unsigned int *
+ [67] 0x6dc7d410 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::CreateCommandList(struct ID2D1CommandList * *)} {...} unsigned int *
+ [68] 0x6dc7a100 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::IsDxgiFormatSupported(enum DXGI_FORMAT)const } {...} unsigned int *
+ [69] 0x6dc80620 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::IsBufferPrecisionSupported(enum D2D1_BUFFER_PRECISION)const } {...} unsigned int *
+ [70] 0x6dc6d0b0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::GetImageLocalBounds(struct ID2D1Image *,struct D2D_RECT_F *)const } {...} unsigned int *
+ [71] 0x6dda8a10 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::GetImageWorldBounds(struct ID2D1Image *,struct D2D_RECT_F *)const } {...} unsigned int *
+ [72] 0x6dcaad10 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::GetGlyphRunWorldBounds(struct D2D_POINT_2F,struct DWRITE_GLYPH_RUN const *,enum DWRITE_MEASURING_MODE,struct D2D_RECT_F *)const } {...} unsigned int *
+ [73] 0x6dc7e2a0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::GetDevice(struct ID2D1Device * *)const } {...} unsigned int *
+ [74] 0x6dcdc240 {d2d1.dll!D2DDeviceContextBase<ID2D1DeviceContext6,ID2D1DeviceContext6,null_type>::SetTarget(void)} {...} unsigned int *
+ [75] 0x6dc84990 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::GetTarget(struct ID2D1Image * *)const } {...} unsigned int *
+ [76] 0x6dc804a0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::SetRenderingControls(struct D2D1_RENDERING_CONTROLS const *)} {...} unsigned int *
+ [77] 0x6dc832e0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::GetRenderingControls(struct D2D1_RENDERING_CONTROLS *)const } {...} unsigned int *
+ [78] 0x6dcfc740 {d2d1.dll!D2DDeviceContextBase<ID2D1DeviceContext6,ID2D1DeviceContext6,null_type>::SetPrimitiveBlend(void)} {...} unsigned int *
+ [79] 0x6dc7cd70 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::GetPrimitiveBlend(void)const } {...} unsigned int *
+ [80] 0x6dcfc810 {d2d1.dll!D2DDeviceContextBase<ID2D1DeviceContext6,ID2D1DeviceContext6,null_type>::SetUnitMode(void)} {...} unsigned int *
+ [81] 0x6dcfbda0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::GetUnitMode(void)const } {...} unsigned int *
+ [82] 0x6dcaaf30 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::DrawGlyphRun(struct D2D_POINT_2F,struct DWRITE_GLYPH_RUN const *,struct DWRITE_GLYPH_RUN_DESCRIPTION const *,struct ID2D1Brush *,enum DWRITE_MEASURING_MODE)} {...} unsigned int *
+ [83] 0x6dcda160 {d2d1.dll!D2DDeviceContextBase<ID2D1DeviceContext6,ID2D1DeviceContext6,null_type>::DrawImage(void)} {...} unsigned int *
+ [84] 0x6dda78d0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::DrawGdiMetafile(struct ID2D1GdiMetafile *,struct D2D_POINT_2F const *)} {...} unsigned int *
+ [85] 0x6dda76a0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::DrawBitmap(struct ID2D1Bitmap *,struct D2D_RECT_F const *,float,enum D2D1_INTERPOLATION_MODE,struct D2D_RECT_F const *,struct D2D_MATRIX_4X4_F const *)} {...} unsigned int *
+ [86] 0x6dd0fac0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::PushLayer(struct D2D1_LAYER_PARAMETERS1 const *,struct ID2D1Layer *)} {...} unsigned int *
+ [87] 0x6dc66a30 {d2d1.dll!D2DDeviceContextBase<ID2D1DeviceContext6,ID2D1DeviceContext6,null_type>::InvalidateEffectInputRectangle(void)} {...} unsigned int *
+ [88] 0x6dc63180 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::GetEffectInvalidRectangleCount(struct ID2D1Effect *,unsigned int *)} {...} unsigned int *
+ [89] 0x6dc634d0 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::GetEffectInvalidRectangles(struct ID2D1Effect *,struct D2D_RECT_F *,unsigned int)} {...} unsigned int *
+ [90] 0x6dc62b50 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::GetEffectRequiredInputRectangles(struct ID2D1Effect *,struct D2D_RECT_F const *,struct D2D1_EFFECT_INPUT_DESCRIPTION const *,struct D2D_RECT_F *,unsigned int)} {...} unsigned int *
+ [91] 0x6dda8420 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::FillOpacityMask(struct ID2D1Bitmap *,struct ID2D1Brush *,struct D2D_RECT_F const *,struct D2D_RECT_F const *)} {...} unsigned int *
+ [92] 0x6dda5f90 {d2d1.dll!D2DDeviceContextBase<struct ID2D1DeviceContext6,struct ID2D1DeviceContext6,class null_type>::CreateFilledGeometryRealization(struct ID2D1Geometry *,float,struct ID2D1GeometryRealization * *)} {...} unsigned int *
您可以看到前 3 个条目是 QueryInterface、AddRef 和 Release 方法,这是所有接口(interface)在其 VMT 中的内容。
关于c++ - 如何获取 C++ 接口(interface) VMT 的地址,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63540361/
编写一个仅用于集中其他接口(interface)的接口(interface)是好的做法还是坏的做法? interface InterfaceA : InterfaceB, InterfaceC { }
有没有一种方法可以确定具体类型从任意接口(interface)列表?我知道类型转换,但我想知道所有满意的接口(interface)。 例如,给定: type Mover interface { Mo
我正在尝试制作斐波那契堆。 (在我正在上的算法课中多次提到它们,我想检查一下。)我希望堆使用任何类型的节点,所以我定义了一个 Node 接口(interface): package node type
这是我的代码: type IA interface { FB() IB } type IB interface { Bar() string } type A struct {
示例 A: // pseudo code interface IFoo { void bar(); } class FooPlatformA : IFoo { void bar() {
合并它编译的 leppies 反馈 - 但 IMO 有一些缺点,我希望编译器强制每个子类定义它们自己的 Uri 属性。现在的代码: [] type UriUserControl() = inh
我正在构建一个项目,该项目从用户那里获取一个术语,然后执行谷歌搜索并返回一个 json 格式的标题列表。 我正在使用 serpwow API 来执行谷歌搜索并试图解析响应。 但是我收到的错误是: pa
我只想在其他接口(interface)中实现某些接口(interface),我不希望它们能够被类直接继承。 提前致谢! 最佳答案 您不能在 C# 中执行此操作 - 任何类都可以实现它有权访问的任何接口
我是 Go 的新手,还有一些我还没有掌握的技巧 例如,我有一个可以这样调用的函数: myVar.InitOperation("foo",Operator.EQUAL,"bar") myVar.Init
我有一个通用接口(interface)来描述对输出流的访问,如下所示: interface IOutput { function writeInteger(aValue:Int):Void;
我正在做一个项目,我想通过某种接口(interface)(最好是 USB)将光电探测器电路安装到计算机上。但是,由于我是新手,所以我不知道应该朝哪个方向处理这个问题。假设我有一个带有 USB 连接的光
背景 我正在尝试创建一个简单的应用程序,以真正理解DDD + TDD + etc的整个堆栈。我的目标是在运行时动态注入DAL存储库类。这让我 域和应用程序服务层可测试。我打算用“穷人的DI”来完成 现
在 Java 中,接口(interface)扩展接口(interface)是完全合法的。 UML 中的这种关系看起来像“扩展”关系(实线、闭合、未填充的箭头)还是“实现”关系(虚线、闭合、未填充的箭头
我想创建一个具有相等和比较函数默认实现的接口(interface)。 如果我从类型 IKeyable 中删除所有内容除了Key成员,只要我不添加默认实现,它就是一个有效的接口(interface)。从
COM 中的双接口(interface)是能够通过 DispInterface 或 VTable 方法访问的接口(interface)。 现在有人可以告诉我这两种方法之间到底有什么区别吗? 我认为 V
我有一个类方法,它返回一个可以迭代的员工列表。返回列表的最佳方式是什么?通常我只返回一个 ArrayList。然而,据我了解,界面更适合这种类型的操作。哪个是最好使用的界面?另外,为什么返回接口(in
我想从包装类外部实例化一个内部非静态接口(interface)。 这可能吗? 考虑以下代码: shared class AOuterClass() { Integer val = 3; shared
我为一个类编写了一个接口(interface),如下所示: public interface IGenericMultipleRepository { Lazy> addresses { ge
我是 UML 的初学者,现在我正在创建一个序列图,问题是我想根据用户输入实现 DAO 接口(interface)。如何在时序图中正确绘制以实现接口(interface)。 最佳答案 您不会在 SD 上
要使用 jsr 303 验证创建有条件验证的组,请将接口(interface)类传递给注释,如下所示: @NotEmpty (groups={UpdateValue.class}) 我有很多不同的接口
我是一名优秀的程序员,十分优秀!