Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / August 2004

Tip: Looking for answers? Try searching our database.

how to use GetNamedSecurityInfo

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
isaac rainsford - 21 Jun 2004 21:11 GMT
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!
Kaushik Srenevasan - 18 Aug 2004 19:30 GMT
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!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.