Docs.rs
ntapi-0.4.1
ntapi 0.4.1
Docs.rs crate page
Apache-2.0 OR MIT
Links
Repository
crates.io
Source
Owners
MSxDOS
Dependencies
winapi ^0.3.9
normal
Versions
0.06%
of the crate is documented
Platform
aarch64-pc-windows-msvc
i686-pc-windows-msvc
x86_64-pc-windows-msvc
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
Module ntsam
Structs
Constants
Functions
Type Definitions
Unions
?
Module
ntapi
::
ntsam
source
·
[
−
]
Structs
ALIAS_ADM_COMMENT_INFORMATION
ALIAS_EXTENDED_INFORMATION
ALIAS_GENERAL_INFORMATION
ALIAS_NAME_INFORMATION
DOMAIN_DISPLAY_GROUP
DOMAIN_DISPLAY_MACHINE
DOMAIN_DISPLAY_OEM_GROUP
DOMAIN_DISPLAY_OEM_USER
DOMAIN_DISPLAY_USER
DOMAIN_GENERAL_INFORMATION
DOMAIN_GENERAL_INFORMATION2
DOMAIN_LOCALIZABLE_ACCOUNTS_BASIC
DOMAIN_LOCALIZABLE_ACCOUNT_ENTRY
DOMAIN_LOCKOUT_INFORMATION
DOMAIN_LOGOFF_INFORMATION
DOMAIN_MODIFIED_INFORMATION
DOMAIN_MODIFIED_INFORMATION2
DOMAIN_NAME_INFORMATION
DOMAIN_OEM_INFORMATION
DOMAIN_REPLICATION_INFORMATION
DOMAIN_SERVER_ROLE_INFORMATION
DOMAIN_STATE_INFORMATION
DOMAIN_UAS_INFORMATION
GROUP_ADM_COMMENT_INFORMATION
GROUP_ATTRIBUTE_INFORMATION
GROUP_GENERAL_INFORMATION
GROUP_MEMBERSHIP
GROUP_NAME_INFORMATION
SAM_ALIAS_MEMBER_ID
SAM_BYTE_ARRAY
SAM_BYTE_ARRAY_32K
SAM_GROUP_MEMBER_ID
SAM_OPERATION_OBJCHG_INPUT
SAM_OPERATION_OBJCHG_OUTPUT
SAM_RID_ENUMERATION
SAM_SID_ENUMERATION
SAM_VALIDATE_AUTHENTICATION_INPUT_ARG
SAM_VALIDATE_PASSWORD_CHANGE_INPUT_ARG
SAM_VALIDATE_PASSWORD_HASH
SAM_VALIDATE_PASSWORD_RESET_INPUT_ARG
SAM_VALIDATE_PERSISTED_FIELDS
SAM_VALIDATE_STANDARD_OUTPUT_ARG
USER_ACCOUNT_INFORMATION
USER_ACCOUNT_NAME_INFORMATION
USER_ADMIN_COMMENT_INFORMATION
USER_CONTROL_INFORMATION
USER_EXPIRES_INFORMATION
USER_EXTENDED_INFORMATION
USER_FULL_NAME_INFORMATION
USER_GENERAL_INFORMATION
USER_HOME_INFORMATION
USER_LOGON_HOURS_INFORMATION
USER_LOGON_INFORMATION
USER_LOGON_UI_INFORMATION
USER_NAME_INFORMATION
USER_PARAMETERS_INFORMATION
USER_PREFERENCES_INFORMATION
USER_PRIMARY_GROUP_INFORMATION
USER_PROFILE_INFORMATION
USER_PWD_CHANGE_FAILURE_INFORMATION
USER_SCRIPT_INFORMATION
USER_SET_PASSWORD_INFORMATION
USER_WORKSTATIONS_INFORMATION
Constants
ALIAS_ADD_MEMBER
ALIAS_ALL_ACCESS
ALIAS_ALL_ADMIN_COMMENT
ALIAS_ALL_MEMBER_COUNT
ALIAS_ALL_NAME
ALIAS_ALL_SHELL_ADMIN_OBJECT_PROPERTIES
ALIAS_EXECUTE
ALIAS_LIST_MEMBERS
ALIAS_READ
ALIAS_READ_INFORMATION
ALIAS_REMOVE_MEMBER
ALIAS_WRITE
ALIAS_WRITE_ACCOUNT
AliasAdminCommentInformation
AliasExtendedInformation
AliasGeneralInformation
AliasNameInformation
AliasReplicationInformation
DOMAIN_ADMINISTER_SERVER
DOMAIN_ALL_ACCESS
DOMAIN_CREATE_ALIAS
DOMAIN_CREATE_GROUP
DOMAIN_CREATE_USER
DOMAIN_EXECUTE
DOMAIN_GET_ALIAS_MEMBERSHIP
DOMAIN_LIST_ACCOUNTS
DOMAIN_LOOKUP
DOMAIN_READ
DOMAIN_READ_OTHER_PARAMETERS
DOMAIN_READ_PASSWORD_PARAMETERS
DOMAIN_WRITE
DOMAIN_WRITE_OTHER_PARAMETERS
DOMAIN_WRITE_PASSWORD_PARAMS
DomainDisplayGroup
DomainDisplayMachine
DomainDisplayOemGroup
DomainDisplayOemUser
DomainDisplayServer
DomainDisplayUser
DomainGeneralInformation
DomainGeneralInformation2
DomainLocalizableAccountsBasic
DomainLockoutInformation
DomainLogoffInformation
DomainModifiedInformation
DomainModifiedInformation2
DomainNameInformation
DomainOemInformation
DomainPasswordComplex
DomainPasswordInformation
DomainPasswordSimple
DomainReplicationInformation
DomainServerDisabled
DomainServerEnabled
DomainServerRoleBackup
DomainServerRoleInformation
DomainServerRolePrimary
DomainStateInformation
DomainUasInformation
GROUP_ADD_MEMBER
GROUP_ALL_ACCESS
GROUP_EXECUTE
GROUP_LIST_MEMBERS
GROUP_READ
GROUP_READ_INFORMATION
GROUP_REMOVE_MEMBER
GROUP_TYPE_ACCOUNT_GROUP
GROUP_TYPE_APP_BASIC_GROUP
GROUP_TYPE_APP_QUERY_GROUP
GROUP_TYPE_BUILTIN_LOCAL_GROUP
GROUP_TYPE_RESOURCE_BEHAVOIR
GROUP_TYPE_RESOURCE_GROUP
GROUP_TYPE_SECURITY_ENABLED
GROUP_TYPE_UNIVERSAL_GROUP
GROUP_WRITE
GROUP_WRITE_ACCOUNT
GroupAdminCommentInformation
GroupAttributeInformation
GroupGeneralInformation
GroupNameInformation
GroupReplicationInformation
SAM_DELTA_NOTIFY_ROUTINE
SAM_GLOBAL_GROUP_ACCOUNT
SAM_LOCAL_GROUP_ACCOUNT
SAM_MAXIMUM_LOOKUP_COUNT
SAM_MAXIMUM_LOOKUP_LENGTH
SAM_MAX_PASSWORD_LENGTH
SAM_PASSWORD_ENCRYPTION_SALT_LEN
SAM_PWD_CHANGE_FAILED_BY_FILTER
SAM_PWD_CHANGE_FAILURE_REASON_MAX
SAM_PWD_CHANGE_FULLNAME_IN_PASSWORD
SAM_PWD_CHANGE_MACHINE_PASSWORD_NOT_DEFAULT
SAM_PWD_CHANGE_NOT_COMPLEX
SAM_PWD_CHANGE_NO_ERROR
SAM_PWD_CHANGE_PASSWORD_TOO_LONG
SAM_PWD_CHANGE_PASSWORD_TOO_SHORT
SAM_PWD_CHANGE_PWD_IN_HISTORY
SAM_PWD_CHANGE_USERNAME_IN_PASSWORD
SAM_SERVER_ALL_ACCESS
SAM_SERVER_CONNECT
SAM_SERVER_CREATE_DOMAIN
SAM_SERVER_ENUMERATE_DOMAINS
SAM_SERVER_EXECUTE
SAM_SERVER_INITIALIZE
SAM_SERVER_LOOKUP_DOMAIN
SAM_SERVER_READ
SAM_SERVER_SHUTDOWN
SAM_SERVER_WRITE
SAM_SID_COMPATIBILITY_ALL
SAM_SID_COMPATIBILITY_LAX
SAM_SID_COMPATIBILITY_STRICT
SAM_USER_ACCOUNT
SAM_VALIDATE_BAD_PASSWORD_COUNT
SAM_VALIDATE_BAD_PASSWORD_TIME
SAM_VALIDATE_LOCKOUT_TIME
SAM_VALIDATE_PASSWORD_HISTORY
SAM_VALIDATE_PASSWORD_HISTORY_LENGTH
SAM_VALIDATE_PASSWORD_LAST_SET
SamObjectAlias
SamObjectChangeNotificationOperation
SamObjectGroup
SamObjectUser
SamValidateAccountLockedOut
SamValidateAuthentication
SamValidatePasswordChange
SamValidatePasswordExpired
SamValidatePasswordFilterError
SamValidatePasswordIncorrect
SamValidatePasswordIsInHistory
SamValidatePasswordMustChange
SamValidatePasswordNotComplexEnough
SamValidatePasswordReset
SamValidatePasswordTooLong
SamValidatePasswordTooRecent
SamValidatePasswordTooShort
SamValidateSuccess
SecurityDbChange
SecurityDbChangeMemberAdd
SecurityDbChangeMemberDel
SecurityDbChangeMemberSet
SecurityDbChangePassword
SecurityDbDelete
SecurityDbNew
SecurityDbObjectLsaAccount
SecurityDbObjectLsaPolicy
SecurityDbObjectLsaSecret
SecurityDbObjectLsaTDomain
SecurityDbObjectSamAlias
SecurityDbObjectSamDomain
SecurityDbObjectSamGroup
SecurityDbObjectSamUser
SecurityDbRename
USER_ALL_ACCESS
USER_ALL_ACCOUNTEXPIRES
USER_ALL_ADMINCOMMENT
USER_ALL_BADPASSWORDCOUNT
USER_ALL_CODEPAGE
USER_ALL_COUNTRYCODE
USER_ALL_FULLNAME
USER_ALL_HOMEDIRECTORY
USER_ALL_HOMEDIRECTORYDRIVE
USER_ALL_LASTLOGOFF
USER_ALL_LASTLOGON
USER_ALL_LMPASSWORDPRESENT
USER_ALL_LOGONCOUNT
USER_ALL_LOGONHOURS
USER_ALL_NTPASSWORDPRESENT
USER_ALL_OWFPASSWORD
USER_ALL_PARAMETERS
USER_ALL_PASSWORDCANCHANGE
USER_ALL_PASSWORDEXPIRED
USER_ALL_PASSWORDLASTSET
USER_ALL_PASSWORDMUSTCHANGE
USER_ALL_PRIMARYGROUPID
USER_ALL_PRIVATEDATA
USER_ALL_PROFILEPATH
USER_ALL_READ_ACCOUNT_MASK
USER_ALL_READ_CANT_MASK
USER_ALL_READ_GENERAL_MASK
USER_ALL_READ_LOGON_MASK
USER_ALL_READ_PREFERENCES_MASK
USER_ALL_READ_TRUSTED_MASK
USER_ALL_SCRIPTPATH
USER_ALL_SECURITYDESCRIPTOR
USER_ALL_UNDEFINED_MASK
USER_ALL_USERACCOUNTCONTROL
USER_ALL_USERCOMMENT
USER_ALL_USERID
USER_ALL_USERNAME
USER_ALL_WORKSTATIONS
USER_ALL_WRITE_ACCOUNT_MASK
USER_ALL_WRITE_CANT_MASK
USER_ALL_WRITE_FORCE_PASSWORD_CHANGE_MASK
USER_ALL_WRITE_PREFERENCES_MASK
USER_ALL_WRITE_TRUSTED_MASK
USER_CHANGE_PASSWORD
USER_EXECUTE
USER_EXTENDED_FIELD_DONT_SHOW_IN_LOGON_UI
USER_EXTENDED_FIELD_PASSWORD_HINT
USER_EXTENDED_FIELD_SHELL_ADMIN_OBJECT_PROPERTIES
USER_EXTENDED_FIELD_USER_TILE
USER_FORCE_PASSWORD_CHANGE
USER_LIST_GROUPS
USER_READ
USER_READ_ACCOUNT
USER_READ_GENERAL
USER_READ_GROUP_INFORMATION
USER_READ_LOGON
USER_READ_PREFERENCES
USER_WRITE
USER_WRITE_ACCOUNT
USER_WRITE_GROUP_INFORMATION
USER_WRITE_PREFERENCES
UserAccountInformation
UserAccountNameInformation
UserAdminCommentInformation
UserAllInformation
UserControlInformation
UserExpiresInformation
UserExtendedInformation
UserFullNameInformation
UserGeneralInformation
UserHomeInformation
UserInternal1Information
UserInternal2Information
UserInternal3Information
UserInternal4Information
UserInternal4InformationNew
UserInternal5Information
UserInternal5InformationNew
UserInternal6Information
UserLogonHoursInformation
UserLogonInformation
UserLogonUIInformation
UserNameInformation
UserParametersInformation
UserPreferencesInformation
UserPrimaryGroupInformation
UserProfileInformation
UserScriptInformation
UserSetPasswordInformation
UserWorkStationsInformation
Functions
SamAddMemberToAlias
⚠
SamAddMemberToGroup
⚠
SamAddMultipleMembersToAlias
⚠
SamChangePasswordUser
⚠
SamChangePasswordUser2
⚠
SamChangePasswordUser3
⚠
SamCloseHandle
⚠
SamConnect
⚠
SamCreateAliasInDomain
⚠
SamCreateGroupInDomain
⚠
SamCreateUser2InDomain
⚠
SamCreateUserInDomain
⚠
SamDeleteAlias
⚠
SamDeleteGroup
⚠
SamDeleteUser
⚠
SamEnumerateAliasesInDomain
⚠
SamEnumerateDomainsInSamServer
⚠
SamEnumerateGroupsInDomain
⚠
SamEnumerateUsersInDomain
⚠
SamFreeMemory
⚠
SamGetAliasMembership
⚠
SamGetCompatibilityMode
⚠
SamGetDisplayEnumerationIndex
⚠
SamGetGroupsForUser
⚠
SamGetMembersInAlias
⚠
SamGetMembersInGroup
⚠
SamLookupDomainInSamServer
⚠
SamLookupIdsInDomain
⚠
SamLookupNamesInDomain
⚠
SamOpenAlias
⚠
SamOpenDomain
⚠
SamOpenGroup
⚠
SamOpenUser
⚠
SamPerformGenericOperation
⚠
SamQueryDisplayInformation
⚠
SamQueryInformationAlias
⚠
SamQueryInformationDomain
⚠
SamQueryInformationGroup
⚠
SamQueryInformationUser
⚠
SamQueryLocalizableAccountsInDomain
⚠
SamQuerySecurityObject
⚠
SamRegisterObjectChangeNotification
⚠
SamRemoveMemberFromAlias
⚠
SamRemoveMemberFromForeignDomain
⚠
SamRemoveMemberFromGroup
⚠
SamRemoveMultipleMembersFromAlias
⚠
SamRidToSid
⚠
SamSetInformationAlias
⚠
SamSetInformationDomain
⚠
SamSetInformationGroup
⚠
SamSetInformationUser
⚠
SamSetMemberAttributesOfGroup
⚠
SamSetSecurityObject
⚠
SamShutdownSamServer
⚠
SamUnregisterObjectChangeNotification
⚠
SamValidatePassword
⚠
Type Definitions
ALIAS_INFORMATION_CLASS
DOMAIN_DISPLAY_INFORMATION
DOMAIN_INFORMATION_CLASS
DOMAIN_LOCALIZABLE_ACCOUNTS_INFORMATION
DOMAIN_PASSWORD_CONSTRUCTION
DOMAIN_SERVER_ENABLE_STATE
DOMAIN_SERVER_ROLE
GROUP_INFORMATION_CLASS
PALIAS_ADM_COMMENT_INFORMATION
PALIAS_EXTENDED_INFORMATION
PALIAS_GENERAL_INFORMATION
PALIAS_NAME_INFORMATION
PASSWORD_POLICY_VALIDATION_TYPE
PDOMAIN_DISPLAY_GROUP
PDOMAIN_DISPLAY_INFORMATION
PDOMAIN_DISPLAY_MACHINE
PDOMAIN_DISPLAY_OEM_GROUP
PDOMAIN_DISPLAY_OEM_USER
PDOMAIN_DISPLAY_USER
PDOMAIN_GENERAL_INFORMATION
PDOMAIN_GENERAL_INFORMATION2
PDOMAIN_LOCALIZABLE_ACCOUNTS_BASIC
PDOMAIN_LOCALIZABLE_ACCOUNTS_INFORMATION
PDOMAIN_LOCALIZABLE_ACCOUNTS_INFO_BUFFER
PDOMAIN_LOCALIZABLE_ACCOUNT_ENTRY
PDOMAIN_LOCKOUT_INFORMATION
PDOMAIN_LOGOFF_INFORMATION
PDOMAIN_MODIFIED_INFORMATION
PDOMAIN_MODIFIED_INFORMATION2
PDOMAIN_NAME_INFORMATION
PDOMAIN_OEM_INFORMATION
PDOMAIN_REPLICATION_INFORMATION
PDOMAIN_SERVER_ENABLE_STATE
PDOMAIN_SERVER_ROLE
PDOMAIN_SERVER_ROLE_INFORMATION
PDOMAIN_STATE_INFORMATION
PGROUP_ADM_COMMENT_INFORMATION
PGROUP_ATTRIBUTE_INFORMATION
PGROUP_GENERAL_INFORMATION
PGROUP_MEMBERSHIP
PGROUP_NAME_INFORMATION
PSAM_ACCOUNT_TYPE
PSAM_ALIAS_MEMBER_ID
PSAM_BYTE_ARRAY
PSAM_BYTE_ARRAY_32K
PSAM_DELTA_DATA
PSAM_DELTA_NOTIFICATION_ROUTINE
PSAM_ENUMERATE_HANDLE
PSAM_GENERIC_OPERATION_INPUT
PSAM_GENERIC_OPERATION_OUTPUT
PSAM_GENERIC_OPERATION_TYPE
PSAM_GROUP_MEMBER_ID
PSAM_HANDLE
PSAM_OPERATION_OBJCHG_INPUT
PSAM_OPERATION_OBJCHG_OUTPUT
PSAM_RID_ENUMERATION
PSAM_SHELL_OBJECT_PROPERTIES
PSAM_SID_ENUMERATION
PSAM_USER_TILE
PSAM_VALIDATE_AUTHENTICATION_INPUT_ARG
PSAM_VALIDATE_INPUT_ARG
PSAM_VALIDATE_OUTPUT_ARG
PSAM_VALIDATE_PASSWORD_CHANGE_INPUT_ARG
PSAM_VALIDATE_PASSWORD_HASH
PSAM_VALIDATE_PASSWORD_RESET_INPUT_ARG
PSAM_VALIDATE_PERSISTED_FIELDS
PSAM_VALIDATE_STANDARD_OUTPUT_ARG
PSAM_VALIDATE_VALIDATION_STATUS
PSECURITY_DB_DELTA_TYPE
PSECURITY_DB_OBJECT_TYPE
PUSER_ACCOUNT_INFORMATION
PUSER_ACCOUNT_NAME_INFORMATION
PUSER_ADMIN_COMMENT_INFORMATION
PUSER_CONTROL_INFORMATION
PUSER_EXPIRES_INFORMATION
PUSER_EXTENDED_INFORMATION
PUSER_FULL_NAME_INFORMATION
PUSER_GENERAL_INFORMATION
PUSER_HOME_INFORMATION
PUSER_INFORMATION_CLASS
PUSER_LOGON_HOURS_INFORMATION
PUSER_LOGON_INFORMATION
PUSER_LOGON_UI_INFORMATION
PUSER_NAME_INFORMATION
PUSER_PARAMETERS_INFORMATION
PUSER_PREFERENCES_INFORMATION
PUSER_PRIMARY_GROUP_INFORMATION
PUSER_PROFILE_INFORMATION
PUSER_PWD_CHANGE_FAILURE_INFORMATION
PUSER_SCRIPT_INFORMATION
PUSER_SET_PASSWORD_INFORMATION
PUSER_WORKSTATIONS_INFORMATION
SAM_ACCOUNT_TYPE
SAM_ENUMERATE_HANDLE
SAM_GENERIC_OPERATION_TYPE
SAM_HANDLE
SAM_SHELL_OBJECT_PROPERTIES
SAM_USER_TILE
SAM_VALIDATE_VALIDATION_STATUS
SECURITY_DB_DELTA_TYPE
SECURITY_DB_OBJECT_TYPE
USER_INFORMATION_CLASS
Unions
DOMAIN_LOCALIZABLE_ACCOUNTS_INFO_BUFFER
SAM_DELTA_DATA
SAM_GENERIC_OPERATION_INPUT
SAM_GENERIC_OPERATION_OUTPUT
SAM_VALIDATE_INPUT_ARG
SAM_VALIDATE_OUTPUT_ARG