﻿<?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>IT博客-学好delphi-随笔分类-windows API函数</title><link>http://www.cnitblog.com/shuyezi122/category/7997.html</link><description>我delphi笔记,你的参与就是对我最大的支持,还有汇编语言也在学
我的QQ群:79598397
</description><language>zh-cn</language><lastBuildDate>Wed, 28 Sep 2011 16:16:35 GMT</lastBuildDate><pubDate>Wed, 28 Sep 2011 16:16:35 GMT</pubDate><ttl>60</ttl><item><title>转Delphi托盘编程实战演练</title><link>http://www.cnitblog.com/shuyezi122/archive/2010/01/20/63840.html</link><dc:creator>小叶子</dc:creator><author>小叶子</author><pubDate>Wed, 20 Jan 2010 12:25:00 GMT</pubDate><guid>http://www.cnitblog.com/shuyezi122/archive/2010/01/20/63840.html</guid><wfw:comment>http://www.cnitblog.com/shuyezi122/comments/63840.html</wfw:comment><comments>http://www.cnitblog.com/shuyezi122/archive/2010/01/20/63840.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/shuyezi122/comments/commentRss/63840.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/shuyezi122/services/trackbacks/63840.html</trackback:ping><description><![CDATA[在Delphi中涉及到系统编程的方面毫无例外都要调用API函数，在ShellAPI.pas单元中有要用到的API函数的原型。<br>实战演练：<br>一．新建一个应用程序： File-&gt;New Applicaton，在uses后部分定义一个消息常量：<br>WM_NID=WM_USER+1000; 系统规定从WM_USER开始为用户自定义消息。<br>再定义过程<br>procedure WMNID(var msg:TMessage);message WM_NID;<br>二．定义一个全局变量： NotifyIcon:TNotifyIconData，NotifyIcon是非常重要的一个变量，整个程序基本上是围着这个变量在转。TNotifyIconData是一个记录类型，按住Ctrl键，在TNotifyIconData 双击即进入ShellAPI.pas单元。（注：在Delphi中，这是一个非常好的对源代码进行分析的方法，源代码说明一切，你要想知道程序背后的内幕，最好的方法就是分析源代码！）此时出现了以下赋值语句：<br>TNotifyIconData = TNotifyIconDataA，这个意思很明显，就是说TNotifyIconData和TNotifyIconDataA是同种数据类型，接着往下看有：TNotifyIconDataA = _NOTIFYICONDATAA，意思与刚才的一样，再往下看： <br>type<br>_NOTIFYICONDATAA = record<br>&nbsp;&nbsp;&nbsp;&nbsp; cbSize: DWORD;<br>&nbsp;&nbsp;&nbsp;&nbsp; Wnd: HWND;<br>&nbsp;&nbsp;&nbsp;&nbsp; uID: UINT;<br>&nbsp;&nbsp;&nbsp;&nbsp; uFlags: UINT;<br>&nbsp;&nbsp;&nbsp;&nbsp; uCallbackMessage: UINT;<br>&nbsp;&nbsp;&nbsp;&nbsp; hIcon: HICON;<br>&nbsp;&nbsp;&nbsp;&nbsp; szTip: array [0..63] of AnsiChar;<br>end;<br>这可真是&#8220;千呼万唤始出来，犹抱琵琶半遮面&#8221;。现在大家很清楚了，我们刚才定义的全局变量NotifyIcon其实是一个包含有7个成分的记录类型变量，就相当于C/C++中的结构体变量（C/C++的程序员应该是再熟悉不过了）。下面我们逐个来解释记录类型中的7个部分各有什么功能。<br>1&gt; cbSize就是你定义的NotifyIcon变量的大小，用SizeOf(TNotifyIconData)可以取得，如果你是一个熟练的C/C++程序员，你应该不会陌生。在C/C++中，每当要为一个结构体变量分配内存的时候都要：通过 SizeOf(Struct type) 来获知存放一个这样的结构体变量要多少内存。<br>2&gt; Wnd是一个句柄，你希望托盘程序产生的消息有哪个窗体来处理就让Wnd指向那个窗体。<br>例如：你准备在任务栏的托盘小图标上单击时窗体是窗体在&#8220;显示&#8221;和&#8220;隐藏&#8221;之间切换，则把Wnd指向主窗体。<br>3&gt; uID:如果你要创建多个托盘小程序，那么怎么区分它们呢？就是靠这个ID号来区分。<br>3&gt; uFlags是一个标志位，它表示当前所创建的托盘程序具有哪些性质：<br>&nbsp;&nbsp;&nbsp;&nbsp; NIF_ICON&nbsp;&nbsp;&nbsp;&nbsp; 表示当前所设置的图标（即hIcon的值）是有效的 <br>&nbsp;&nbsp;&nbsp;&nbsp; NIF_MESSAGE 表示当前所设置的系统消息（即uCallBackMessage的值）是有效的<br>&nbsp;&nbsp;&nbsp;&nbsp; NIF_TIP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 表示当前所设置的提示条（即szTip的值）是有效的。<br>4&gt; uCallBackMessage这是7个部分里面最重要的一个。这里指定一个回调消息，也就是说这里定义一个消息名，当你单击或者右击托盘图标的时候就会向你在Wnd所指向的窗体发送一个你在<br>uCallBackMessage中定义的消息名，然后你在程序中定义一个消息出来函数来处理这个消息。这样就把Windows关于消息的整套流程都处理好了。 <br>6&gt; hIcon为托盘图标的句柄，根据这个句柄你就可以增加、修改、删除。<br>7&gt; szTip就是当你的鼠标放到任务栏托盘的小图标上的时候弹出来的提示信息。<br>在这里我花了大量的笔墨介绍TNotifyIconData的内幕，把这部分搞清楚了，后面的东西就顺理成章了。<br>三． 双击主窗体，进入FormCreate的代码区域：<br>&nbsp;&nbsp; TForm1.FormCreate(Sender:TObject);<br>&nbsp;&nbsp; Begin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //NotifyIcon为全局变量，在程序的开头已经定义了<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; with NotifyIcon do<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; begin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cbSize:=SizeOf(TNotifyIconData);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Wnd:=Handle;&nbsp;&nbsp; //指向当前窗体Form1的句柄<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uID:=1;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uFlags:=NIM_ICON or NIM_MESSAGE or NIM_TIP;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uCallBackMessage:=WM_NID;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hIcon:=Application.Icon.Handle;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; szTip:=&#8221;张家恶少&#8221;；<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;.<br>&nbsp;&nbsp;&nbsp;&nbsp; //把设置好的变量NotifyIcon加入到系统中以便处理<br>&nbsp;&nbsp;&nbsp; Shell_NotifyIcon(NIM_ADD,@NotifyIcon);<br>&nbsp;&nbsp; End;<br>四．接下来就是定义一个消息处理函数：系统给窗体发来了一个消息，就由下面这个函数来处理。每个消息处理函数都是处理某一类消息的，大家仔细地看看下面函数体的定义和一般的函数定义有什么不一样：消息处理函数要在后面加上消息的名称，这样当系统发来WM_NID消息时，就是自动触发<br>WMNID消息处理函数。<br>procedure tform1.WMNID(var msg:TMessage);message WM_NID;<br>begin<br>&nbsp;&nbsp; case msg.LParam of<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WM_LBUTTONUp; Form1.Visible:=not Form1.Visible;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WM_RBUTTONUP: ShowMessage(&#8216;您点击的是右键&#8217;);<br>&nbsp;&nbsp; End;<br>End;<br>好了，一个最简单的程序诞生了，大家自己设置好自己喜欢的图标.<br>Project-&gt;Options,选中Application页面，在Icon项中加载自己喜欢的图标，这样程序运行时，在任务栏里显示的就是你喜欢的图标了。当你单击图标时，窗体Form1会在可见与不可见之间切换，也就是说单击一下显示，再单击一下又隐藏。当你右击图标的时候会弹出一条消息：&#8220;你点击的是右键&#8221;。<br>五．最后要记住在关闭应用程序的时候要释放掉建立的托盘程序，否则会占用系统资源。<br>TForm1.FormDestroy(Sender:TObject);<br>Begin<br>Shell_NotifyIcon(NIM_DELETE,@NotifyIcon);<br>End;
<p>毕业快半年了，很多东西在学校总理解不了，认识不够深刻；出到社会，接触了不少道中朋友，受益非浅，每有心得体会，总想写成文字，一来总结自己学的东西，二来和大家共同交流。</p>
<p>&nbsp;</p>
<p>//托盘图标是否显示<br>procedure HideSysTray(visible:boolean); <br>var <br>Tray, Child : hWnd; <br>C : array[0..127] of char; <br>S : string; <br>begin <br>Tray := FindWindow('Shell_TrayWnd', NIL); <br>Child := GetWindow(Tray, GW_CHILD); <br>While Child &lt;&gt; 0 do <br>begin <br>If GetClassName(Child, C, SizeOf(C)) &gt; 0 Then <br>Begin <br>S := StrPAS(C); <br>If UpperCase(S) = 'TRAYNOTIFYWND' then <br>begin <br>If visible then ShowWindow(Child, 1) <br>else ShowWindow(Child, 0); <br>end; <br>end; <br>Child := GetWindow(Child, GW_HWNDNEXT); <br>end; <br>end; <br>当自定义过程 HideSysTray() 的参数为 False 时,托盘区隐藏，参数为 True 时，托盘区显示。</p>
<img src ="http://www.cnitblog.com/shuyezi122/aggbug/63840.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/shuyezi122/" target="_blank">小叶子</a> 2010-01-20 20:25 <a href="http://www.cnitblog.com/shuyezi122/archive/2010/01/20/63840.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>API获取网页源文件</title><link>http://www.cnitblog.com/shuyezi122/archive/2009/02/09/54368.html</link><dc:creator>小叶子</dc:creator><author>小叶子</author><pubDate>Sun, 08 Feb 2009 19:36:00 GMT</pubDate><guid>http://www.cnitblog.com/shuyezi122/archive/2009/02/09/54368.html</guid><wfw:comment>http://www.cnitblog.com/shuyezi122/comments/54368.html</wfw:comment><comments>http://www.cnitblog.com/shuyezi122/archive/2009/02/09/54368.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnitblog.com/shuyezi122/comments/commentRss/54368.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/shuyezi122/services/trackbacks/54368.html</trackback:ping><description><![CDATA[<p>工程中加:<br>&nbsp; Memo1: TMemo;<br>&nbsp;&nbsp;&nbsp; Button1: TButton;两个<br>在uses中加入wininet,windows;<br><br>implementation</p>
<p>{$R *.dfm}</p>
<p>function GetWebPage(const Url: string):string;<br>var<br>Session,<br>HttpFile:HINTERNET;<br>szSizeBuffer:Pointer;<br>dwLengthSizeBuffer:DWord;<br>dwReserved:DWord;<br>dwFileSize:DWord;<br>dwBytesRead:DWord;<br>Contents:PChar;<br>begin<br>Session:=InternetOpen('',0,niL,niL,0);<br>HttpFile:=InternetOpenUrl(Session,PChar(Url),niL,0,0,0);<br>dwLengthSizeBuffer:=1024;<br>HttpQueryInfo(HttpFile,5,szSizeBuffer,dwLengthSizeBuffer,dwReserved);<br>GetMem(Contents,dwFileSize);<br>InternetReadFile(HttpFile,Contents,dwFileSize,dwBytesRead);<br>InternetCloseHandle(HttpFile);<br>InternetCloseHandle(Session);<br>Result:=StrPas(Contents);<br>form1.Memo1.Lines.Add(Contents);<br>FreeMem(Contents);<br>end;</p>
<p>procedure TForm1.Button1Click(Sender: TObject);<br>begin<br>&nbsp;&nbsp; GetWebPage(pchar('http://www.baidu.com'));</p>
<p>end;<br></p>
<img src ="http://www.cnitblog.com/shuyezi122/aggbug/54368.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/shuyezi122/" target="_blank">小叶子</a> 2009-02-09 03:36 <a href="http://www.cnitblog.com/shuyezi122/archive/2009/02/09/54368.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>API窗口句柄函数</title><link>http://www.cnitblog.com/shuyezi122/archive/2009/02/08/54362.html</link><dc:creator>小叶子</dc:creator><author>小叶子</author><pubDate>Sun, 08 Feb 2009 13:28:00 GMT</pubDate><guid>http://www.cnitblog.com/shuyezi122/archive/2009/02/08/54362.html</guid><wfw:comment>http://www.cnitblog.com/shuyezi122/comments/54362.html</wfw:comment><comments>http://www.cnitblog.com/shuyezi122/archive/2009/02/08/54362.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/shuyezi122/comments/commentRss/54362.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/shuyezi122/services/trackbacks/54362.html</trackback:ping><description><![CDATA[FindWindow(<br>&nbsp; lpClassName,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=#008000>{窗口的类名}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>&nbsp; lpWindowName: PChar <font color=#008000>{窗口的标题}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>): HWND;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=#008000>{返回窗口的句柄; 失败返回 0}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br><br>FindWindowEx(<br>&nbsp; Parent: HWND;&nbsp;&nbsp;&nbsp;&nbsp; <font color=#008000>{要查找子窗口的父窗口句柄}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>&nbsp; Child: HWND;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=#008000>{子窗口句柄}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>&nbsp; ClassName: PChar; <font color=#008000>{}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>&nbsp; WindowName: PChar <font color=#008000>{}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>): HWND;<br><br>GetClassName(<br>&nbsp; hWnd: HWND;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=#008000>{指定窗口句柄}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>&nbsp; lpClassName: PChar; <font color=#008000>{缓冲区}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>&nbsp; nMaxCount: Integer&nbsp; <font color=#008000>{缓冲区大小}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>): Integer;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=#008000>{返回类名大小; 失败返回 0}<font color=#3468a4>获取指定窗口的类名</font> </font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br><br>GetNextWindow(<br>&nbsp; hWnd: HWND; <font color=#008000>{指定的窗口句柄}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>&nbsp; uCmd: UINT&nbsp; <font color=#008000>{指定的关系选项}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>): HWND;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=#008000>{失败返回0; 成功返回符合的窗口句柄}</font><br><font color=#008000>//uCmd 可选值:<br></font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font>GW_HWNDNEXT&nbsp; = <font color=#008000></font><font color=#008284></font><font color=#0000ff>2</font><font color=#000080><strong></strong></font>; <font color=#008000>{同级别 Z 序之下}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>GW_HWNDPREV&nbsp; = <font color=#008000></font><font color=#008284></font><font color=#0000ff>3</font><font color=#000080><strong></strong></font>; <font color=#008000>{同级别 Z 序之上}<font color=#3468a4>获取指定窗口Z上或Z下的窗口的句柄</font> <br><br></font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font>GetTopWindow(<br>&nbsp; hWnd: HWND; <font color=#008000>{指定的窗口句柄}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>): HWND;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=#008000>{失败返回0; 成功返回最顶层的子窗口句柄}</font><font color=#3468a4>获取指定窗口的子窗口中最顶层的窗口句柄</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br><br>GetWindow(<br>&nbsp; hWnd: HWND; <font color=#008000>{指定的窗口句柄}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>&nbsp; uCmd: UINT&nbsp; <font color=#008000>{指定的关系选项}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>): HWND;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=#008000>{失败返回0; 成功返回符合的窗口句柄}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br><br><font color=#008000>//uCmd 可选值:<br></font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font>GW_HWNDFIRST = <font color=#008000></font><font color=#008284></font><font color=#0000ff>0</font><font color=#000080><strong></strong></font>; <font color=#008000>{同级别第一个}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>GW_HWNDLAST&nbsp; = <font color=#008000></font><font color=#008284></font><font color=#0000ff>1</font><font color=#000080><strong></strong></font>; <font color=#008000>{同级别最后一个}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>GW_HWNDNEXT&nbsp; = <font color=#008000></font><font color=#008284></font><font color=#0000ff>2</font><font color=#000080><strong></strong></font>; <font color=#008000>{同级别下一个}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>GW_HWNDPREV&nbsp; = <font color=#008000></font><font color=#008284></font><font color=#0000ff>3</font><font color=#000080><strong></strong></font>; <font color=#008000>{同级别上一个}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>GW_OWNER&nbsp;&nbsp;&nbsp;&nbsp; = <font color=#008000></font><font color=#008284></font><font color=#0000ff>4</font><font color=#000080><strong></strong></font>; <font color=#008000>{属主窗口}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>GW_CHILD&nbsp;&nbsp;&nbsp;&nbsp; = <font color=#008000></font><font color=#008284></font><font color=#0000ff>5</font><font color=#000080><strong></strong></font>; <font color=#008000>{子窗口}<font color=#3468a4>获取与指定窗口具有指定关系的窗口的句柄</font> <br><br></font><font color=#000000>GetForegroundWindow: HWND;<br></font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><font color=#3468a4>&nbsp;获取前台窗口的句柄</font> <br><br>GetWindowTextLength(<br>&nbsp; hWnd: HWND <font color=#008000>{窗口句柄}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br>): Integer;&nbsp; <font color=#008000>{返回窗口标题长度}<font color=#3468a4> 获取窗口标题长度</font> <br><br><font color=#000000>GetWindowText(<br>&nbsp; hWnd: HWND;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><font color=#008000>{窗口句柄}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br><font color=#000000>&nbsp; lpString: PChar;&nbsp;&nbsp; </font><font color=#008000>{接收文本的缓冲区的指针}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br><font color=#000000>&nbsp; nMaxCount: Integer </font><font color=#008000>{指定缓冲区大小, 其中包含NULL字符; 如果文本超出，会被被截断}</font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br><font color=#000000>): Integer;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><font color=#008000>{返回字符个数, 不包括中断的空字符; 如果标题为空或句柄无效, 则返回零}<br><font color=#3468a4>&nbsp;获取窗口标题</font> <br><br></font></font><font color=#000000>SetWindowText(<br>&nbsp; hWnd: HWND;&nbsp;&nbsp;&nbsp;&nbsp; {窗口句柄}<br>&nbsp; lpString: PChar {新标题串指针}<br>): BOOL;<font color=#3468a4>设置窗口标题</font> <br><br>GetDesktopWindow: HWND; {无参数; 返回桌面窗口的句柄}<br></font><font color=#008284></font><font color=#0000ff></font><font color=#000080><strong></strong></font><br><br><br>
<img src ="http://www.cnitblog.com/shuyezi122/aggbug/54362.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/shuyezi122/" target="_blank">小叶子</a> 2009-02-08 21:28 <a href="http://www.cnitblog.com/shuyezi122/archive/2009/02/08/54362.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>API数据j里的数据类型</title><link>http://www.cnitblog.com/shuyezi122/archive/2009/01/24/53993.html</link><dc:creator>小叶子</dc:creator><author>小叶子</author><pubDate>Fri, 23 Jan 2009 17:07:00 GMT</pubDate><guid>http://www.cnitblog.com/shuyezi122/archive/2009/01/24/53993.html</guid><wfw:comment>http://www.cnitblog.com/shuyezi122/comments/53993.html</wfw:comment><comments>http://www.cnitblog.com/shuyezi122/archive/2009/01/24/53993.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/shuyezi122/comments/commentRss/53993.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/shuyezi122/services/trackbacks/53993.html</trackback:ping><description><![CDATA[ATOM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 原子（原子表中的一个字符串的参考） <br>BOOL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 布尔变量 <br>BOOLEAN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 布尔变量 <br>BYTE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 字节（8位） <br>CCHAR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Windows字符 <br>CHAR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Windows字符 <br>COLORREF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 红、绿、蓝(RGB)彩色值(32位) <br>Const&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 变量，该变量的值在执行期间保持为常量 <br>CRITICAL_SECTION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 临界段对象 <br>CTRYID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 国名标识符 <br>DLGPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个对话框过程的指针 <br>DWORD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 双字(32位) <br>ENHMFENUMPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的回调函数的指针，该回调函数枚举增强的元文件记录 <br>ENUMRESLANGPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的回调函数的指针，该回调函数枚举资源语言。 <br>ENUMRESNAMEPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的回调函数的指针，该回调函数枚举资源名称。 <br>ENUMRESTYPEPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的回调函数的指针，该回调函数枚举资源类型。&nbsp; <br>FARPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个回调函数的指针 <br>FLOAT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 浮点变量 <br>FMORDER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32位字体映射值的数组 <br>FONTENUMPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的回调函数的指针，该回调函数枚举字体 <br>GOBJENUMPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的回调函数的指针，该回调函数枚举图形设备接口(GDI)对象 <br>HACCEL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 加速键表句柄 <br>HANDLE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 对象的句柄 <br>HBITMAP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 位图句柄 <br>HBRUSH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 画刷句柄 <br>HCONV&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 动态数据交换(DDE)会话句柄 <br>HCONVLIST&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DDE会话句柄 <br>HCURSOR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 光标句柄 <br>HDC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 设备描述表(DC)句柄 <br>HDDEDATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DDE数据句柄 <br>HDLG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 对话框句柄 <br>HDWP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 延期窗口位置结构句柄 <br>HENHMETAFILE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 增强原文件句柄 <br>HFILE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 文件句柄 <br>HFONT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 字体句柄 <br>HGDIOBJ&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GDI对象句柄 <br>HGLOBAL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 全局内存块句柄 <br>HHOOK&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 钩子句柄 <br>HICON&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 图标句柄 <br>HINSTANCE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 实例句柄 <br>HKEY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 登记关键字句柄 <br>HLOCAL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 局部内存块句柄 <br>HMEMU&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 菜单句柄 <br>HMETAFILE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 元文件句柄 <br>HMIDIIN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 乐器的数字化接口(MIDI)输入文件句柄 <br>HMIDIOUT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MIDI输出文件句柄 <br>HMMIO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 文件句柄 <br>HOOKPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的钩子函数的指针 <br>HPALETTE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 调色板句柄 <br>HPEN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 画笔句柄 <br>HRGN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 域句柄 <br>HRSRC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 资源句柄 <br>HSZ&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DDE字符串句柄 <br>HWAVEIN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 波形输入文件句柄 <br>HWAVEOUT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 波形输出文件句柄 <br>HWINSTA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 工作站句柄 <br>HWND&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 窗口句柄 <br>INT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 符号整数 <br>LANGID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 语言标识符 <br>LCID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 所在国(Locale)标识符 <br>LCTYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 所在国类型 <br>LINEDDAPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个回调函数的指针，该回调函数处理行坐标 <br>LONG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32位符号整数 <br>LP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个以"NULL"结束的Unicode(TM)字符串的指针 <br>LPARAM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32位消息参数 <br>LPBOOL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个布尔变量的指针 <br>LPBYTE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个字节的指针 <br>LPCCH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个Windows字符常量的指针 <br>LPCCHOOKPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的钩子函数的指针 <br>LPCFHOOLPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的钩子函数的指针 <br>LPCH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个Windows字符的指针 <br>LPCOLORREF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个COLORREF值的指针 <br>LPCRITICAL_SECTION&nbsp;&nbsp;&nbsp;&nbsp; 指向一个临界段对象的指针 <br>LPCSTR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个以"NULL"结束的WINDOWS字符串常量的指针 <br>LPCTSTR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个以"NULL"结束的Unicode或Windows字符串常量的指针&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>LPCWCH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个以"NULL"指向一个以"NULL"结束的Unicode字符常量的指针&nbsp;&nbsp; <br>LPCWSTR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个以"NULL"指向一个以"NULL"结束的Unicode字符串常量的指针&nbsp; <br>LPDWORD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个无符号双字(32位)的指针&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>LPFRHOOLPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的钩子函数的指针 <br>LPHANDLE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个句柄的指针 <br>LOHANDLER_FUNCTION&nbsp;&nbsp;&nbsp;&nbsp; 指向一个处理程序函数的指针 <br>LPHWAVEIN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个波形输入文件句柄的指针 <br>LPHWAVEOUT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个波形输出文件句柄的指针 <br>LPINT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个符号整数的指针 <br>LPLONG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个符号长整数(32位)的指针 <br>LPOFNHOOKPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的钩子函数的指针 <br>LPPRINTHOOKPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的钩子函数的指针 <br>LPSETUPHOOKPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的钩子函数的指针 <br>LPTSTR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个以NULL结束的Unicode或Windows字符串的指针 <br>LRESULT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 消息处理的符号结果 <br>LPVOID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向任何类型的指针 <br>LPWSTR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个以"NULL"结束的Unicode字符串的指针 <br>LUID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 局部唯一的标识符 <br>MCIDEVICEID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 媒体控制接口(MCI)设备标识符 <br>MFENUMPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的回调函数的指针，该回调函数枚举元文件记录 <br>MMRESULT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 多媒体消息的处理结果 <br>NPSTR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个以"NULL"结束的Windows字符串的指针 <br>NWPSTR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个以"NULL"结束的Unicode字符串的指针 <br>PBOOL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个布尔变量的指针 <br>PBYTE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个字节的指针 <br>PCCH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个Windows字符常量的指针 <br>PCH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个Windows字符的指针 <br>PCHAR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个Windows字符的指针 <br>PCRITICAL_SECTION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个临界段对象的指针 <br>PCSTR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个以"NULL"结束的Windows字符串常量的指针 <br>PCWCH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个Unicode字符常量的指针 <br>PCWSTR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个以"NULL"结束的Unicode字符串常量的指针 <br>PDWORD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个无符号双字的指针 <br>PFLOAT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个浮点变量的指针 <br>PFNCALLBACK&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个回调函数的指针 <br>PHANDLE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个句柄的指针 <br>PHANDLER_ROUTINE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个处理程序的指针 <br>PHKEY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个登记关键字的指针 <br>PINT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个符号整数的指针 <br>PLONG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个符号长整数的指针 <br>PLUID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个局部唯一的表示符(LUID)的指针 <br>PROPENUMPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的回调函数的指针，该回调函数枚举窗口特征 <br>PSHORT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个符号短整数的指针 <br>PSID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个加密标识符(SID)的指针 <br>PSTR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个以"NULL"结束的Windows字符串的指针 <br>PSZ&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个以"NULL"结束的Windows字符串的指针 <br>PTCH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个Windows或Unicode字符的指针 <br>PTCHAR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个Windows或Unicode字符的指针 <br>PTSTR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个以"NULL"结束的Windows或Unicode字符串的指针 <br>PUCHAR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个无符号Windows字符的指针 <br>PUINT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个无符号整数的指针 <br>PULONG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个无符号长整数的指针 <br>PUSHORT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个无符号短整数的指针 <br>PVOID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向任何类型的指针 <br>PWCH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个Unicode字符的指针 <br>PWCHAR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个Unicode字符的指针 <br>PWORD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个无符号字的指针 <br>PWSTR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个以"NULL"结束的Unicode字符串的指针 <br>REGSAM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 登记关键字的加密掩码 <br>SC_HANDLE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 服务句柄 <br>SERVICE_STATUS_HANDLE&nbsp; 服务状态值句柄 <br>SHORT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 短整数 <br>SPHANDLE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个句柄的指针 <br>TCHAR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unicode或Windows字符 <br>TIMERPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的定时器回调函数的指针 <br>UCHAR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 无符号Windows字符 <br>UINT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 无符号整数 <br>ULONG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 无符号长整数 <br>USHORT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 无符号短整数 <br>VOID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 任何类型 <br>WCHAR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unicode字符 <br>WNDENUMPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的回调函数的指针，该回调函数枚举窗口 <br>WNDPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个应用程序定义的窗口过程的指针 <br>WORD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 无符号字(16位) <br>WPARAM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32位消息参数 <br>YIELDPROC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 指向一个输出回调函数的指针
<img src ="http://www.cnitblog.com/shuyezi122/aggbug/53993.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/shuyezi122/" target="_blank">小叶子</a> 2009-01-24 01:07 <a href="http://www.cnitblog.com/shuyezi122/archive/2009/01/24/53993.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>win32 API 中文  电子书(chm)</title><link>http://www.cnitblog.com/shuyezi122/archive/2009/01/21/53941.html</link><dc:creator>小叶子</dc:creator><author>小叶子</author><pubDate>Wed, 21 Jan 2009 09:39:00 GMT</pubDate><guid>http://www.cnitblog.com/shuyezi122/archive/2009/01/21/53941.html</guid><wfw:comment>http://www.cnitblog.com/shuyezi122/comments/53941.html</wfw:comment><comments>http://www.cnitblog.com/shuyezi122/archive/2009/01/21/53941.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cnitblog.com/shuyezi122/comments/commentRss/53941.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/shuyezi122/services/trackbacks/53941.html</trackback:ping><description><![CDATA[<p>些书由陈国强编写<br>中文说明<br>下载点击<br><a href="http://www.cnitblog.com/Files/shuyezi122/API32.rar">/Files/shuyezi122/API32.rar</a><br><br></p>
<img src ="http://www.cnitblog.com/shuyezi122/aggbug/53941.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/shuyezi122/" target="_blank">小叶子</a> 2009-01-21 17:39 <a href="http://www.cnitblog.com/shuyezi122/archive/2009/01/21/53941.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>内存操作API函数</title><link>http://www.cnitblog.com/shuyezi122/archive/2009/01/21/53940.html</link><dc:creator>小叶子</dc:creator><author>小叶子</author><pubDate>Wed, 21 Jan 2009 09:32:00 GMT</pubDate><guid>http://www.cnitblog.com/shuyezi122/archive/2009/01/21/53940.html</guid><wfw:comment>http://www.cnitblog.com/shuyezi122/comments/53940.html</wfw:comment><comments>http://www.cnitblog.com/shuyezi122/archive/2009/01/21/53940.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/shuyezi122/comments/commentRss/53940.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/shuyezi122/services/trackbacks/53940.html</trackback:ping><description><![CDATA[<p>System.IsMemoryManagerSet;<br>System.Move;<br>System.New;<br>System.ReallocMem;<br>System.ReallocMemory;<br>System.SetMemoryManager;<br>System.SysAllocMem;<br>System.SysFreeMem;<br>System.SysGetMem;<br>System.SysReallocMem;</p>
<p>SysUtils.DisposeStr;<br>SysUtils.NewStr;</p>
<p>TlHelp32.Heap32First;<br>TlHelp32.Heap32ListFirst;<br>TlHelp32.Heap32ListNext;<br>TlHelp32.Heap32Next;</p>
<p>Windows.CopyMemory;<br>Windows.FillMemory;<br>Windows.GetProcessHeap;<br>Windows.GetProcessHeaps;<br>Windows.GlobalAlloc;<br>Windows.GlobalAllocPtr;<br>Windows.GlobalCompact;<br>Windows.GlobalDiscard;<br>Windows.GlobalFix;<br>Windows.GlobalFlags;<br>Windows.GlobalFree;<br>Windows.GlobalFreePtr;<br>Windows.GlobalHandle;<br>Windows.GlobalLock;<br>Windows.GlobalMemoryStatus;<br>Windows.GlobalReAlloc;<br>Windows.GlobalReAllocPtr;<br>Windows.GlobalSize;<br>Windows.GlobalUnfix;<br>Windows.GlobalUnlock;<br>Windows.GlobalUnWire;<br>Windows.GlobalWire;<br>Windows.HeapAlloc;<br>Windows.HeapCompact;<br>Windows.HeapCreate;<br>Windows.HeapDestroy;<br>Windows.HeapFree;<br>Windows.HeapLock;<br>Windows.HeapReAlloc;<br>Windows.HeapSize;<br>Windows.HeapUnlock;<br>Windows.HeapValidate;<br>Windows.HeapWalk;<br>Windows.IsBadCodePtr;<br>Windows.IsBadReadPtr;<br>Windows.IsBadStringPtr;<br>Windows.IsBadWritePtr;<br>Windows.MoveMemory;<br>Windows.VirtualAlloc;<br>Windows.VirtualAllocEx;<br>Windows.VirtualFree;<br>Windows.VirtualFreeEx;<br>Windows.VirtualLock;<br>Windows.VirtualProtect;<br>Windows.VirtualProtectEx;<br>Windows.VirtualQuery;<br>Windows.VirtualQueryEx;<br>Windows.ZeroMemory;</p>
<p>Windows.LocalAlloc;<br>Windows.LocalCompact;<br>Windows.LocalDiscard;<br>Windows.LocalFlags;<br>Windows.LocalFree;<br>Windows.LocalLock;<br>Windows.LocalReAlloc;<br>Windows.LocalShrink;<br>Windows.LocalSize;<br>Windows.LocalUnlock;</p>
<img src ="http://www.cnitblog.com/shuyezi122/aggbug/53940.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/shuyezi122/" target="_blank">小叶子</a> 2009-01-21 17:32 <a href="http://www.cnitblog.com/shuyezi122/archive/2009/01/21/53940.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>api--菜单命令</title><link>http://www.cnitblog.com/shuyezi122/archive/2009/01/21/53888.html</link><dc:creator>小叶子</dc:creator><author>小叶子</author><pubDate>Tue, 20 Jan 2009 18:45:00 GMT</pubDate><guid>http://www.cnitblog.com/shuyezi122/archive/2009/01/21/53888.html</guid><wfw:comment>http://www.cnitblog.com/shuyezi122/comments/53888.html</wfw:comment><comments>http://www.cnitblog.com/shuyezi122/archive/2009/01/21/53888.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/shuyezi122/comments/commentRss/53888.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/shuyezi122/services/trackbacks/53888.html</trackback:ping><description><![CDATA[<p>设置关闭按键不可用(存大,只是灰色)<br>var<br>&nbsp; &nbsp; &nbsp;hm: HMENU;<br>&nbsp; &nbsp;begin<br>&nbsp; &nbsp; &nbsp;hm := GetSystemMenu(Handle, False);<br>&nbsp; &nbsp; &nbsp;EnableMenuItem(hm, SC_CLOSE, MF_DISABLED or MF_GRAYED);<br>&nbsp; &nbsp;end;<br>设置关闭按键不可用(右键后你发现&nbsp; "关闭"&nbsp; 没了)<br>&nbsp;&nbsp;&nbsp; var<br>&nbsp; &nbsp; &nbsp; hm: HMENU;<br>&nbsp; &nbsp; begin<br>&nbsp; &nbsp; &nbsp; hm := GetSystemMenu(Handle, False); &nbsp;// 这里的Handle就是要无效按钮的目标<br>&nbsp; &nbsp; &nbsp; DeleteMenu(hm, SC_CLOSE, 0);<br>&nbsp; &nbsp; end;<br>说下 DeleteMenu()中第二个参数<br><font color=#008000>'禁止还原按钮<br></font>Success = DeleteMenu(hMenu, SC_RESTORE, 0) <br><font color=#008000>'禁止改变大小</font><br>Success = DeleteMenu(hMenu, SC_SIZE, 0) <br><font color=#008000>'禁止最大化</font><br>Success = DeleteMenu(hMenu, SC_MAXIMIZE, 0) <br><font color=#008000>'禁止最小化</font><br>Success = DeleteMenu(hMenu, SC_MINIMIZE, 0) <br><font color=#008000>'禁止关闭</font><br>Success = DeleteMenu(hMenu, SC_CLOSE, 0) <br><font color=#008000>'禁止移动</font><br>Success = DeleteMenu(hMenu, SC_MOVE,0) <br><br><br>在主窗口加菜单(就是左键后出现最小(大)化,关闭那里)<br>var<br>&nbsp; hSysMenu:HMENU;<br>begin</p>
<p>&nbsp; hSysMenu:=GetSystemMenu(Handle,False);<br>&nbsp; AppendMenu(hSysMenu,MF_separator,0,nil);//加一条线<br>&nbsp;&nbsp; AppendMenu(hSysMenu,MF_STRING,0,'新菜单');</p>
&nbsp;&nbsp;&nbsp;end; 
<img src ="http://www.cnitblog.com/shuyezi122/aggbug/53888.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/shuyezi122/" target="_blank">小叶子</a> 2009-01-21 02:45 <a href="http://www.cnitblog.com/shuyezi122/archive/2009/01/21/53888.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>GetSystemDirectory()</title><link>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53749.html</link><dc:creator>小叶子</dc:creator><author>小叶子</author><pubDate>Tue, 13 Jan 2009 11:42:00 GMT</pubDate><guid>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53749.html</guid><wfw:comment>http://www.cnitblog.com/shuyezi122/comments/53749.html</wfw:comment><comments>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53749.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/shuyezi122/comments/commentRss/53749.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/shuyezi122/services/trackbacks/53749.html</trackback:ping><description><![CDATA[得到系统路径<br>var<br>s:pchar;<br>begin<br>getmem(s,100);<br>GetSystemDirectory(s,100) ;<br>showmessage(s);<br>end;<br>
<img src ="http://www.cnitblog.com/shuyezi122/aggbug/53749.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/shuyezi122/" target="_blank">小叶子</a> 2009-01-13 19:42 <a href="http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53749.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ExtractIcon()</title><link>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53747.html</link><dc:creator>小叶子</dc:creator><author>小叶子</author><pubDate>Tue, 13 Jan 2009 10:48:00 GMT</pubDate><guid>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53747.html</guid><wfw:comment>http://www.cnitblog.com/shuyezi122/comments/53747.html</wfw:comment><comments>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53747.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/shuyezi122/comments/commentRss/53747.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/shuyezi122/services/trackbacks/53747.html</trackback:ping><description><![CDATA[判断一个可执行文件或DLL中是否有图标存在，并将其提取出来<br>function ExtractIcon; external shell32 name 'ExtractIconA';<br>返回integer;
<img src ="http://www.cnitblog.com/shuyezi122/aggbug/53747.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/shuyezi122/" target="_blank">小叶子</a> 2009-01-13 18:48 <a href="http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53747.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>FileExists   DirectoryExists</title><link>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53746.html</link><dc:creator>小叶子</dc:creator><author>小叶子</author><pubDate>Tue, 13 Jan 2009 10:42:00 GMT</pubDate><guid>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53746.html</guid><wfw:comment>http://www.cnitblog.com/shuyezi122/comments/53746.html</wfw:comment><comments>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53746.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/shuyezi122/comments/commentRss/53746.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/shuyezi122/services/trackbacks/53746.html</trackback:ping><description><![CDATA[function FileExists(const FileName: string): Boolean;<br>用于判断&nbsp;&nbsp;&nbsp;&nbsp; 文件&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 是否存在(使用时请带有文件后辍名)<br>function DirectoryExists(const Directory: string): Boolean;<br>用于判断&nbsp;&nbsp;&nbsp;&nbsp; 文件夹&nbsp;&nbsp; 是否存在
<img src ="http://www.cnitblog.com/shuyezi122/aggbug/53746.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/shuyezi122/" target="_blank">小叶子</a> 2009-01-13 18:42 <a href="http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53746.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>forcedirectories和CreateDirectory</title><link>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53745.html</link><dc:creator>小叶子</dc:creator><author>小叶子</author><pubDate>Tue, 13 Jan 2009 10:37:00 GMT</pubDate><guid>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53745.html</guid><wfw:comment>http://www.cnitblog.com/shuyezi122/comments/53745.html</wfw:comment><comments>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53745.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/shuyezi122/comments/commentRss/53745.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/shuyezi122/services/trackbacks/53745.html</trackback:ping><description><![CDATA[forcedirectories和CreateDirectory都能创建文件<br>ForceDirectories可以创建多层目录. <br>如果你创建一个目录为c:\mymusic\music <br>如果你的C盘不存在一个叫mymusic的文件夹 <br>的话程序会自动创建，函数执行的结果是， <br>创建了两个文件夹，mymusic和music，music为 <br>mymusic的子文件夹. <br><br>CreateDirectory只能创建一个文件夹，如果 <br>mymusic不存在，则反回创建music文件夹失败！
<img src ="http://www.cnitblog.com/shuyezi122/aggbug/53745.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/shuyezi122/" target="_blank">小叶子</a> 2009-01-13 18:37 <a href="http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53745.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ExtractFileName  ExtractFilepath</title><link>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53744.html</link><dc:creator>小叶子</dc:creator><author>小叶子</author><pubDate>Tue, 13 Jan 2009 10:34:00 GMT</pubDate><guid>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53744.html</guid><wfw:comment>http://www.cnitblog.com/shuyezi122/comments/53744.html</wfw:comment><comments>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53744.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/shuyezi122/comments/commentRss/53744.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/shuyezi122/services/trackbacks/53744.html</trackback:ping><description><![CDATA[返回指定文件的文件名及扩展名<br><br>var<br>s:string;<br>begin<br>s:=ExtractFileName('D:\Program Files\Borland\Delphi7\Projects\Unit1.dcu');<br>showmessage(s);\\显示:Unit1.dcu<br>end; <br><br>var<br>s:string;<br>begin<br>s:=ExtractFilepath('D:\Program Files\Borland\Delphi7\Projects\Unit1.dcu');<br>showmessage(s);\\显示:'D:\Program Files\Borland\Delphi7\Projects<br>end; 
<img src ="http://www.cnitblog.com/shuyezi122/aggbug/53744.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/shuyezi122/" target="_blank">小叶子</a> 2009-01-13 18:34 <a href="http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53744.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ChangeFileExt</title><link>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53743.html</link><dc:creator>小叶子</dc:creator><author>小叶子</author><pubDate>Tue, 13 Jan 2009 10:07:00 GMT</pubDate><guid>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53743.html</guid><wfw:comment>http://www.cnitblog.com/shuyezi122/comments/53743.html</wfw:comment><comments>http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53743.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/shuyezi122/comments/commentRss/53743.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/shuyezi122/services/trackbacks/53743.html</trackback:ping><description><![CDATA[函数说明 更改指定文件的扩展名,函数原型如下:<br>delphi中源码<br>function ChangeFileExt(const FileName, Extension: string): string;<br>var<br>&nbsp; I: Integer;<br>begin<br>&nbsp; I := LastDelimiter('.' + PathDelim + DriveDelim,Filename);<br>&nbsp; if (I = 0) or (FileName[I] &lt;&gt; '.') then I := MaxInt;<br>&nbsp; Result := Copy(FileName, 1, I - 1) + Extension;<br>end; <br><br>比如:<br>s:=changefileext('f:\123.txt','.ini');<br>showmessage(s);//f:\123.ini
<img src ="http://www.cnitblog.com/shuyezi122/aggbug/53743.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/shuyezi122/" target="_blank">小叶子</a> 2009-01-13 18:07 <a href="http://www.cnitblog.com/shuyezi122/archive/2009/01/13/53743.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>