Kod: Zaznacz cały
#import "kernel32.dll"
int GetComputerNameA(string lpBuffer,string nSize);
#import
string buf="";
int result;
result=GetComputerNameA(buf,StringLen(buf));
Próbowałem również tego samego tylko
Kod: Zaznacz cały
GetComputerNameW(buf,StringLen(buf));