Should DWORD map to int or uint?

后端 未结 7 2148
抹茶落季
抹茶落季 2021-02-06 22:58

When translating the Windows API (including data types) into P/Invoke, should I replace DWORD with int or uint?

It\'s normally unsigned, but I

7条回答
  •  温柔的废话
    2021-02-06 23:17

    The CLS compliance warning applies only if the P/Invoke method is visible outside the assembly, which generally means the call is public. If the method is not externally visible, then it is acceptable to use uint.

提交回复
热议问题