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@