Conversion of C/C++ Struct To C#.Net CF WinCE

后端 未结 1 1543
伪装坚强ぢ
伪装坚强ぢ 2021-01-23 11:36

Hi I am trying to convert the C/C++ Strcut to C#

C/C++ Struct looks like:

         typedef struct _NDISUIO_QUERY_OID
         {
           NDIS_OID               


        
相关标签:
1条回答
  • 2021-01-23 12:03

    In a previous question of yours, @ctacke said that you won't be able to use MarshalAs(UnmanagedType.LPWStr) with the compact framework. He asserted that you would have to declare that field as IntPtr, and marshal it manually.

    However, this MSDN document states that MarshalAs(UnmanagedType.LPWStr) works under the compact framework. I suppose I am inclined to believe the MSDN documents.

    The final member is also declared incorrectly. The SizeConst must be sizeof(uint).

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