1 void   void Same to left2 char(8 bits, signed)  sbyte(8 bits, signed) sbyte should be used if the argument means one-byte
data, and char should be used if it means one character.3 BYTE
(8 bits, unsigned)
byte
(8 bits unsigned)
byte
(8 bits, unsigned)
4 TCHAR
(16 bits)
string char
(16 bits)
5 Short
(16 bits, signed)
short/Int16
(16 bits, signed) Same to the left
6 WORD
(16 bits, unsigned)
ushort/UInt16
(16 bits, unsigned) Same to the left
7 Int
(32 bits, signed)
int/Int32 Same to the left
8 Long
(32 bits, signed)
int/Int32 Same to the left
9 DWORD
(32 bits, unsigned)uint/UInt32
(32 bits, unsigned)
 
Same to the left10 struct _bbb{ ... }   bbb struct bbb{...}     Same to the left11 char*      ref sbyte   Same to the left12 BYTE*      ref byte    Same to the left13 TCHAR*    ref string   Same to the left14 short*    ref short    Same to the left15 WORD*     ref ushort   Same to the left16 int*      ref Int32    Same to the left17 long*     ref Int32   Same to the left18 DWORD*    ref uint    Same to the left

解决方案 »

  1.   

    使用VB的API Text Viewer声明后
    在转换为C#
      

  2.   

    Wtypes.h 中的非托管类型    非托管C 语言类型    托管类名       说明 
    HANDLE                     void*               System.IntPtr  32 位 
    BYTE                       unsigned char       System.Byte    8 位 
    SHORT                      short               System.Int16   16 位 
    WORD                       unsigned short      System.UInt16  16 位 
    INT                        int                 System.Int32   32 位 
    UINT                       unsigned int        System.UInt32  32 位 
    LONG                       long                System.Int32   32 位 
    BOOL                       long                System.Int32   32 位 
    DWORD                      unsigned long       System.UInt32  32 位 
    ULONG                      unsigned long       System.UInt32  32 位 
    CHAR                       char                System.Char    用 ANSI 修饰。 
    LPSTR                      char*               System.String 或 System.StringBuilder 用 ANSI 修饰。 
    LPCSTR                     Const char*         System.String 或 System.StringBuilder 用 ANSI 修饰。 
    LPWSTR                     wchar_t*             System.String 或 System.StringBuilder 用 Unicode 修饰。 
    LPCWSTR                     Const wchar_t*      System.String 或 System.StringBuilder 用 Unicode 修饰。 
    FLOAT                      Float                System.Single 32 位 
    DOUBLE                     Double                 System.Double 64 位