undefined behaviour with StructLayout and FieldOffset

后端 未结 1 1569
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-29 06:09

I have extracted with success a structure object from a valid pointer using the PtrToStructure function (in VB.NET), but the result of some object members are not correct (compa

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-29 06:43

    this problem is solved. by changing the offset located in 8 and 12 and modifing the pointer parameter by another value.

    0 讨论(0)
提交回复
热议问题