$OPTION VBDLL ON
DECLARE FUNCTION GetComputerName LIB "kernel32" ALIAS "GetComputerNameA"(BYVAL lpBuffer AS STRING, nSize AS LONG) AS LONG
DIM MyBuffer AS STRING*256
DIM intVal AS INTEGER
intVal = 256
GetComputerName(MyBuffer, intVal)
MESSAGEBOX(MyBuffer,"",0)
|