| Modifier and Type | Class and Description |
|---|---|
| public static class | Netapi32Util.DomainController
A domain controller. |
| public static class | Netapi32Util.DomainTrust
A domain trust relationship. |
| public static class | Netapi32Util.Group
A group. |
| public static class | Netapi32Util.LocalGroup
A local group. |
| public static class | Netapi32Util.User
A user. |
| public static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Netapi32Util. | |
| public static Netapi32Util. | |
| public static String | Returns: The name of the primary domain controller.Returns the name of the primary domain controller (PDC) on the current computer. |
| public static String | |
| public static String | Returns: Domain or workgroup name.computer name computerName)Get information about a computer. |
| public static Netapi32Util. | |
| public static Netapi32Util. | Returns: An array of domain trusts.Server name. serverName)Retrieve all domain trusts for a given server. |
| public static Netapi32Util. | |
| public static Netapi32Util. | Returns: An array of group names.Name of the computer. serverName)Get the names of global groups on a computer. |
| public static int | |
| public static int | Returns: Join status.Computer name. computerName)Return the domain/workgroup join status for a computer. |
| public static Netapi32Util. | Returns: An array of local group names.Get the names of local groups on the current computer. |
| public static Netapi32Util. | Returns: An array of local group names.Name of the computer. serverName)Get the names of local groups on a computer. |
| public static Netapi32Util. | |
| public static Netapi32Util. | Returns: Groups.User name. userName, String Server name. serverName)Get groups of a given user on a given system. |
| public static Netapi32Util. | |
| public static Netapi32Util. | |
| public static Netapi32Util. | Returns: Local groups.User name. userName)Get local groups of a given user. |
| public static Netapi32Util. | Returns: Local groups.User name. userName, String Server name. serverName)Get local groups of a given user on a given system. |
| public static Netapi32Util. | |
| public static Netapi32Util. |
| Netapi32Util | back to summary |
|---|---|
| public Netapi32Util() | |
| getCurrentUserLocalGroups | back to summary |
|---|---|
| public static Netapi32Util. Get local groups of the current user.
| |
| getDC | back to summary |
|---|---|
| public static Netapi32Util. Return the domain controller for a current computer.
| |
| getDCName | back to summary |
|---|---|
| public static String getDCName() Returns the name of the primary domain controller (PDC) on the current computer.
| |
| getDCName | back to summary |
|---|---|
| public static String getDCName(String serverName, String domainName) Returns the name of the primary domain controller (PDC). | |
| getDomainName | back to summary |
|---|---|
| public static String getDomainName(String computerName) Get information about a computer. | |
| getDomainTrusts | back to summary |
|---|---|
| public static Netapi32Util. Retrieve all domain trusts.
| |
| getDomainTrusts | back to summary |
|---|---|
| public static Netapi32Util. Retrieve all domain trusts for a given server.
| |
| getGlobalGroups | back to summary |
|---|---|
| public static Netapi32Util. Get the names of global groups on a computer.
| |
| getGlobalGroups | back to summary |
|---|---|
| public static Netapi32Util. Get the names of global groups on a computer.
| |
| getJoinStatus | back to summary |
|---|---|
| public static int getJoinStatus() Return the domain/workgroup join status for a computer.
| |
| getJoinStatus | back to summary |
|---|---|
| public static int getJoinStatus(String computerName) Return the domain/workgroup join status for a computer.
| |
| getLocalGroups | back to summary |
|---|---|
| public static Netapi32Util. Get the names of local groups on the current computer.
| |
| getLocalGroups | back to summary |
|---|---|
| public static Netapi32Util. Get the names of local groups on a computer.
| |
| getUserGroups | back to summary |
|---|---|
| public static Netapi32Util. Get groups of a given user.
| |
| getUserGroups | back to summary |
|---|---|
| public static Netapi32Util. Get groups of a given user on a given system.
| |
| getUserInfo | back to summary |
|---|---|
| public static Netapi32Util. | |
| getUserInfo | back to summary |
|---|---|
| public static Netapi32Util. | |
| getUserLocalGroups | back to summary |
|---|---|
| public static Netapi32Util. Get local groups of a given user.
| |
| getUserLocalGroups | back to summary |
|---|---|
| public static Netapi32Util. Get local groups of a given user on a given system.
| |
| getUsers | back to summary |
|---|---|
| public static Netapi32Util. Get the names of users on a local computer.
| |
| getUsers | back to summary |
|---|---|
| public static Netapi32Util. Get the names of users on a computer.
| |
| Modifier and Type | Field and Description |
|---|---|
| public String | address
Specifies the address of the discovered domain controller. |
| public int | addressType
Indicates the type of string that is contained in the DomainControllerAddress member. |
| public String | clientSiteName
The name of the site that the computer belongs to. |
| public String | dnsForestName
Pointer to a null-terminated string that specifies the name of the domain at the root of the DS tree. |
| public Guid. | domainGuid
The GUID of the domain. |
| public String | domainName
Pointer to a null-terminated string that specifies the name of the domain. |
| public int | flags
Contains a set of flags that describe the domain controller. |
| public String | name
Specifies the computer name of the discovered domain controller. |
| Access | Constructor and Description |
|---|---|
| public |
| address | back to summary |
|---|---|
| public String address Specifies the address of the discovered domain controller. | |
| addressType | back to summary |
|---|---|
| public int addressType Indicates the type of string that is contained in the DomainControllerAddress member. | |
| clientSiteName | back to summary |
|---|---|
| public String clientSiteName The name of the site that the computer belongs to. | |
| dnsForestName | back to summary |
|---|---|
| public String dnsForestName Pointer to a null-terminated string that specifies the name of the domain at the root of the DS tree. | |
| domainGuid | back to summary |
|---|---|
| public Guid. The GUID of the domain. | |
| domainName | back to summary |
|---|---|
| public String domainName Pointer to a null-terminated string that specifies the name of the domain. | |
| flags | back to summary |
|---|---|
| public int flags Contains a set of flags that describe the domain controller. | |
| name | back to summary |
|---|---|
| public String name Specifies the computer name of the discovered domain controller. | |
| DomainController | back to summary |
|---|---|
| public DomainController() | |
| Modifier and Type | Field and Description |
|---|---|
| public String | DnsDomainName
DNS name of the domain. |
| public Guid. | DomainGuid
Contains the GUID of the domain represented by this structure. |
| public String | DomainGuidString
Contains the string representation of the GUID of the domain represented by this structure. |
| public WinNT. | DomainSid
Contains the security identifier of the domain represented by this structure. |
| public String | DomainSidString
Contains the string representation of the security identifier of the domain represented by this structure. |
| private int | flags
Contains a set of flags that specify more data about the domain trust. |
| public String | NetbiosDomainName
NetBIOS name of the domain. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True or false.The domain represented by this structure directly trusts the domain that the server specified in the ServerName parameter of the DsEnumerateDomainTrusts function is a member of. |
| public boolean | Returns: True or false.The domain represented by this structure is a member of the same forest as the server specified in the ServerName parameter of the DsEnumerateDomainTrusts function. |
| public boolean | Returns: True or false.The domain represented by this structure is running in the Windows 2000 native mode. |
| public boolean | Returns: True or false.The domain represented by this structure is directly trusted by the domain that the server specified in the ServerName parameter of the DsEnumerateDomainTrusts function is a member of. |
| public boolean | Returns: True or false.The domain represented by this structure is the primary domain of the server specified in the ServerName parameter of the DsEnumerateDomainTrusts function. |
| public boolean | Returns: True or false.The domain represented by this structure is the root of a tree and a member of the same forest as the server specified in the ServerName parameter of the DsEnumerateDomainTrusts function. |
| DnsDomainName | back to summary |
|---|---|
| public String DnsDomainName DNS name of the domain. | |
| DomainGuid | back to summary |
|---|---|
| public Guid. Contains the GUID of the domain represented by this structure. | |
| DomainGuidString | back to summary |
|---|---|
| public String DomainGuidString Contains the string representation of the GUID of the domain represented by this structure. | |
| DomainSid | back to summary |
|---|---|
| public WinNT. Contains the security identifier of the domain represented by this structure. | |
| DomainSidString | back to summary |
|---|---|
| public String DomainSidString Contains the string representation of the security identifier of the domain represented by this structure. | |
| flags | back to summary |
|---|---|
| private int flags Contains a set of flags that specify more data about the domain trust. | |
| NetbiosDomainName | back to summary |
|---|---|
| public String NetbiosDomainName NetBIOS name of the domain. | |
| DomainTrust | back to summary |
|---|---|
| public DomainTrust() | |
| isInbound | back to summary |
|---|---|
| public boolean isInbound() The domain represented by this structure directly trusts the domain that the server specified in the ServerName parameter of the DsEnumerateDomainTrusts function is a member of.
| |
| isInForest | back to summary |
|---|---|
| public boolean isInForest() The domain represented by this structure is a member of the same forest as the server specified in the ServerName parameter of the DsEnumerateDomainTrusts function.
| |
| isNativeMode | back to summary |
|---|---|
| public boolean isNativeMode() The domain represented by this structure is running in the Windows 2000 native mode.
| |
| isOutbound | back to summary |
|---|---|
| public boolean isOutbound() The domain represented by this structure is directly trusted by the domain that the server specified in the ServerName parameter of the DsEnumerateDomainTrusts function is a member of.
| |
| isPrimary | back to summary |
|---|---|
| public boolean isPrimary() The domain represented by this structure is the primary domain of the server specified in the ServerName parameter of the DsEnumerateDomainTrusts function.
| |
| isRoot | back to summary |
|---|---|
| public boolean isRoot() The domain represented by this structure is the root of a tree and a member of the same forest as the server specified in the ServerName parameter of the DsEnumerateDomainTrusts function.
| |
| Access | Constructor and Description |
|---|---|
| public |
| name | back to summary |
|---|---|
| public String name Group name. | |
| Group | back to summary |
|---|---|
| public Group() | |
| Modifier and Type | Field and Description |
|---|---|
| public String | comment
Group comment. |
| Access | Constructor and Description |
|---|---|
| public |
| comment | back to summary |
|---|---|
| public String comment Group comment. | |
| LocalGroup | back to summary |
|---|---|
| public LocalGroup() | |
| Modifier and Type | Field and Description |
|---|---|
| public String | comment
Contains a comment associated with the user account. |
| public String | name
The name of the user account. |
| Access | Constructor and Description |
|---|---|
| public |
| comment | back to summary |
|---|---|
| public String comment Contains a comment associated with the user account. | |
| name | back to summary |
|---|---|
| public String name The name of the user account. | |
| User | back to summary |
|---|---|
| public User() | |
| Modifier and Type | Field and Description |
|---|---|
| public int | flags
The flags of the user account |
| public String | fullName
The full name belonging to the user account |
| public WinNT. | sid
The SID of the user account |
| public String | sidString
The SID of the user account |
| Access | Constructor and Description |
|---|---|
| public |
| flags | back to summary |
|---|---|
| public int flags The flags of the user account | |
| fullName | back to summary |
|---|---|
| public String fullName The full name belonging to the user account | |
| sid | back to summary |
|---|---|
| public WinNT. The SID of the user account | |
| sidString | back to summary |
|---|---|
| public String sidString The SID of the user account | |
| UserInfo | back to summary |
|---|---|
| public UserInfo() | |