Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Network machine name in Win95 with Novell?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00048101
Message ID:
00048287
Vues:
21
>Hello Michel!
>
>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
>
>
>
>Have a happy day,
>Vladimir Shevchenko
>
>P.S. Sorry, if too late ;), i'm not have permanent connection
>
>> This maybe done by using WIN32API and/or NET32API. However, NET32API will
>
>> only work under NT. But, as mentioned by Tony, you can get the user name
>> with the sample he gave you. You can also find a similar sample in the
>> Knowledge Base WIN32API category. As for the machine name, I'm not sure
>if
>> this is doable.
>>

Vladimir, Thank you for your suggestion above, I'll work on it. Tom Hayward
Tom Hayward, Visual FoxPro Programmer and Tutor
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform