c++:HANDLE(void *) ---- c#:System.IntPtr
c++:WORD(unsigned short) ---- c#:System.UInt16
c++:DWORD(unsigned long) ---- c#:System.UInt32
c++:結構體 ---- c#:public struct 結構體{};
c++:結構體 &變量名 ---- c#:ref 結構體 變量名
c++:結構體 **變量名 ---- c#:out
c++:GUID ---- c#:Guid
c++:UINT8 * ---- c#:ref byte
c++:char*/void*(指向一個字符串) ---- c#:string
對于結構體中的指針數組,對應于C#中的IntPtr[]類型,如:
int * a[] -------------- IntPtr[]a