Thread [Win 7] Schreibrechte abfragen (10 answers)
Opened by pktm at 2011-04-30 19:30

GwenDragon
 2011-04-30 21:28
#148158 #148158
User since
2005-01-17
14538 Artikel
Admin1
[Homepage]
user image
Ja, wenn das so reicht.
Ich hatte die Aufgabe von pktm einfach anders verstanden: ob es möglich ist als normaler Nutzer in ein Verzeichnis zu schreiben.

Win32::IsAdminUser() funktioniert aber nur bei neueren Betriebssystemen korrekt (> Windows Vista):
Quote
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.
CPAN:Win32
Last edited: 2011-04-30 21:44:02 +0200 (CEST)
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread [Win 7] Schreibrechte abfragen