How to get the WMI instance defination

S

Stross S. Dist

I am using the WMI code from Microsoft as http://www.microsoft.com/technet/scriptcenter/scripts/security/dacls/sedcvb01.mspx

Set objWMIService = GetObject("winmgmts:")
Set objFileSecuritySettings = _
objWMIService.Get("Win32_LogicalFileSecuritySetting='" & strFileName & "'")
intRetVal = objFileSecuritySettings.GetSecurityDescriptor(objSD)

I understand that objWMIService refers to WbemScripting.SWbemServices, but how is objFileSecuritySettings? Also, how about objSD,objACE and arrACEs?

I hope to know there type and define them in VB/VB.NET. Thank you for any assistance.

-Stross
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top