J'ai un petit soucis avec la fonction
GetUserName, celle-ci me retourne une string vide, le soucis et egalement present avec la fonction GetComputerName.
Quelqu'un aurait-il un exemple a me fournir ?
Voici mon code:
.data
MsgBoxCaption1 db "User Name",0
MsgBoxCaption2 db "Computer Name",0
MsgBoxText db ?
StringLen dd ?
.code
invoke GetUserName, addr MsgBoxText,addr StringLen
invoke MessageBox, NULL, addr MsgBoxText, addr MsgBoxCaption1, MB_OK
invoke GetComputerName, addr MsgBoxText,addr StringLen
invoke MessageBox, NULL, addr MsgBoxText, addr MsgBoxCaption2, MB_OK