Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows Authentication
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00757860
Message ID:
00758335
Views:
17
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
Map
View

Click here to load this message in the networking platform