All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
Asp.net中创建和使用Ado.net_[Asp.Net教程]
正确理解动态网页制作技术PHP的错误信息_php资料_编程技术
如何在SQL,Server,2005中为安装程序增加计数器注册表项值_mssql学习_编程技术
初学来看:动态网页制作技术PHP的常量类型_php资料_编程技术
PHP5中PDO的简单使用_php资料_编程技术
使用ASP.NET语法创建Web服务器控件模板_[Asp.Net教程]
Ajax 中的高级请求和响应_[AJAX教程]
Repeater属性、方法和事件
Asp.net导航控件真的值得用吗?_.net资料_编程技术
PEAR--HTML_QuickForm与Smarty,的结合应用_php资料_编程技术
Reading number is top 10 pictures
美丽的桂林风光1
治疗多发性骨髓瘤的特效药,一万二一支
yy365网站上的美女1
看看什么叫美景
Look at the Spring Festival people crowded into the what kind
福利福利。。。。。。
NeedWallpaper11
六种更聪明的工作方法
The money of more than 100 countries and regions7
The real super beauty15
Download software ranking
Call Of Duty5
asp.netWeb服务器高级编程
Tram sex maniac 2 (H) rar bag11
小黑猫大战两米大花蛇
Tram sex maniac 2 (H) rar bag6
星际争霸1.08硬盘免安装版
C#COM编程指南
C#程序员参考手册
VC++6.0简体中文版
Ashlynn Video5
aaa published in(发表于) 2014/7/19 0:13:13 Edit(编辑)
delphi获取Windows目录

delphi获取Windows目录

delphi获取Windows目录|GetSystemDirectory函数

获取Windows 目录

要获取Windows 目录的位置可以调用Win32 的GetWindowsDirectory() 。该函数类似于GetSystemDirectory(),其返回值的含义也与GetSystemDirectory()相同。该函数的用法如下:

procedure TForm1.Button1Click(Sender: TObject);

var

MyWinPath:String;

begin

SetLength(MyWinPath,144);

if GetWindowsDirectory(PChar(MyWinPath),144)<>0 then

begin

SetLength(MyWinPath,Length(PChar(MyWinPath)));

Edit1.Text:=MyWinPath;

end

else

RaiseLastWin32Error;

end;

如果函数调用成功,GetWindowsDirectory()返回目录路径的长度(整数值),否则返回0,表明有错误产生。这时可以调用RaiseLastWin32Error()来分析产生错误的原因。




添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.