- Rongsen.Com.Cn 版权所有 2008-2010 京ICP备08007000号 京公海网安备11010802026356号 朝阳网安编号:110105199号
- 北京黑客防线网安工作室-黑客防线网安服务器维护基地为您提供专业的
服务器维护
,企业网站维护
,网站维护
服务 - (建议采用1024×768分辨率,以达到最佳视觉效果) Powered by 黑客防线网安 ©2009-2010 www.rongsen.com.cn
作者:黑客防线网安VB教程基地 来源:黑客防线网安VB教程基地 浏览次数:0 |
Private Declare Sub SHChangeNotify Lib "shell32.dll" ( _
ByVal wEventId As Long, _
ByVal uFlags As Long, _
ByRef dwItem1 As Any, _
ByRef dwItem2 As Any)
Declare Function SHChangeNotifyRegister Lib "shell32" Alias "#2" _
(ByVal hWnd As Long, _
ByVal uFlags As SHCN_ItemFlags, _
ByVal dwEventID As SHCN_EventIDs, _
ByVal uMsg As Long, _
ByVal cItems As Long, _
lpps As PIDLSTRUCT) As Long
Declare Sub SHChangeNotify Lib "shell32" _
(ByVal wEventId As SHCN_EventIDs, _
ByVal uFlags As SHCN_ItemFlags, _
ByVal dwItem1 As Long, _
ByVal dwItem2 As Long)
Private Declare Function GetProp Lib "user32" Alias "GetPropA" (ByVal hWnd As Long, ByVal lpString As String) As Long
Private Declare Function SetProp Lib "user32" Alias "SetPropA" (ByVal hWnd As Long, ByVal lpString As String, ByVal hData As Long) As Long
Private Declare Function RemoveProp Lib "user32" Alias "RemovePropA" (ByVal hWnd As Long, ByVal lpString As String) As Long
主要用到了这几个函数,小艾跑到图书大厦去查都没有查到最主要的那三个API的解释,不明白它主要的参数的意义。希望能得到高手的解答。
小艾把源文件上传,供大家一起学习,如果哪位能够懂得程序的实现原理和函数的用法,别忘了回帖帮助小艾这些勤奋刻苦的虾皮儿们。
如果哪位有时间,最好把源文件中函数的功能、参数等写上中文的解释贴回来,小艾十分感激。如果能查到,小艾就不来这样麻烦大家了。再次多谢。
小艾还看到有一个
Private Declare Function RegNotifyChangeKeyValue Lib "advapi32.dll" ( _
ByVal hKey As Long, _
ByVal bWatchSubtree As Long, _
ByVal dwNotifyFilter As Long, _
ByVal hEvent As Long, _
ByVal fAsynchronus As Long) As Long
是提供一种关于注册表的通知机制,还请高手一起解答。小艾看到了有关的参数信息,但是无法把它作为一个系统的循环这样,即无法真正实现侦测到变化就通知,除非用Timer吧。不知道怎样可以像这个程序一样。
小艾根据Chm文件中提到的,有关的磁盘通知机制的函数有
Private Declare Function FindFirstChangeNotification Lib "kernel32.dll" Alias "FindFirstChangeNotificationA" ( _
ByVal lpPathName As String, _
ByVal bWatchSubtree As Long, _
ByVal dwNotifyFilter As Long) As Long
Private Declare Function FindNextChangeNotification Lib "kernel32.dll" ( _
ByVal hChangeHandle As Long) As Long
Private Declare Function FindCloseChangeNotification Lib "kernel32.dll" ( _
ByVal hChangeHandle As Long) As Long
这样三个,这个程序好像没有用到,请问这三个程序的用法,主要是如何做到“实时”?
我要申请本站:N点 | 黑客防线官网 | |
专业服务器维护及网站维护手工安全搭建环境,网站安全加固服务。黑客防线网安服务器维护基地招商进行中!QQ:29769479 |