Converting Win32 API to VB.NET for Folder Security
From: i23bam (anonymous_at_discussions.microsoft.com)
Date: 05/25/04
- Next message: i23bam: "Converting Win32 API to VB.NET for Folder Security"
- Previous message: Carlton Nettleton: "Re: using System.Net.NetworkCredential class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 25 May 2004 09:06:04 -0700
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?
- Next message: i23bam: "Converting Win32 API to VB.NET for Folder Security"
- Previous message: Carlton Nettleton: "Re: using System.Net.NetworkCredential class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]