Hey, that is really a clean little function. Nice.
Thank you Marti,
Cecil
>Hi Cecil,
DECLAREINTEGER GetComputerName IN KERNEL32.DLLSTRING @, 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?