Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell user has Admin rights in Wk2 or XP in VFP7?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00707541
Message ID:
00707581
Views:
20
>I would like to write a routine that would install the Amyuni printer driver from the menu of our program, if the driver never got installed initially. However, I need to know if the current user has the rights to install a printer driver before letting them install the driver. If they don't have rights, I would inform them they need to log in as Administrator prior to attempting this option.
>
>Does anyone know how to tell whether a user has rights to create a printer driver in W2k or XP programmatically in VFP7 or whether they are logged in as Admininstrator? An API call would be nice, but need an example on how to use it.
>
>Thanks in advance!
>
John,

Just a SWAG here, but I'd try to write something (junk really), to the HKEY_CLASSES_ROOT hive of the registry. If the key can't be created, they probably don't have admin rights. If it can, then your install will probably come off OK.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform