2009年4月8日
摘要: 知道窗口句柄如何知道文件名? Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061108114249281.html 知道窗口句柄,怎么得到该程序的文件名??? 先通过GetWindowThreadProcessId取得窗口所属进程的PID,再通过枚举系统进程,得到该进程的文件名。枚举进程可以... 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 关于判断文件唯一性,怎么提取特征码 Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061108132642280.html 困惑,用什么来判断文件的唯一性,用findwindow判断程序,误报可能太大,有哪位大大能提供delphi的判断文件的特征码的好例子,麻烦写出来,指点一二。分不多,因为不会... 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 如何在delphi的程序中获取桌面刷新的消息 Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061106105900297.html 我想在windows的桌面刷新后执行一些内容,如何作? hook 消息。。 能说得详细一些么? 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 关于openkey的问题,请大家帮看看! Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061106111720296.html 我写了一段贷码目的是禁用u盘.如下. var reg:tregistry; begin reg.rootkey:=HKEY_L... 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 关于动态加载dll问题 Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061106114545295.html 现在有一个dll文件,需动态加载,看了很多资料,但是还是不太清楚 1.动态加载时,是不是须在oncreate事件中LoadLibrary进行判断 2.dll在何时进... 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 用createprocess执行word,需要为外部程序指定一个叁数'd:\aaa.doc',如果这个文档是stringlist中的某一项,那么该如何写呢? Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061106182559294.html var x:integer; ... 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 关于调用windows内核问题×××××××××××× Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061106205556293.html 上网看过一些windows内核调用的文章 我想用rundll32 user,wnetconnectdialog打开"映射网络驱动器"窗口 ... 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 如何快速的从几千个文件中删除你想要删除的文件??关键是算法!! Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061106211720292.html 如何快速的从几千个文件中删除你想要删除的文件?这些文件是我按照时间记录的,比如:20061106101010.txt,2006110612121... 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 开机先出先自己的程序界面,输入用户名和口令后再进入windows Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061106222842291.html 我想实现这样一个功能,开机先出先自己的程序界面,输入用户名和口令后再进入windows(winxp或者win2000),有点类似网吧里面的登陆... 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 关于文件复制与删除的问题 Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061107120249290.html 想编个程序,把机器上所有的文件名为A.EXE的文件删除,再把文件B.EXE从机器的X文件夹下拷贝到机器上所有名称为Y的文件夹下,请问如何编写程序? FindFirst() ... 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(228) 评论(0) 推荐(0) 编辑
摘要: delphi有几种方法创建子线程 Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061107143711289.html delphi有几种方法创建子线程 createthead 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 关于playsound()的问题,在线等 Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061107145536288.html uses MMSystem; sndPlaysound(PChar('alarm.wav'),SND_LOOP); 怎么声音不循环播放呢?奇怪... 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 多线程的sleep和suspend问题 Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061107160754287.html procedure TAthread.Execute; begin while not Terminate... 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 如何關閉正在運行的特定的程式?急! Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061107161535286.html 如何關閉正在運行的特定的程式?急!, 小弟謝謝先! 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(169) 评论(0) 推荐(0) 编辑
摘要: waitforsingleobject的问题 Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061107162800285.html 我在主线程中用了waitforsingleobject,可以用吗,如果可以的话,在线程中调用这个函数的的话还用不用Synchronize函数啊 1.主线程等待子... 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 为什么WaitForMultipleObjects返回后,对应的handle仍处于激发状态? Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061107172543284.html 我写了个用WaitForMultipleObjects同步线程的例子,窗体上有三个memo,有一个mutex数组变... 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 这个不对了,找不到控件 Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061107194340283.html 在窗体中放了一个edit 和一个按钮。 用file-new-other里的thread object 创建了一个新线程类(Tmy)。 里面写了这句代码:... 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 如何不通这注册表取双网卡所对应的子网? Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061108110332282.html 如题 谢谢 ipconfig -all api要查下.... 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 请问delphi能否实现像CPU-Z的功能呢? Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061106082317300.html 我们公司要统计电脑配置情况,现在做一个硬件读取配置的小软件就差CPU这一项了,现在只能读取CPU的频率,想实现CPU-Z的功能读取出CPU的型号比如:P4 ... 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(197) 评论(0) 推荐(0) 编辑
摘要: IE工具条不能自动显示 Delphi / Windows SDK/APIhttp://www.delphi2007.net/DelphiAPI/html/delphi_20061106093741299.html 我做了一个IE工具条,但是安装后不能自动显示出来,要在工具栏里把它打钩才行,有没有办法让它安装后自动就显示在IE工具栏上呢,不用去手动的打钩,请各位大侠帮帮忙啊!小弟不甚感谢! 我也... 阅读全文
posted @ 2009-04-08 09:16 delphi2007 阅读(99) 评论(0) 推荐(0) 编辑