English
Regulars table & Café

GetUserName.

 


Description:

GetUserName determined whom Usernamen the eingeloggten Users for actually Thread.




Deklaration:

Def @GetUserName(2) !ADVAPI32,GetUserNameA




Parameter:

1.Parameter: Memory-Variable, The whom Usernamen aufnimmt.
2.Parameter: 4 byte large Memory-Variable, in the The Size the Bereichs of Parameter 1 in Bytes standing. Kehrt The function back, standing here The length the Usenamens plus the abschließende Nullbyte.



Return Value:

1 with success, 0 with failure.


Examples:

CompileMarkSeparation
Def @GetUserName(2) !"ADVAPI32","GetUserNameA"
Declare USize#,UName#,Fehler&
Windowstyle 31
Windowtitle "Usernamen ermitteln"
Window 0,0-640,440
Dim Usize#,4
Dim UName#,256
LONG Usize#,0=256
LET FEHLER&=@GetUserName(UName#,Usize#)
PRINT "API Fehlercode="+@STR$(Fehler&)
Print "Username="+@String$(UName#,0)
Print "Länge mit abschließendem Nullbyte="+@STR$(@Long(USize#,0))
Dispose UName#
Dispose Usize#

While 0=0

    Waitinput

wend


[keywords:71b84696e8]
user User actually announced detect
[/keywords:71b84696e8]
 
04/03/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.721 Views

Untitledvor 0 min.
Julian Schmidt12/12/12
Andreas Koch12/16/11

Themeninformationen

this Topic has 1 subscriber:

unbekannt (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie