Thread Win32: Benutzerrechte prüfen (3 answers)
Opened by Kean at 2013-02-28 16:09

FIFO
 2013-02-28 16:19
#166091 #166091
User since
2005-06-01
469 Artikel
BenutzerIn

user image
Wahrscheinlich reicht Dir Win32::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.
Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it? -- Brian Kernighan: "The Elements of Programming Style"

View full thread Win32: Benutzerrechte prüfen