VB 磁盘监视的API_VB.net_黑客防线网安服务器维护基地--Powered by WWW.RONGSEN.COM.CN

VB 磁盘监视的API

作者:黑客防线网安VB教程基地 来源:黑客防线网安VB教程基地 浏览次数:0

本篇关键词:监视磁盘 ByVal
黑客防线网安网讯: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...

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

这样三个,这个程序好像没有用到,请问这三个程序的用法,主要是如何做到“实时”?

    黑客防线网安服务器维护方案本篇连接:http://www.rongsen.com.cn/show-14671-1.html
网站维护教程更新时间:2012-04-03 01:12:15  【打印此页】  【关闭
我要申请本站N点 | 黑客防线官网 |  
专业服务器维护及网站维护手工安全搭建环境,网站安全加固服务。黑客防线网安服务器维护基地招商进行中!QQ:29769479

footer  footer  footer  footer