Windows data type conversion to dotnet data type

Source: Internet
Author: User
Tags dotnet

Windows Data Type . NET Data Type
BOOL,BOOLEAN BooleanOrInt32
BSTR String
BYTE Byte
CHAR Char
DOUBLE Double
DWORD Int32OrUInt32
FLOAT Single
HANDLE(and all other handle types, such as HFONT and HMENU ) IntPtr, UintPtr orHandleRef
HRESULT Int32OrUInt32
INT Int32
LANGID Int16OrUInt16
LCID Int32OrUInt32
LONG Int32
LPARAM IntPtr, UintPtr orObject
LPCSTR String
LPCTSTR String
LPCWSTR String
LPSTR Stringor StringBuilder *
LPTSTR StringOrStringBuilder
LPWSTR StringOrStringBuilder
LPVoid IntPtr, UintPtr orObject
LRESULT IntPtr
SAFEARRAY . NET array Type
SHORT Int16
TCHAR Char
UCHAR SByte
UINT Int32OrUInt32
ULONG Int32OrUInt32
VARIANT Object
VARIANT_BOOL Boolean
WCHAR Char
WORD Int16OrUInt16
WPARAM IntPtr, UintPtr orObject

Windows data type conversion to dotnet data type

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.