Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More constants
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00036870
Message ID:
00036938
Vues:
38
>>There is some NETAPI32 constants which I need the values.
>>
>>Those are UF_SCRIPT, UF_ACCOUNTDISABLE, UF_HOMEDIR_REQUIRED, UF_PASSWD_CANT_CHANGE, UF_LOCKOUT, UF_TEMP_DUPLICATE_ACCOUNT, UF_WORKSTATION_TRUST_ACCOUNT, UF_SERVER_TRUST_ACCOUNT and UF_INTERDOMAIN_TRUST_ACCOUNT.
>>
>>Those are part of the NetUserAdd() function for usri1_flags member of the structure. I already have UF_PASSWD_NOTREQD which is 32 and UF_NORMAL_ACCOUNT which is 512.
>>
>>Thanks.
>
>
>Michel,
>
>Here you go:
>
>#define UF_SCRIPT 0x0001
>#define UF_ACCOUNTDISABLE 0x0002
>#define UF_HOMEDIR_REQUIRED 0x0008
>#define UF_PASSWD_CANT_CHANGE 0x0040
>#define UF_LOCKOUT 0x0010
>#define UF_TEMP_DUPLICATE_ACCOUNT 0x0100
>#define UF_NORMAL_ACCOUNT 0x0200
>#define UF_INTERDOMAIN_TRUST_ACCOUNT 0x0800
>#define UF_WORKSTATION_TRUST_ACCOUNT 0x1000
>#define UF_SERVER_TRUST_ACCOUNT 0x2000
>
>I found these in LMACCESS.H

Thanks for the info.

To solve this once and for all, we now have the entire .h files. :)

Many of us us Visual FoxPro to access WIN32API. But, if we don't do C++ programming, we don't have access to those constants. The WIN32API is not a complete help as we had to make reference to those constants using external tools. I guess this is a suggestion for Microsoft to improve this help so it will help us, from environments other C++, to have access to those values.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform