General information
Category:
Windows API functions
DECLARE INTEGER GetComputerName IN kernel32;
STRING @ lpBuffer, INTEGER @ nSize
nSize = 250
lpBuffer = SPACE(nSize)
IF GetComputerName (@lpBuffer, @nSize) > 0
lpBuffer = STRTRAN (SUBSTR (lpBuffer, 1, nSize), Chr(0),"")
? "Computer: " + lpBuffer
ENDIF
The above code returns the name of my computer.
>All I get back from that is a 0.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only