Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Identifying a machine
Message
De
17/12/2010 05:08:18
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01492926
Message ID:
01493047
Vues:
68
Why not just use an INI file setting on each machine ?

>Thanks for that, I was hoping to just pick a machine name or whatever, it needs to be guided by the actual physical machine IE one machine in CANNING is able to CAN TAB, a mching in weighing is able to amend WEIGHTING TAB.
>
>>>I have an application where I want to grant access to certain menu options depending on which machine it is on a network.
>>>
>>>Whats the best way to achieve this?
>>>
>>>I want a supervisor to be able to say MACHINE X in CANNING has access to the CANNING TAB for example or
>>>machine Y is an administrator in the office so has full access to all of the programs.
>>>
>>>Is the easiest way to detect the current users login name?
>>
>>You've got answers to that - but if you want a 'supervisor' to control this externally you should maybe assign rights to windows *groups* and let the supervisor control which users belong to a specific group. Would be a doddle in .NET but I'm not sure how you would do this in VFP beyond the fact that you'd need the WINAPI CheckMembershipToken function....
>>
>>UPDATE: Found this from Sergey: http://www.berezniker.com/content/pages/visual-foxpro/-user-member-administrators-group
>>but it's working with a built-in role whereas you would need to specify the role.....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform