Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function for capturing PC Name?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01212880
Message ID:
01212888
Views:
8
Hey, that is really a clean little function. Nice.

Thank you Marti,

Cecil

>Hi Cecil,
DECLARE INTEGER GetComputerName IN KERNEL32.DLL STRING @, INTEGER @
lclpBuffer=SPACE(30)+CHR(0) && Set Buffer
liSize=LEN(lclpBuffer) && Size of buffer
lii=GetComputerName(@lclpBuffer,@liSize) && Get computer name
?lclpBuffer
MartiJ

>>Is there some kind of function which can capture the name of the Workstation, or PC Name?
Previous
Reply
Map
View

Click here to load this message in the networking platform