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

  • Next message: hanafiahh_at_hotmail.com: "Getting AD Groups"
    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?


  • Next message: hanafiahh_at_hotmail.com: "Getting AD Groups"

    Relevant Pages

    • Re: Get username and domain name form windowNT
      ... I'm just a newbie for Delphi. ... Can you tell which API or ... > how can I do to get username and domain name that user login? ...
      (comp.lang.pascal.delphi.misc)
    • RE: New to application programming... Please HELP!
      ... Well, hello there Mr. Newbie... ... Is programming Windows using the API the best way to go? ... JIM ...
      (microsoft.public.dotnet.general)
    • Re: Variable names
      ... The concept you're looking for is the "Reflection" API, ... want to go anywhere near it as a newbie. ... Rethink your approach to your problem. ...
      (comp.lang.java.programmer)