You can use PInvoke to access this function from VB.NET using the following
signature
Declare Function GetNamedSecurityInfo Lib "advapi32.dll" ( _
ByVal pObjectName As String, _
ByVal ObjectType As SE_OBJECT_TYPE, _
ByVal SecurityInfo As SECURITY_INFORMATION, _
ByRef pSidOwner As IntPtr, _
ByRef pSidGroup As IntPtr, _
ByRef pDacl As IntPtr, _
ByRef pSacl As IntPtr, _
ByRef pSecurityDescriptor As IntPtr) As Integer
Do visit this page
http://www.pinvoke.net/default.aspx/advapi32.GetNamedSecurityInfo it has
some sample code for the use of this and other API functions.
--
HTH
Kaushik Srenevasan
Microsoft Student Ambassador,
Madurai .NET student user group
http://groups.msn.com/MaduraiDotNet
> i am having much trouble getting GetNamedSecurityInfo API to work from
> Advapi32.dll.
>
> how can i call this function using VB.NET?
>
> thanks in advance!