﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-Welcome to Leon's Blog-随笔分类-windows编程</title><link>http://www.cppblog.com/Leon916/category/8325.html</link><description /><language>zh-cn</language><lastBuildDate>Mon, 29 Sep 2008 18:43:06 GMT</lastBuildDate><pubDate>Mon, 29 Sep 2008 18:43:06 GMT</pubDate><ttl>60</ttl><item><title>VC数据类型 </title><link>http://www.cppblog.com/Leon916/archive/2008/09/29/63043.html</link><dc:creator>Leon916</dc:creator><author>Leon916</author><pubDate>Mon, 29 Sep 2008 07:36:00 GMT</pubDate><guid>http://www.cppblog.com/Leon916/archive/2008/09/29/63043.html</guid><wfw:comment>http://www.cppblog.com/Leon916/comments/63043.html</wfw:comment><comments>http://www.cppblog.com/Leon916/archive/2008/09/29/63043.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/Leon916/comments/commentRss/63043.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/Leon916/services/trackbacks/63043.html</trackback:ping><description><![CDATA[这两天学习windows编程，对里面的类型不熟悉，这是从网上找的一份。<br><br>标识符 实际类型 意义&nbsp; <br>CHAR char 8位Windows(ANSI)字符。&nbsp; <br>CCHAR char 8位Windows(ANSI)字符。&nbsp; <br>PSZ char* 一个以"NULL"结束的Windows字符串的指针&nbsp; <br>PCHAR CHAR* 一个CHAR型指针&nbsp; <br>PSTR CHAR* 一个以"NULL"结尾的8位Windows(ANSI)字符串指针&nbsp; <br>LPSTR CHAR* 一个以"NULL"结尾的8位WINDOWS(ANSI)字符串指针&nbsp; <br>NPSTR CHAR* 一个以"NULL"结尾的8位WINDOWS(ANSI)字符串指针&nbsp; <br>PCSTR CONST CHAR* 一个以"NULL"结尾的8位WINDOWS(ANSI)字符串常量指针&nbsp; <br>LPCSTR CONST CHAR* 一个以"NULL"结尾的8位WINDOWS(ANSI)字符串常量指针&nbsp; <br>WCHAR wchar_t 16位Unicode字符&nbsp; <br>PWCH WCHAR* 一个WCHAR型指针&nbsp; <br>PWCHAR WCHAR* 一个WCHAR型指针&nbsp; <br>PWSTR WCHAR* 一个以"NULL"结尾的16位Unicode字符串指针&nbsp; <br>LPWSTR WCHAR FAR* 一个以"NULL"结尾的16位Unicode字符串指针&nbsp; <br>NWPSTR WCHAR* 一个以"NULL"结尾的16位Unicode字符串指针&nbsp; <br>PCWCH CONST WCHAR* 一个WCHAR型常量指针&nbsp; <br>LPCWCH CONST WCHAR FAR* 一个WCHAR型常量指针&nbsp; <br>PCWSTR CONST WCHAR* 一个以"NULL"结束的16位Unicode字符串常量指针&nbsp; <br>LPCWSTR CONST WCHAR FAR* 一个以"NULL"结尾的16位Unicode字符串常量指针&nbsp; <br>TCHAR WCHAR(或char) 兼容型字符(Unicode中为WCHAR型，Windows中为CHAR型)&nbsp; <br>PTCHAR WCHAR*(或char) 一个TCHAR型指针&nbsp; <br>PTCH LPWSTR(或LPSTR) Unicode中为LPWSTR型，Windows中为LPSTR型&nbsp; <br>LPTCH LPWSTR(或LPSTR) Unicode中为LPWSTR型，Windows中为LPSTR型&nbsp; <br>PTSTR LPWSTR(或LPSTR) Unicode中为LPWSTR型，Windows中为LPSTR型&nbsp; <br>LPTSTR LPWSTR(或LPSTR) Unicode中为LPWSTR型，Windows中为LPSTR型&nbsp; <br>PCTSTR PCWSTR(或PCSTR) Unicode中为PCWSTR型，Windows中为PCSTR型&nbsp; <br>LPCTSTR LPCWSTR(或LPCSTR) Unicode中为LPCWSTR型，Windows中为LPCSTR型&nbsp; <br>UCHAR unsigned char 无符号字符型&nbsp; <br>PUCHAR UCHAR* 一个UCHAR型指针&nbsp; <br>BSTR OLECHAR* 32位字符指针(不推荐使用)&nbsp; <br>OLECHAR wchar_t Unicode字符类型(用于对象链接与嵌入的数据类型，如嵌入Word文档)&nbsp; <br>LPOLESTR OLECHAR* 一个OLECHAR型指针&nbsp; <br>LPCOLESTR const OLECHAR* 指向OLECHAR类型的字符串常量指针&nbsp; <br>---------------------------------------------------<br>
<p>数值类：<br>---------------------------------------------------<br>标识符 实际类型 意义&nbsp; <br>BYTE unsigned char 8位无符号整数&nbsp; <br>PBYTE BYTE near* 一个BYTE型指针&nbsp; <br>LPBYTE BYTE far* 一个BYTE型指针&nbsp; <br>TBYTE WCHAR(或unsigned char) Unicode中为WCHAR型，Windows中为unsigned char型&nbsp; <br>PTBYTE WCHAR*(或unsigned char*) 一个TBYTE型指针&nbsp; <br>BOOL int 布尔变量，其值为(TRUE或FALSE)&nbsp; <br>PBOOL BOOL near* 一个BOOL型指针&nbsp; <br>LPBOOL BOOL far* 一个BOOL型指针&nbsp; <br>BOOLEAN BYTE 布尔变量，其值为(TRUE或FALSE)&nbsp; <br>PBOOLEAN BOOLEAN* 一个BOOLEAN型指针&nbsp; <br>SHORT short 16位短整数(有符号)&nbsp; <br>PSHORT SHORT* 一个SHORT型指针&nbsp; <br>USHORT unsigned short 无符号短整型&nbsp; <br>PUSHORT USHORT* 一个USHORT型指针&nbsp; <br>INT int 32位符号整数&nbsp; <br>INT32&nbsp; 32位符号整数&nbsp; <br>INT64&nbsp; 64位符号整数&nbsp; <br>INT_PTR&nbsp; Signed integral type for pointer precision.Use when casting a pointer to an integer to perform pointer arithmetic.&nbsp; <br>PINT INT near* 一个INT型指针&nbsp; <br>LPINT INT far* 一个INT型指针&nbsp; <br>UINT unsigned int 无符号的整型&nbsp; <br>UINT32&nbsp; 无符号的INT32型&nbsp; <br>UINT64&nbsp; 无符号的INT64型&nbsp; <br>UINT_PTR&nbsp; 无符号的INT_PTR型&nbsp; <br>PUINT UINT* 一个UINT型指针&nbsp; <br>LONG long 32位符号整数&nbsp; <br>LONG32&nbsp; 32位符号整数&nbsp; <br>LONG64&nbsp; 64位符号整数&nbsp; <br>LONGLONG __int64(或double) 64位符号整数&nbsp; <br>LONG_PTR&nbsp; Signed long type for pointer precision.Use when casting a pointer to a long to perform pointer arithmetic.&nbsp; <br>PLONG LONG near* 一个LONG型指针&nbsp; <br>LPLONG LONG far* 一个LONG型指针&nbsp; <br>PLONGLONG LONGLONG* 一个LONGLONG型指针&nbsp; <br>ULONG unsigned long 无符号的LONG型&nbsp; <br>ULONG32&nbsp; 无符号的LONG32型&nbsp; <br>ULONG64&nbsp; 无符号的LONG64型&nbsp; <br>ULONGLONG unsigned __int64(或double) 64位无符号整型&nbsp; <br>ULONG_PTR&nbsp; 无符号的LONG_PTR型&nbsp; <br>PULONG ULONG* 一个ULONG型指针&nbsp; <br>PULONGLONG ULONGLONG* 一个ULONGLONG型指针&nbsp; <br>WORD unsigned short 16位无符号整型&nbsp; <br>PWORD WORD near* 一个WORD型指针&nbsp; <br>LPWORD WORD far* 一个WORD型指针&nbsp; <br>DWORD unsigned long 32位无符号整数&nbsp; <br>DWORD32&nbsp; 32位无符号整型&nbsp; <br>DWORD64&nbsp; 64位无符号整型&nbsp; <br>DWORD_PTR&nbsp; Unsigned long type for pointer precision.Use when casting a pointer to a long type to perform pointer arithmetic.(Also commonly used for general 32-bit parameters that have been extended to 64 bits in 64-bit Windows.&nbsp; <br>PDWORD DWORD near* 一个DWORD型指针&nbsp; <br>LPDWORD DWORD far* 一个DWORD型指针&nbsp; <br>FLOAT float 浮点变量&nbsp; <br>PFLOAT FLOAT near* 一个FLOAT型指针&nbsp; <br>---------------------------------------------------</p>
<p>句柄类：<br>---------------------------------------------------<br>标识符 实际类型 意义&nbsp; <br>HANDLE void* 对象句柄(32位无符号整数)&nbsp; <br>PHANDLE HANDLE NEAR* 一个HANDLE型指针&nbsp; <br>SPHANDLE HANDLE NEAR* 一个HANDLE型指针&nbsp; <br>LPHANDLE HANDLE FAR* 一个HANDLE型指针&nbsp; <br>GLOBALHANDLE HANDLE 一个全局句柄&nbsp; <br>HDC HANDLE 设备描述表(DC)句柄&nbsp; <br>HBITMAP HANDLE 位图句柄&nbsp; <br>HBRUSH HANDLE 画刷句柄&nbsp; <br>HICON HANDLE 图标句柄&nbsp; <br>HCURSOR HICON 光标句柄&nbsp; <br>HPALETTE HANDLE 调色板句柄&nbsp; <br>HPEN HANDLE 画笔句柄&nbsp; <br>HCONV&nbsp; 动态数据交换(DDE)会话句柄&nbsp; <br>HACCEL HANDLE 加速键表句柄&nbsp; <br>HCONVLIST&nbsp; DDE会话列表句柄&nbsp; <br>HDDEDATA&nbsp; DDE数据句柄&nbsp; <br>HDESK HANDLE 桌面句柄&nbsp; <br>HDLG&nbsp;&nbsp;&nbsp; 对话框句柄&nbsp; <br>HDROP&nbsp;&nbsp;&nbsp; 一个internal drop structure句柄。&nbsp; <br>HDWP&nbsp;&nbsp;&nbsp; 延期窗口位置结构句柄&nbsp; <br>HENHMETAFILE HANDLE 增强图元文件句柄&nbsp; <br>HFILE int或short 文件句柄，用于函数OpenFile，不是CreateFile&nbsp; <br>HFONT HANDLE 字体句柄&nbsp; <br>HGDIOBJ HANDLE(void NEAR*) GDI对象句柄&nbsp; <br>HGLOBAL HANDLE 全局内存块句柄&nbsp; <br>HHOOK HANDLE 钩子句柄&nbsp; <br>HIMAGELIST&nbsp;&nbsp;&nbsp; 映像列表句柄&nbsp; <br>HIMC&nbsp;&nbsp;&nbsp; 输入描述表句柄&nbsp; <br>HINSTANCE HANDLE 实例句柄(32位无符号整数)&nbsp; <br>HKEY&nbsp;&nbsp;&nbsp; 登记关键字句柄&nbsp; <br>HKL HANDLE Input locale identifier.&nbsp;</p>
<img src ="http://www.cppblog.com/Leon916/aggbug/63043.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/Leon916/" target="_blank">Leon916</a> 2008-09-29 15:36 <a href="http://www.cppblog.com/Leon916/archive/2008/09/29/63043.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>开始学习windows编程</title><link>http://www.cppblog.com/Leon916/archive/2008/09/20/62350.html</link><dc:creator>Leon916</dc:creator><author>Leon916</author><pubDate>Sat, 20 Sep 2008 06:30:00 GMT</pubDate><guid>http://www.cppblog.com/Leon916/archive/2008/09/20/62350.html</guid><wfw:comment>http://www.cppblog.com/Leon916/comments/62350.html</wfw:comment><comments>http://www.cppblog.com/Leon916/archive/2008/09/20/62350.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/Leon916/comments/commentRss/62350.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/Leon916/services/trackbacks/62350.html</trackback:ping><description><![CDATA[从今天开始学习windows编程，这完全是为了应对这次找工作。<br>1、首先理解windows程序运行的一些基本知识。网址：<a href="http://book.csdn.net/bookfiles/29/index.html">http://book.csdn.net/bookfiles/29/index.html</a>，先理解这里面的东西<br>2、学习windows编程书，理解其中的每一个例子程序。<br>3、了解操作系统。 
<img src ="http://www.cppblog.com/Leon916/aggbug/62350.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/Leon916/" target="_blank">Leon916</a> 2008-09-20 14:30 <a href="http://www.cppblog.com/Leon916/archive/2008/09/20/62350.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>