| |
|
|
 Jac de Lad | How it me shining, existing The API GetUserName not any more in the SP3 Windows XP. has someone already experience with GetUserNameEx? I quäl me momentarily with the Parameters rum. and white someone, when GetUserNameEx introduced watts? moreover find I namely somehow no klare Info.
Jac  |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 05/03/08 ▲ |
|
|
|
|
 Dieter Zornow | GetUserNameEx Function
Retrieves the name of the user or other security principal associated with the calling thread. You can specify the stature of the returned name.
If the thread is impersonating a client, GetUserNameEx returns the name of the client.
Syntax BOOLEAN WINAPI GetUserNameEx( __in EXTENDED_NAME_FORMAT NameFormat, __out LPTSTR lpNameBuffer, __inout PULONG lpnSize ); Parameters NameFormat The stature of the name. Diese parameter is a value from the EXTENDED_NAME_FORMAT enumeration type. It cannot be NameUnknown.
lpNameBuffer A pointer to a buffer that receives the name in the specified stature. The buffer must include space for the terminating zero character.
lpnSize On input, this variable specifies the size of the lpNameBuffer buffer, in TCHARs. If the function is successful, the variable receives the number of TCHARs copied to the buffer, hardship including the terminating zero character.
If lpNameBuffer is too small, the function fails and GetLastError returns ERROR_MORE_DATA. Diese parameter receives the required buffer size, in Unicode characters (whether or hardship Unicode is being used), including the terminating zero character.
If this parameter is greater than 32767, the function fails and GetLastError returns ERROR_MORE_DATA.
Return Value If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero. To get extended error information, call GetLastError. Possible values include the following.
is so with Microsoft described You find there also The Description for first Parameter to find is the function in the secur32.dll,
Greeting
Dieter |
|
|
| Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2 | 05/03/08 ▲ |
|
|
|
|
 Jac de Lad | Hm, the Have I indeed already found out, but my Programmierversuche terminate in the ExceptionFault. 
nevertheless thanks, Jac |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 05/03/08 ▲ |
|
|
|
|
 Jac de Lad | now have I attempts me on LookupAccountNameA To uneasily, because the already ex windows NT 3.5 existing, but the wars so did i not running...  |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 05/03/08 ▲ |
|
|
|
|
 Jörg Sellmeyer | |
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 05/04/08 ▲ |
|
|
|
|
 Dieter Zornow | Hello Jac,
so GEHTS by me, it'll the Computername and the Username displayed CompileMarkSeparation the first Parameter: NameSamCompatible = 2,
Greeting
Dieter |
|
|
| Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2 | 05/04/08 ▲ |
|
|
|
|
 Jac de Lad | thanks you both. Both functions. On The idea with System-Variables be I not yet come, because I with them not yet worked have. in a, whether the ever staid is.
The second Variante gefällt me something rather.
Jac  |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 05/04/08 ▲ |
|
|
|
|
 Artur D. | there it system-variables are, these too always staid. ;) These are global under Profan available and serve alone the object The system-Information auszugeben.
the relieved much ungemein! |
|
|
| XProfan 10 AMD Athlon XP 2600+ mit 2 GB RAM | 05/05/08 ▲ |
|
|
|
|
 Jörg Sellmeyer | Jac
The second Variante gefällt me something rather. Jac 
probably, because tappt im dunkeln komplizierter and More to program looks 
 but Why simply, ifs too umständlich goes... |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 05/05/08 ▲ |
|
|
|
|
 Jac de Lad | is correct. But if The variables IMMER staid are, I will still The others Variante take. in the hope, that not in windows 7 rausfliegt.
Jac  |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 05/05/08 ▲ |
|
|
|
|
 Frank Abbing | So I find Yes Jörgs Solution very efficient.  |
|
|
| |
|
|
|
 | Jörg Sellmeyer
functions! If I on whom Perform-Button click (XP-Script) becomes me same "iF" displayed.  |
|
|
| |
|
|