Page d'accueil
Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Login
ENGLISH
Accueil
ENGLISH
Plateforme Level Extreme
Login
Pratiques d'usage
Témoignages
Fichiers
Articles
Abonnement
Abonnez-vous ou renouveller
Bénéfices
Faites un don de 5$
Faites un don de 10$
Faites un don de 15$
Faites un don de 20$
Faites un don de 25$
Profil corporatif
Aperçu
Portfolio
Produits & Services
Services experts-conseils
Service entreprise
Hébergement Site Web
Infographie
Publication de livres
Support
Troubleshooting
Difficultés pour authentifier
Contactez-nous
Légal
Copyright
Politique de confidentialité
Termes & Conditions
English
Retrieving Windows Group Membership
Message
De
05/04/2007 06:50:28
Christian Ehlscheid
Edv Ermtraud Gmbh
Rengsdorf
,
Allemagne
À
05/04/2007 05:41:32
Rick Strahl
West Wind Technologies
Maui
,
Hawaii
,
États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Re:
Retrieving Windows Group Membership
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2003 Server
Divers
Thread ID:
01212365
Message ID:
01212368
Vues:
15
Hello,
there are at least 3 ways i've found to query if the user has administrative rights.
1. NetUserGetInfo function - query for information level 1 and check
the "usri1_priv" field
http://msdn2.microsoft.com/en-us/library/aa370654.aspx
example in C
http://groups.google.de/group/borland.public.cppbuilder.winapi/browse_thread/thread/c3cf04a2b1ba722c/b4f8f6f7006873df?lnk=st&q=NetUserGetInfo+administrator&rnum=4&hl=de#b4f8f6f7006873df
2.IsUserAnAdmin function - very easy to use but might be unsupported in future OS Versions (and not available depending on service pack level/ shell32.dll version)
see notes @
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/functions/isuseranadmin.asp?frame=true
3. The hardcore API way, should be easily convertable into an FLL function, but I wouldn't do it in pure FoxPro code
http://support.microsoft.com/?scid=kb%3Ben-us%3B118626&x=16&y=17
Regards
Christian
Précédent
Suivant
Répondre
Fil
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement
Click here to load this message in the networking platform
Plateforme Level Extreme
Pratiques d'usage
Témoignages
Fichiers
Articles
Abonnement
Abonnez-vous ou renouveller
Bénéfices
Faites un don de 5$
Faites un don de 10$
Faites un don de 15$
Faites un don de 20$
Faites un don de 25$
Profil corporatif
Aperçu
Portfolio
Produits & Services
Services experts-conseils
Service entreprise
Hébergement Site Web
Infographie
Publication de livres
Support
Troubleshooting
Difficultés pour authentifier
Contactez-nous
Légal
Copyright
Politique de confidentialité
Termes & Conditions
Login
Google
Copyright © 1993-2024 par Level Extreme Inc. Tous droits réservés · Site Web conçu par
levelextreme.com