>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.