| windows文件保护机制 |
| 作者:内详 来源:网络搜集 点击数:
更新时间:2008-3-31 18:10:58 |
|
|
inal base: 00000001 # of functions: 0000000B
# of Names: 00000004
Entry Pt Ordn Name 0000743A 1 000073D2 2 00003D70 3 00003DA9 4 00003DB5 5 00003DED 6 00003E21 7 00003F0B 8 SfcGetNextProtectedFile 00003FA0 9 SfcIsFileProtected 00008D1D 10 SfcWLEventLogoff 00008C5A 11 SfcWLEventLogon
看了这一大堆另人厌烦的函数之后,我决定仔细研究SfcIsFileProtected这个API,当我们传递一个文件名给Sf
cIsFileProtected,它将告诉我们这个文件是否受到SFP的保护,让我们来看看下面这段C代码:
if ( SfcIsFileProtected( NULL, szFileName) == 0) { printf ( "Not protected.\n") ; } else { printf ( "Yes, its protected.\n") ; }
通过使用这个API,我们可以防止操作系统的重要文件受到病毒的感染,并且病毒无法寄生在这些受保护的文件
上去感染其它的计算机,这可能是一种防止病毒感染的办法。。。我从没见过有什么软件站点提供windows的计
算器程序下载: P
下面给出一些代码,演示SFC.DLL提供的一些API的用法 ---------------------------------------------------------------------------------- GriYo / 29A
I'm not in the b上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一页
|
|
| 教程录入:yxdoor 责任编辑:yxdoor |
上一篇教程: 安全隐患来自内部
下一篇教程: 彻底隐藏文件之最经典操作 |
| 【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |