schau dir mal
win32 an. da gibts ne funktion die sich isadminuser nennt, was die wohl macht ;)
QuoteWin32::IsAdminUser()
Returns non zero if the account in whose security context the current process/thread is running belongs to the local group of Administrators in the built-in system domain; returns 0 if not. On Windows Vista it will only return non-zero if the process is actually running with elevated privileges. Returns undef and prints a warning if an error occurred. This function always returns 1 on Win9X.