Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to obtain Computer ID.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00392928
Message ID:
00392940
Vues:
8
>Hi
>
>I have a client who wants to limit some VFP functions in an app to working on certain terminals over the network. Basically some functions within an application should only be accessible by certain computers. For example, the billing function is only available on main office computer.
>
>Since I do not want to write separate apps for this functionality I thought about using the Sys(0) function to find the machine name. I could use this information to enable/disable certain function but a user could change this name and then get access to the restricted function.
>

SYS(0) returns the NetBIOS name, guarenteed to be unique at least within the current domain/workgroup environment. Since there's no other identifier absolutely guarenteed to be usable, it's likely the best you're going to get easily.

>The app will be sold to a variety of clients so I want to find a generic solution.
>
>Does anyone have a better idea about how to uniquely identify a computer on the network? It does not have to be bullet proof but beyond the average users ability to defeat.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform