Results 1 to 4 of 4
  1. #1
    dllbaseII's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Integrais e Derivadas
    Posts
    962
    Reputation
    12
    Thanks
    462
    My Mood
    Chatty

    Lightbulb How to verify if application is running as admin

    Hello, it's so simple... Some cases we need the admin's right.

    Code:
    Function VerifyPrivilegio() As Boolean
            If My.User.IsInRole(ApplicationServices.BuiltInRole.Administrator) Then
                Return True
            Else
                Return False
            End If
        End Function
    .


    Skype:
    MPGH.dllbaseII

  2. #2
    Raydenman's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Location
    Italy
    Posts
    261
    Reputation
    10
    Thanks
    810
    My Mood
    Amused
    Quote Originally Posted by dllbaseII View Post
    Hello, it's so simple... Some cases we need the admin's right.

    Code:
    Function VerifyPrivilegio() As Boolean
            If My.User.IsInRole(ApplicationServices.BuiltInRole.Administrator) Then
                Return True
            Else
                Return False
            End If
        End Function
    Why to make a function for another function?
    The function IsInRole already returns a boolean value...

  3. The Following User Says Thank You to Raydenman For This Useful Post:

    TonyMane() (07-22-2015)

  4. #3
    dllbaseII's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Integrais e Derivadas
    Posts
    962
    Reputation
    12
    Thanks
    462
    My Mood
    Chatty
    Quote Originally Posted by Raydenman View Post
    Why to make a function for another function?
    The function IsInRole already returns a boolean value...
    Of course. I did just for my own organization and taste... Everybody knows that isn't necessary '-'
    .


    Skype:
    MPGH.dllbaseII

  5. The Following User Says Thank You to dllbaseII For This Useful Post:

    TonyMane() (07-22-2015)

  6. #4
    liquidsystem's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    507
    Reputation
    135
    Thanks
    691
    My Mood
    Happy
    Quote Originally Posted by dllbaseII View Post


    Of course. I did just for my own organization and taste... Everybody knows that isn't necessary '-'
    You could just make a macro for the function though, no need to write your own...
    If you wish to thank me, don't forget to click the button!

    Currently Playing: Osu, OldSchool Runescape (pm for username)


    Bitcoin Address: 1HUdLVM7DnT9gC1i5kNKzcKWekSbFoKNp2


    Steam
    Main Account
    Sales Account

    Feel free to PM me if you have any other questions relating Java, Python, or Physics, or general schoolwork


Similar Threads

  1. How to verify a Neteller/Moneybookers account
    By Ravallo in forum Suggestions, Requests & General Help
    Replies: 2
    Last Post: 10-29-2009, 12:51 PM
  2. How to Fix: Hack Detected! (without running hack)
    By kazuya899 in forum WarRock Discussions
    Replies: 7
    Last Post: 08-06-2009, 04:24 AM
  3. how to fix my screen when running hax
    By snekysnake in forum Combat Arms Hacks & Cheats
    Replies: 2
    Last Post: 07-24-2009, 05:28 AM
  4. How to get hacks up and running
    By AceWontFold in forum Combat Arms Hacks & Cheats
    Replies: 17
    Last Post: 03-15-2009, 06:09 PM
  5. war rock hacks: how u get them up and running?
    By loopdedoo1 in forum WarRock - International Hacks
    Replies: 6
    Last Post: 05-22-2007, 04:05 PM

Tags for this Thread