Platform SDK: Network Management

User Modal Functions

The network management user modal functions control the system-wide parameters that affect the Windows NT/Windows 2000 security system behavior.

The user modal functions are listed following.

Function Description
NetUserModalsGet Returns global information for all users and global groups in the security database.
NetUserModalsSet Sets global information for all users and global groups in the security database.

The NetUserModalsGet and NetUserModalsSet functions examine and modify the modal settings, which are global parameters that affect every account in the security database (for example, the minimum allowable password length). All modal settings can be altered by calling NetUserModalsSet. Most of the modals can also be altered by using the net accounts command. The network management user modal functions do not require the server to have user-level security.

User modal information is available at the following levels:

USER_MODALS_INFO_0
USER_MODALS_INFO_1
USER_MODALS_INFO_2
USER_MODALS_INFO_3

The following information levels are valid only for NetUserModalsSet and replace the older way of passing in a Parmnum to set a specific field:

USER_MODALS_INFO_1001
USER_MODALS_INFO_1002
USER_MODALS_INFO_1003
USER_MODALS_INFO_1004
USER_MODALS_INFO_1005
USER_MODALS_INFO_1006
USER_MODALS_INFO_1007

If you are programming for Active Directory™, you may be able to call certain Active Directory Service Interface (ADSI) methods to achieve the same functionality you can achieve by calling the network management user modal functions. For more information, see IADsDomain.