zoukankan      html  css  js  c++  java
  • win32常用数据类型

    BOOL       A   Boolean   value. 
    BSTR       A   32-bit   character   pointer. 
    BYTE       An   8-bit   integer   that   is   not   signed. 
    COLORREF       A   32-bit   value   used   as   a   color   value. 
    DWORD       A   32-bit   unsigned   integer   or   the   address   of   a   segment   and   its   associated   offset. 
    LONG       A   32-bit   signed   integer. 
    LPARAM       A   32-bit   value   passed   as   a   parameter   to   a   window   procedure   or   callback   function. 
    LPCSTR       A   32-bit   pointer   to   a   constant   character   string. 
    LPSTR       A   32-bit   pointer   to   a   character   string. 
    LPCTSTR       A   32-bit   pointer   to   a   constant   character   string   that   is   portable   for   Unicode   and   DBCS. 
    LPTSTR       A   32-bit   pointer   to   a   character   string   that   is   portable   for   Unicode   and   DBCS. 
    LPVOID       A   32-bit   pointer   to   an   unspecified   type. 
    LRESULT       A   32-bit   value   returned   from   a   window   procedure   or   callback   function. 
    UINT       A   16-bit   unsigned   integer   on   Windows   versions   3.0   and   3.1;   a   32-bit   unsigned   integer   on   Win32.
    WNDPROC       A   32-bit   pointer   to   a   window   procedure. 
    WORD       A   16-bit   unsigned   integer. 
    WPARAM       A   value   passed   as   a   parameter   to   a   window   procedure   or   callback   function:   16   bits   on   Windows   versions   3.0   and   3.1;   32   bits   on   Win32.   Data   types   unique   to   the   Microsoft   Foundation   Class   Library   include   the   following:   
    POSITION       A   value   used   to   denote   the   position   of   an   element   in   a   collection;   used   by   MFC   collection   classes. 

    LPCRECT       A   32-bit   pointer   to   a   constant   (nonmodifiable)   RECT   structure.

    一般LP代表指针,C代表const,T代表宽字符,STR代表字符串,这么对应下来大概是这样: 
    e.g.: 

    LPCTSTR   =   const   TCHAR* 

  • 相关阅读:
    腾讯的这款产品,让我不禁打了个冷颤
    奇了,结婚也能写成区块链智能合约
    每个人都在经历淘宝的“大数据杀熟”,这5个办法巧妙避开
    云存储的未来:Scale Up还是Scale Out?
    storj白皮书v3最全面解读,Docker创始人的加入能否扳倒AWS S3
    一切为了解决隐私问题,绿洲实验室Ekiden协议介绍
    为什么去中心化存储也能保证数据不丢失?
    Vue调试辅助神器
    Spring Boot Admin 使用的坑
    Beyond Compare比较文件夹内容
  • 原文地址:https://www.cnblogs.com/wucg/p/1949203.html
Copyright © 2011-2022 走看看