lmaccess.h header

This header is used by multiple technologies. For more information, see:

lmaccess.h contains the following programming interfaces:

Functions

 
I_NetLogonControl2

Controls various aspects of the Netlogon service.
NetAccessAdd

Not supported. (NetAccessAdd)
NetAccessDel

Not supported. (NetAccessDel)
NetAccessEnum

Not supported. (NetAccessEnum)
NetAccessGetInfo

Not supported. (NetAccessGetInfo)
NetAccessGetUserPerms

Not supported. (NetAccessGetUserPerms)
NetAccessSetInfo

Not supported. (NetAccessSetInfo)
NetAddServiceAccount

Creates a standalone managed service account (sMSA) or retrieves the credentials for a group managed service account (gMSA) and stores the account information on the local computer.
NetEnumerateServiceAccounts

Enumerates the standalone managed service accounts (sMSA) on the specified server.
NetGetAnyDCName

The NetGetAnyDCName function returns the name of any domain controller (DC) for a domain that is directly trusted by the specified server.
NetGetDCName

The NetGetDCName function returns the name of the primary domain controller (PDC). It does not return the name of the backup domain controller (BDC) for the specified domain. Also, you cannot remote this function to a non-PDC server.
NetGetDisplayInformationIndex

The NetGetDisplayInformationIndex function returns the index of the first display information entry whose name begins with a specified string or whose name alphabetically follows the string.
NetGroupAdd

The NetGroupAdd function creates a global group in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
NetGroupAddUser

The NetGroupAddUser function gives an existing user account membership in an existing global group in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
NetGroupDel

The NetGroupDel function deletes a global group from the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
NetGroupDelUser

The NetGroupDelUser function removes a user from a particular global group in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
NetGroupEnum

The NetGroupEnum function retrieves information about each global group in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
NetGroupGetInfo

The NetGroupGetInfo function retrieves information about a particular global group in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
NetGroupGetUsers

The NetGroupGetUsers function retrieves a list of the members in a particular global group in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
NetGroupSetInfo

The NetGroupSetInfo function sets the parameters of a global group in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
NetGroupSetUsers

The NetGroupSetUsers function sets the membership for the specified global group.
NetIsServiceAccount

Tests whether the specified standalone managed service account (sMSA) or group managed service account (gMSA) exists in the Netlogon store on the specified server.
NetLocalGroupAdd

The NetLocalGroupAdd function creates a local group in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
NetLocalGroupAddMember

The NetLocalGroupAddMember function is obsolete. You should use the NetLocalGroupAddMembers function instead.
NetLocalGroupAddMembers

The NetLocalGroupAddMembers function adds membership of one or more existing user accounts or global group accounts to an existing local group.
NetLocalGroupDel

The NetLocalGroupDel function deletes a local group account and all its members from the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
NetLocalGroupDelMember

The NetLocalGroupDelMember function is obsolete. You should use the NetLocalGroupDelMembers function instead.
NetLocalGroupDelMembers

The NetLocalGroupDelMembers function removes one or more members from an existing local group. Local group members can be users or global groups.
NetLocalGroupEnum

The NetLocalGroupEnum function returns information about each local group account on the specified server.
NetLocalGroupGetInfo

The NetLocalGroupGetInfo function retrieves information about a particular local group account on a server.
NetLocalGroupGetMembers

The NetLocalGroupGetMembers function retrieves a list of the members of a particular local group in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
NetLocalGroupSetInfo

The NetLocalGroupSetInfo function changes the name of an existing local group. The function also associates a comment with a local group.
NetLocalGroupSetMembers

The NetLocalGroupSetMembers function sets the membership for the specified local group.
NetQueryDisplayInformation

The NetQueryDisplayInformation function returns user account, computer, or group account information. Call this function to quickly enumerate account information for display in user interfaces.
NetQueryServiceAccount

Gets information about the specified managed service account.
NetRemoveServiceAccount

Deletes the specified service account from the Active Directory database if the account is a standalone managed service account (sMSA).
NetUserAdd

The NetUserAdd function adds a user account and assigns a password and privilege level.
NetUserChangePassword

The NetUserChangePassword function changes a user's password for a specified network server or domain.
NetUserDel

The NetUserDel function deletes a user account from a server.
NetUserEnum

The NetUserEnum function retrieves information about all user accounts on a server.
NetUserGetGroups

The NetUserGetGroups function retrieves a list of global groups to which a specified user belongs.
NetUserGetInfo

The NetUserGetInfo function retrieves information about a particular user account on a server.
NetUserGetLocalGroups

The NetUserGetLocalGroups function retrieves a list of local groups to which a specified user belongs.
NetUserModalsGet

The NetUserModalsGet function retrieves global information for all users and global groups in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
NetUserModalsSet

The NetUserModalsSet function sets global information for all users and global groups in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
NetUserSetGroups

The NetUserSetGroups function sets global group memberships for a specified user account.
NetUserSetInfo

The NetUserSetInfo function sets the parameters of a user account.
NetValidatePasswordPolicy

The NetValidatePasswordPolicy function allows an application to check password compliance against an application-provided account database and verify that passwords meet the complexity, aging, minimum length, and history reuse requirements of a password policy.
NetValidatePasswordPolicyFree

The NetValidatePasswordPolicyFree function frees the memory that the NetValidatePasswordPolicy function allocates for the OutputArg parameter, which is a NET_VALIDATE_OUTPUT_ARG structure.

Structures

 
GROUP_INFO_0

The GROUP_INFO_0 structure contains the name of a global group in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
GROUP_INFO_1

The GROUP_INFO_1 structure contains a global group name and a comment to associate with the group.
GROUP_INFO_1002

The GROUP_INFO_1002 structure contains a comment to associate with a global group.
GROUP_INFO_1005

The GROUP_INFO_1005 structure contains the resource attributes associated with a global group.
GROUP_INFO_2

The GROUP_INFO_2 structure contains information about a global group, including name, identifier, and resource attributes.
GROUP_INFO_3

The GROUP_INFO_3 structure contains information about a global group, including name, security identifier (SID), and resource attributes.
GROUP_USERS_INFO_0

The GROUP_USERS_INFO_0 structure contains global group member information.
GROUP_USERS_INFO_1

The GROUP_USERS_INFO_1 structure contains global group member information.
LOCALGROUP_INFO_0

The LOCALGROUP_INFO_0 structure contains a local group name.
LOCALGROUP_INFO_1

The LOCALGROUP_INFO_1 structure contains a local group name and a comment describing the local group.
LOCALGROUP_INFO_1002

The LOCALGROUP_INFO_1002 structure contains a comment describing a local group.
LOCALGROUP_MEMBERS_INFO_0

The LOCALGROUP_MEMBERS_INFO_0 structure contains the security identifier (SID) associated with a local group member. The member can be a user account or a global group account.
LOCALGROUP_MEMBERS_INFO_1

The LOCALGROUP_MEMBERS_INFO_1 structure contains the security identifier (SID) and account information associated with the member of a local group.
LOCALGROUP_MEMBERS_INFO_2

The LOCALGROUP_MEMBERS_INFO_2 structure contains the security identifier (SID) and account information associated with a local group member.
LOCALGROUP_MEMBERS_INFO_3

The LOCALGROUP_MEMBERS_INFO_3 structure contains the account name and domain name associated with a local group member.
LOCALGROUP_USERS_INFO_0

The LOCALGROUP_USERS_INFO_0 structure contains local group member information.
MSA_INFO_0

Specifies information about a managed service account.
NET_DISPLAY_GROUP

The NET_DISPLAY_GROUP structure contains information that an account manager can access to determine information about group accounts.
NET_DISPLAY_MACHINE

The NET_DISPLAY_MACHINE structure contains information that an account manager can access to determine information about computers and their attributes.
NET_DISPLAY_USER

The NET_DISPLAY_USER structure contains information that an account manager can access to determine information about user accounts.
NET_VALIDATE_AUTHENTICATION_INPUT_ARG

A client application passes the NET_VALIDATE_AUTHENTICATION_INPUT_ARG structure to the NetValidatePasswordPolicy function when the application requests an authentication validation.
NET_VALIDATE_OUTPUT_ARG

The NET_VALIDATE_OUTPUT_ARG structure contains information about persistent password-related data that has changed since the user's last logon as well as the result of the function's password validation check.
NET_VALIDATE_PASSWORD_CHANGE_INPUT_ARG

A client application passes the NET_VALIDATE_PASSWORD_CHANGE_INPUT_ARG structure to the NetValidatePasswordPolicy function when the application requests a password change validation.
NET_VALIDATE_PASSWORD_HASH

The NET_VALIDATE_PASSWORD_HASH structure contains a password hash.
NET_VALIDATE_PASSWORD_RESET_INPUT_ARG

A client application passes the NET_VALIDATE_PASSWORD_RESET_INPUT_ARG structure to the NetValidatePasswordPolicy function when the application requests a password reset validation.
NET_VALIDATE_PERSISTED_FIELDS

The NET_VALIDATE_PERSISTED_FIELDS structure contains information about a user's password properties.
NETLOGON_INFO_1

Defines a level-1 control query response from a domain controller.
NETLOGON_INFO_2

Defines a level-2 control query response from a domain controller.
NETLOGON_INFO_3

Defines a level-3 control query response from a domain controller.
NETLOGON_INFO_4

Defines a level-4 control query response from a domain controller.
USER_INFO_0

The USER_INFO_0 structure contains a user account name.
USER_INFO_1

The USER_INFO_1 structure contains information about a user account, including account name, password data, privilege level, and the path to the user's home directory.
USER_INFO_10

The USER_INFO_10 structure contains information about a user account, including the account name, comments associated with the account, and the user's full name.
USER_INFO_1003

The USER_INFO_1003 structure contains a user password. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1005

The USER_INFO_1005 structure contains a privilege level to assign to a user network account. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1006

The USER_INFO_1006 structure contains the user's home directory path. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1007

The USER_INFO_1007 structure contains a comment associated with a user network account. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1008

The USER_INFO_1008 structure contains a set of bit flags defining several user network account parameters. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1009

The USER_INFO_1009 structure contains the path for a user's logon script file. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1010

The USER_INFO_1010 structure contains a set of bit flags defining the operator privileges assigned to a user network account. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1011

The USER_INFO_1011 structure contains the full name of a network user. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1012

The USER_INFO_1012 structure contains a user comment. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1013

The USER_INFO_1013 structure contains reserved information for network accounts. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1014

The USER_INFO_1014 structure contains the names of workstations from which the user can log on. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1017

The USER_INFO_1017 structure contains expiration information for network user accounts. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1018

The USER_INFO_1018 structure contains the maximum amount of disk space available to a network user account. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1020

The USER_INFO_1020 structure contains the times during which a user can log on to the network. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1023

The USER_INFO_1023 structure contains the name of the server to which network logon requests should be sent. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1024

The USER_INFO_1024 structure contains the country/region code for a network user's language of choice. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1025

The USER_INFO_1025 structure contains the code page for a network user's language of choice. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1051

The USER_INFO_1051 structure contains the relative ID (RID) associated with the user account. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1052

The USER_INFO_1052 structure contains the path to a network user's profile. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_1053

The USER_INFO_1053 structure contains user information for network accounts. This information level is valid only when you call the NetUserSetInfo function.
USER_INFO_11

The USER_INFO_11 structure contains information about a user account, including the account name, privilege level, the path to the user's home directory, and other user-related network statistics.
USER_INFO_2

The USER_INFO_2 structure contains information about a user account, including the account name, password data, privilege level, the path to the user's home directory, and other user-related network statistics.
USER_INFO_20

Contains information about a user account, including the account name, the user's full name, a comment associated with the account, and the user's relative ID (RID).
USER_INFO_21

The USER_INFO_21 structure contains a one-way encrypted LAN Manager 2.x-compatible password.
USER_INFO_22

The USER_INFO_22 structure contains information about a user account, including the account name, privilege level, the path to the user's home directory, a one-way encrypted LAN Manager 2.x-compatible password, and other user-related network statistics.
USER_INFO_23

Contains information about a user account, including the account name, the user's full name, a comment associated with the account, and the user's security identifier (SID).
USER_INFO_24

Contains user account information on an account which is connected to an Internet identity. This information includes the Internet provider name for the user, the user's Internet name, and the user's security identifier (SID).
USER_INFO_3

The USER_INFO_3 structure contains information about a user account, including the account name, password data, privilege level, the path to the user's home directory, relative identifiers (RIDs), and other user-related network statistics.
USER_INFO_4

The USER_INFO_4 structure contains information about a user account, including the account name, password data, privilege level, the path to the user's home directory, security identifier (SID), and other user-related network statistics.
USER_MODALS_INFO_0

The USER_MODALS_INFO_0 structure contains global password information for users and global groups in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
USER_MODALS_INFO_1

The USER_MODALS_INFO_1 structure contains logon server and domain controller information.
USER_MODALS_INFO_1001

The USER_MODALS_INFO_1001 structure contains the minimum length for passwords in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
USER_MODALS_INFO_1002

The USER_MODALS_INFO_1002 structure contains the maximum duration for passwords in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
USER_MODALS_INFO_1003

The USER_MODALS_INFO_1003 structure contains the minimum duration for passwords in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
USER_MODALS_INFO_1004

The USER_MODALS_INFO_1004 structure contains forced logoff information for users and global groups in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
USER_MODALS_INFO_1005

The USER_MODALS_INFO_1005 structure contains password history information for users and global groups in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
USER_MODALS_INFO_1006

The USER_MODALS_INFO_1006 structure contains logon server information.
USER_MODALS_INFO_1007

The USER_MODALS_INFO_1007 structure contains domain controller information.
USER_MODALS_INFO_2

The USER_MODALS_INFO_2 structure contains the Security Account Manager (SAM) domain name and identifier.
USER_MODALS_INFO_3

The USER_MODALS_INFO_3 structure contains lockout information for users and global groups in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.

Enumerations

 
MSA_INFO_LEVEL

Indicates the level of a managed service account.
MSA_INFO_STATE

Indicates the state of a managed service account.