GetUserNameEx
- Merve Yurdakul
- Dennis Balzuweit
Owned by Merve Yurdakul
Juli 13, 2016
1 min read
Loading data...
Parameter
(Format : Integer) : String;
Beschreibung
Ermittelt den aktuellen Benutzernamen (Logon) inkl. Domäneninformationen.
Folgende Konstanten können für Format verwendet werden:
- WUFT_UNKNOWN = 0 // Unknown name type.
- WUFT_FULLYQUALIFIEDDN = 1 // Fully qualified distinguished name
- WUFT_SAMCOMPATIBLE = 2 // Windows NT® 4.0 account name
- WUFT_DISPLAY = 3 // A "friendly" display name
- WUFT_UNIQUEID = 6 // GUID string that the IIDFromString function returns
- WUFT_CANONICAL = 7 // Complete canonical name
- WUFT_USERPRINCIPAL = 8 // User principal Name
- WUFT_CANONICALEX = 9
- WUFT_SERVICEPRINCIPAL = 10 // Generalized service principal name
- WUFT_DNSDOMAINNAME = 11 // DNS domain name, plus the user name
Beispiel
ShowMessage(GetUserNameEx(WUFT_USERPRINCIPAL));