请教各位大虾:在2000/xp的ntfs分区里
1..用什么方法可以删除某个文件夹下安全设置里的指定的用户或用户组???当然是要求用API或控件之类来解决,不是调用dos命令(CACLS.exe)来解决.2.如果该文件夹下还有子目录,希望删除了该文件夹里的某个用户(组)后,能把这个安全设置的改变也传播(或继承)给了它下面的子目录.各位大虾帮帮忙了,这个问题让我很困惑.
有vb例子或相关资料网站连接也好.
1..用什么方法可以删除某个文件夹下安全设置里的指定的用户或用户组???当然是要求用API或控件之类来解决,不是调用dos命令(CACLS.exe)来解决.2.如果该文件夹下还有子目录,希望删除了该文件夹里的某个用户(组)后,能把这个安全设置的改变也传播(或继承)给了它下面的子目录.各位大虾帮帮忙了,这个问题让我很困惑.
有vb例子或相关资料网站连接也好.
解决方案 »
- 小弟想在3个月内学会VB,求教一下!
- datetime的问题
- 在下提的问题总是得不到满意的答案,郁闷,放分
- 大家好!我是VB处学者,我想做一个关于成语的连接的程序!请各位高手指教
- vb自帶報表datareport中怎麽顯示數值10000成10,000的樣子?來者有分!!
- 求唤醒睡眠机器的方法,解决就给分!!!
- 在先等待 100分 如何解除已经被另外一个程序控制在一个区域里的鼠标(该程序还在运行)
- 在一个sub里load的控件数组,如何在另一个sub里销毁(删除)其中的一个或几个?
- 急问,高分,关于用MAPI控件发送邮件的问题!
- 用StretchBlt或PaintPicture将一张图片缩小后,往往会产生一些小锯齿,有无办法消除?
- 这个表和SQL语句应如何构建
- 请大家看看这个简单的SQL语句会有这种结果?
哪位GG能出手相救一下呢^^^
The DeleteAce function deletes an ACE from an ACL. An ACE is an access-control entry. An ACL is an access-control list. BOOL DeleteAce(
PACL pAcl, // pointer to access-control list
DWORD dwAceIndex // index of ACE position in ACL
);
Parameters
pAcl
Points to an ACL structure. The ACE specified by the dwAceIndex parameter is removed from this ACL.
dwAceIndex
Specifies the ACE to delete. A value of 0 corresponds to the first ACE in the ACL, 1 to the second ACE, and so on.
Return Values
If the function succeeds, the return value is nonzero.If the function fails, the return value is zero. To get extended error information, call GetLastError. Res
An application can use the ACL_SIZE_INFORMATION structure retrieved by the GetAclInformation function to discover the size of the ACL and the number of ACEs it contains. The GetAce function retrieves information about an individual ACE. QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in winbase.h.
Import Library: Use advapi32.lib.See Also
Low-Level Access-Control Overview, Low-Level Access Control Functions, ACL, ACL_SIZE_INFORMATION, AddAccessAllowedAce, AddAccessDeniedAce, AddAce, AddAuditAccessAce, GetAce, GetAclInformation
Declare Function DeleteAce Lib "advapi32.dll" (ByRef pAcl As ACL, ByVal dwAceIndex As long) As long
能给个小例子吗?DeleteAce里的参数不会用啊.谢谢