zoukankan      html  css  js  c++  java
  • Interop时候.Net和Win32对应数据类型

    Win32 Types Specification CLR Type
    char, INT8, SBYTE, CHAR(^)  8-bit signed integer System.SByte
    short, short int, INT16, SHORT 16-bit signed integer System.Int16
    int, long, long int, INT32, LONG32, BOOL(^) , INT 32-bit signed integer System.Int32
    __int64, INT64, LONGLONG 64-bit signed integer System.Int64
    unsigned char, UINT8, UCHAR(^) , BYTE 8-bit unsigned integer System.Byte
    unsigned short, UINT16, USHORT, WORD, ATOM, WCHAR(^) , __wchar_t 16-bit unsigned integer System.UInt16
    unsigned, unsigned int, UINT32, ULONG32, DWORD32, ULONG, DWORD, UINT 32-bit unsigned integer System.UInt32
    unsigned __int64, UINT64, DWORDLONG, ULONGLONG 64-bit unsigned integer System.UInt64
    float, FLOAT Single-precision floating point System.Single
    double, long double, DOUBLE Double-precision floating point System.Double
    (^) In Win32 this type is an integer with a specially assigned meaning; in contrast, the CLR provides a specific type devoted to this meaning.

    对HANDLE、PVOID或LPVOID类型,用System.IntPtr。比较null值,用Int32.Zero。
  • 相关阅读:
    图片处理中的Dithering技术
    网络I/O模型
    并发编程(二)
    并发编程(一)
    socket编程(二)
    socket编程(一)
    异常处理
    软件开发规范
    面向对象进阶
    多态与封装
  • 原文地址:https://www.cnblogs.com/dxz/p/interop_data_passing.html
Copyright © 2011-2022 走看看