Re: Converting Win32 API to VB.NET for Folder Security
From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 05/26/04
- Previous message: Nugs: "Opposite of RedirectFromLoginPage? Preset page to direct to..."
- In reply to: i23bam: "Converting Win32 API to VB.NET for Folder Security"
- Next in thread: i23bam: "Re: Converting Win32 API to VB.NET for Folder Security"
- Reply: i23bam: "Re: Converting Win32 API to VB.NET for Folder Security"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 25 May 2004 17:36:44 -0700
Did you try the Win32 security library from GotDotNet
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=e6098575-dda0-48b8-9abf-e0705af065d9
or the stuff Data Marvel has? There isn't much reason to reinvent these
pinvoke declarations.
Joe K.
"i23bam" <i23bam@online.nospam> wrote in message
news:0493B285-F0C7-4FA1-8DCC-F30F47DC1EFC@microsoft.com...
> For the record, I am a newbie to API. Anyway, I am trying to use the Win32
API in VB.NET to set NT Security (Administrator ACE) on a remote server
folder from within a backup executable I have created. The problem is I am
trying to implement my translated version of the NTFS Permission example, at
http://www.mentalis.org/apilist/LookupAccountName.shtml, to VB.NET and the
code fails at one particular point. (BTW, I have chosen NTFS Permission
example because it seems pretty straight forward for a newbie.) I have
converted all Longs to Ints and added ByRefs where needed, but the app seems
to quit at the AddAce Call (ERROR_INVALID_PARAMETER). Has anyone already
converted this code or would anyone have suggestions for a fix?
- Previous message: Nugs: "Opposite of RedirectFromLoginPage? Preset page to direct to..."
- In reply to: i23bam: "Converting Win32 API to VB.NET for Folder Security"
- Next in thread: i23bam: "Re: Converting Win32 API to VB.NET for Folder Security"
- Reply: i23bam: "Re: Converting Win32 API to VB.NET for Folder Security"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|