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