RE: Read file system ACE's using .Net 2.0
From: Rhett Gong [MSFT] (v-raygon_at_online.microsoft.com)
Date: 10/11/05
- Previous message: Daniel: "Crypto API and Windows 98 SE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 11 Oct 2005 02:35:34 GMT
Hello Bruce,
I checked .NET 2.0 reference, but did not find any documented classes for basic Security ACE or DACL, so you may have to use Win32 API's to
get and set file system ACL's. Here is a link for complete .NET2.0 document, I think you might have interest to take a look:
http://msdn2.microsoft.com/en-us/library/default.aspx
Besides Win32 Security APIs, WMI provides another way to control ACLs for filesystem objects, you can get reference from:
[Win32_SecurityDescriptor]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_securitydescriptor.asp
WMI exposes 2 namespace for you to use, they are
[System.Management and System.Management.Instrumentation Namespaces]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconsystemmanagementandsystemmanagementinstrumentationnamespaces.asp
For how to use then, please reference topics under:
[Managing Applications Using WMI]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconmanagingapplicationsusingwmi.asp
Hope this helps. And if there is anything more I can help, please feel free to let me know.
Thanks,
Rhett Gong [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp&SD=msdn
This posting is provided "AS IS" with no warranties and confers no rights.
- Previous message: Daniel: "Crypto API and Windows 98 SE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|