Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Network machine name in Win95 with Novell?
Message
From
03/09/1997 10:59:53
 
 
To
03/09/1997 10:57:26
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00048101
Message ID:
00048276
Views:
22
>Does the following code the job?
>
>*-- Retrieves local computer name from registry
>PROCEDURE retrievecomputername
> local lcMachineName,lnLen,llRetVal
> declare GetComputerName in WIN32API string @,long @
> lcMachineName=space(200)
> lnLen=200
> llRetVal=GetComputerName(@lcMachineName,@lnLen)
> return
>iif(llRetval,left(alltr(lcMachineName),len(alltr(lcMachineName))-1),.Null.)
>ENDPROC

It sure does. However, we need to remove the last character in lcMachineName as this is the CHR(0). I guess you want me to add this one in the Knowledge Base section under WIN32API? :)
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform