ITPub博客

首页 > > > 求助如何把C++的typedef union 转换成C#的struct

求助如何把C++的typedef union 转换成C#的struct

作者:choubou 时间:2019-11-12 10:22:43 0 删除 编辑

typedef union _USB_PROTOCOLS {

ULONG ul;

struct {

ULONG Usb110 : 1;

ULONG Usb200 : 1;

ULONG Usb300 : 1;

ULONG ReservedMBZ : 29;

};

} USB_PROTOCOLS, *PUSB_PROTOCOLS;

如上,这一段转换成C#d结构体是什么样的?

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4548/viewspace-3147186/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-10-08

  • 博文量
    175
  • 访问量
    10708