//IntPtr转自定义结构
struct onlydata
{
IntPtr hwnd;
};
onlydata pd=new onlydata();
IntPtr pd;
pd=Marshal.PtrToStructure(pd,typeof(onlydata));

//自定义结构转IntPtr
Marshal.StructureToPtr(data,pd,true);


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案