[SNIPPET] GetCurrentPcUserName

With this function u can get the current Username of the Computer  :imoverit:
Code:
//0AB1: @GetCurrentPcUserName 0 0@ 
:GetCurrentPcUserName
IF 
0AA2: 31@ = load_library "Advapi32.dll" 
THEN  
    0AC8: 1@ = allocate_memory_size 260 
    IF
    0AA4: 30@ = get_proc_address "GetUserNameA" library 31@ 
    THEN  
        0AC8: 0@ = allocate_memory_size 260    
        0AA5: call 30@ num_params 2 pop 0 0@ 1@
        0AC9: free_allocated_memory 0@
    ELSE
        0AD3: 1@ = "ERROR"
    END
    0AA3: free_library 31@
END
0AB2: 1 1@
 

Monstercat

Well-known member
Joined
Feb 26, 2013
Messages
281
Reaction score
5
Re: GetCurrentPcUserName

PopandauL link said:
I guess it's for windows...?

I+don+t+even+watch+breaking+bad+yet+but+this+is+_e9e205809164f5a8191056e587d3e28e.jpg
 
Top