Results 1 to 4 of 4

Thread: member of admin user

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2009
    Posts
    135

    member of admin user

    Hello There,i just want to ask if how will i get the user and his permission..

    ex:
    i want to know if the login user of the pc is a member of administrator.

    that all..thank you..

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: member of admin user

    I don't even have VS2003 on my machine anymore to test my code with, but I don't believe there is anything in there that was specifically new to .NET 2.0.

    Here is an article I wrote with sample code on how to do this.

    http://zerosandtheone.com/blogs/vb/a...windows-7.aspx

  3. #3
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: member of admin user

    actually I take that back, it does make use of the My namespace, which didn't exist until .net 2.0

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2009
    Posts
    135

    Re: member of admin user

    thanks for the reply kleima,
    i already fix this one using the windows principal namespace..but i bookmark your code for future use..thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width