Top Description Inners Fields
com.sun.jna.platform.win32

public Interface DsGetDC

Imports
java.util.List, com.sun.jna.Pointer, .Structure, .Structure.FieldOrder, com.sun.jna.platform.win32.Guid.GUID, .WinNT.PSID, com.sun.jna.win32.W32APITypeMapper

Ported from DsGetDC.h. Windows SDK 6.0a
Author
dblock[at]dblock.org

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
DsGetDC.DOMAIN_CONTROLLER_INFO

The DOMAIN_CONTROLLER_INFO structure is used with the DsGetDcName function to receive data about a domain controller.

public static class
DsGetDC.DS_DOMAIN_TRUSTS

The DS_DOMAIN_TRUSTS structure is used with the DsEnumerateDomainTrusts function to contain trust data for a domain.

public static class
DsGetDC.PDOMAIN_CONTROLLER_INFO

Pointer to DOMAIN_CONTROLLER_INFO.

Field Summary

Modifier and TypeField and Description
public static final int
DS_DOMAIN_DIRECT_INBOUND

Domain is directly trusting.

public static final int
DS_DOMAIN_DIRECT_OUTBOUND

Domain is directly trusted.

public static final int
DS_DOMAIN_IN_FOREST

Domain is a member of the forest.

public static final int
DS_DOMAIN_NATIVE_MODE

Primary domain is running in native mode.

public static final int
DS_DOMAIN_PRIMARY

Domain is the primary domain of queried server.

public static final int
DS_DOMAIN_TREE_ROOT

Domain is root of a tree in the forest.

public static final int
DS_DOMAIN_VALID_FLAGS

Valid domain flags.

Field Detail

DS_DOMAIN_DIRECT_INBOUNDback to summary
public static final int DS_DOMAIN_DIRECT_INBOUND

Domain is directly trusting.

DS_DOMAIN_DIRECT_OUTBOUNDback to summary
public static final int DS_DOMAIN_DIRECT_OUTBOUND

Domain is directly trusted.

DS_DOMAIN_IN_FORESTback to summary
public static final int DS_DOMAIN_IN_FOREST

Domain is a member of the forest.

DS_DOMAIN_NATIVE_MODEback to summary
public static final int DS_DOMAIN_NATIVE_MODE

Primary domain is running in native mode.

DS_DOMAIN_PRIMARYback to summary
public static final int DS_DOMAIN_PRIMARY

Domain is the primary domain of queried server.

DS_DOMAIN_TREE_ROOTback to summary
public static final int DS_DOMAIN_TREE_ROOT

Domain is root of a tree in the forest.

DS_DOMAIN_VALID_FLAGSback to summary
public static final int DS_DOMAIN_VALID_FLAGS

Valid domain flags.

com.sun.jna.platform.win32 back to summary

public Class DsGetDC.DOMAIN_CONTROLLER_INFO

extends Structure
Class Inheritance
Known Direct Subclasses
com.sun.jna.platform.win32.DsGetDC.DOMAIN_CONTROLLER_INFO.ByReference
Annotations
@FieldOrder:DomainControllerName, DomainControllerAddress, DomainControllerAddressType, DomainGuid, DomainName, DnsForestName, Flags, DcSiteName, ClientSiteName

The DOMAIN_CONTROLLER_INFO structure is used with the DsGetDcName function to receive data about a domain controller.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public String
ClientSiteName

Pointer to a null-terminated string that specifies the name of the site that the computer belongs to.

public String
DcSiteName

Pointer to a null-terminated string that specifies the name of the site where the domain controller is located.

public String
DnsForestName

Pointer to a null-terminated string that specifies the name of the domain at the root of the DS tree.

public String
DomainControllerAddress

Pointer to a null-terminated string that specifies the address of the discovered domain controller.

public int
DomainControllerAddressType

Indicates the type of string that is contained in the DomainControllerAddress member.

public String
DomainControllerName

Pointer to a null-terminated string that specifies the computer name of the discovered domain controller.

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

Inherited from com.sun.jna.Structure:
ALIGN_DEFAULTALIGN_GNUCALIGN_MSVCALIGN_NONECALCULATE_SIZE

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Inherited from com.sun.jna.Structure:
allocateMemoryallocateMemoryautoAllocateautoReadautoReadautoWriteautoWritecacheTypeInfocalculateSizeclearcreateFieldsOrdercreateFieldsOrdercreateFieldsOrdercreateFieldsOrderdataEqualsdataEqualsensureAllocatedequalsfieldOffsetgetAutoReadgetAutoWritegetFieldListgetFieldOrdergetFieldsgetNativeAlignmentgetNativeSizegetNativeSizegetPointergetStringEncodinggetStructAlignmenthashCodenewInstancenewInstancereadreadFieldreadFieldsetAlignTypesetAutoReadsetAutoSynchsetAutoWritesetStringEncodingsizesortFieldstoArraytoArraytoStringtoStringuseMemoryuseMemorywritewriteFieldwriteFieldwriteField

Field Detail

ClientSiteNameback to summary
public String ClientSiteName

Pointer to a null-terminated string that specifies the name of the site that the computer belongs to. The computer is specified in the ComputerName parameter passed to DsGetDcName. This member may be NULL if the site that contains the computer cannot be found; for example, if the DS administrator has not associated the subnet that the computer is in with a valid site.

DcSiteNameback to summary
public String DcSiteName

Pointer to a null-terminated string that specifies the name of the site where the domain controller is located. This member may be NULL if the domain controller is not in a site; for example, the domain controller is a Windows NT 4.0 domain controller.

DnsForestNameback 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. The DNS-style name, for example, "fabrikam.com", is returned if available. Otherwise, the flat-style name, for example, "fabrikam" is returned.

DomainControllerAddressback to summary
public String DomainControllerAddress

Pointer to a null-terminated string that specifies the address of the discovered domain controller. The address is prefixed with "\\". This string is one of the types defined by the DomainControllerAddressType member.

DomainControllerAddressTypeback to summary
public int DomainControllerAddressType

Indicates the type of string that is contained in the DomainControllerAddress member.

DomainControllerNameback to summary
public String DomainControllerName

Pointer to a null-terminated string that specifies the computer name of the discovered domain controller. The returned computer name is prefixed with "\\". The DNS-style name, for example, "\\phoenix.fabrikam.com", is returned, if available. If the DNS-style name is not available, the flat-style name (for example, "\\phoenix") is returned. This example would apply if the domain is a Windows NT 4.0 domain or if the domain does not support the IP family of protocols.

DomainGuidback to summary
public Guid.GUID DomainGuid

The GUID of the domain. This member is zero if the domain controller does not have a Domain GUID; for example, the domain controller is not a Windows 2000 domain controller.

DomainNameback to summary
public String DomainName

Pointer to a null-terminated string that specifies the name of the domain. The DNS-style name, for example, "fabrikam.com", is returned if available. Otherwise, the flat-style name, for example, "fabrikam", is returned. This name may be different than the requested domain name if the domain has been renamed.

Flagsback to summary
public int Flags

Contains a set of flags that describe the domain controller.

Constructor Detail

DOMAIN_CONTROLLER_INFOback to summary
public DOMAIN_CONTROLLER_INFO()
DOMAIN_CONTROLLER_INFOback to summary
public DOMAIN_CONTROLLER_INFO(Pointer memory)
com.sun.jna.platform.win32 back to summary

public Class DsGetDC.DOMAIN_CONTROLLER_INFO.ByReference

extends DOMAIN_CONTROLLER_INFO
implements ByReference
Class Inheritance
All Implemented Interfaces
com.sun.jna.Structure.ByReference

Constructor Summary

AccessConstructor and Description
public

Constructor Detail

ByReferenceback to summary
public ByReference()
com.sun.jna.platform.win32 back to summary

public Class DsGetDC.DS_DOMAIN_TRUSTS

extends Structure
Class Inheritance
Known Direct Subclasses
com.sun.jna.platform.win32.DsGetDC.DS_DOMAIN_TRUSTS.ByReference
Annotations
@FieldOrder:NetbiosDomainName, DnsDomainName, Flags, ParentIndex, TrustType, TrustAttributes, DomainSid, DomainGuid

The DS_DOMAIN_TRUSTS structure is used with the DsEnumerateDomainTrusts function to contain trust data for a domain.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public String
DnsDomainName

Pointer to a null-terminated string that contains the DNS name of the domain.

public Guid.GUID
DomainGuid

Contains the GUID of the domain represented by this structure.

public WinNT.PSID.ByReference
DomainSid

Contains the security identifier of the domain represented by this structure.

public int
Flags

Contains a set of flags that specify more data about the domain trust.

public String
NetbiosDomainName

Pointer to a null-terminated string that contains the NetBIOS name of the domain.

public int
ParentIndex

Contains the index in the Domains array returned by the DsEnumerateDomainTrusts function that corresponds to the parent domain of the domain represented by this structure.

public int
TrustAttributes

Contains a value that indicates the attributes of the trust represented by this structure.

public int
TrustType

Contains a value that indicates the type of trust represented by this structure.

Inherited from com.sun.jna.Structure:
ALIGN_DEFAULTALIGN_GNUCALIGN_MSVCALIGN_NONECALCULATE_SIZE

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Inherited from com.sun.jna.Structure:
allocateMemoryallocateMemoryautoAllocateautoReadautoReadautoWriteautoWritecacheTypeInfocalculateSizeclearcreateFieldsOrdercreateFieldsOrdercreateFieldsOrdercreateFieldsOrderdataEqualsdataEqualsensureAllocatedequalsfieldOffsetgetAutoReadgetAutoWritegetFieldListgetFieldOrdergetFieldsgetNativeAlignmentgetNativeSizegetNativeSizegetPointergetStringEncodinggetStructAlignmenthashCodenewInstancenewInstancereadreadFieldreadFieldsetAlignTypesetAutoReadsetAutoSynchsetAutoWritesetStringEncodingsizesortFieldstoArraytoArraytoStringtoStringuseMemoryuseMemorywritewriteFieldwriteFieldwriteField

Field Detail

DnsDomainNameback to summary
public String DnsDomainName

Pointer to a null-terminated string that contains the DNS name of the domain. This member may be NULL.

DomainGuidback to summary
public Guid.GUID DomainGuid

Contains the GUID of the domain represented by this structure.

DomainSidback to summary
public WinNT.PSID.ByReference DomainSid

Contains the security identifier of the domain represented by this structure.

Flagsback to summary
public int Flags

Contains a set of flags that specify more data about the domain trust.

NetbiosDomainNameback to summary
public String NetbiosDomainName

Pointer to a null-terminated string that contains the NetBIOS name of the domain.

ParentIndexback to summary
public int ParentIndex

Contains the index in the Domains array returned by the DsEnumerateDomainTrusts function that corresponds to the parent domain of the domain represented by this structure.

TrustAttributesback to summary
public int TrustAttributes

Contains a value that indicates the attributes of the trust represented by this structure.

TrustTypeback to summary
public int TrustType

Contains a value that indicates the type of trust represented by this structure.

Constructor Detail

DS_DOMAIN_TRUSTSback to summary
public DS_DOMAIN_TRUSTS()
DS_DOMAIN_TRUSTSback to summary
public DS_DOMAIN_TRUSTS(Pointer p)
com.sun.jna.platform.win32 back to summary

public Class DsGetDC.DS_DOMAIN_TRUSTS.ByReference

extends DS_DOMAIN_TRUSTS
implements ByReference
Class Inheritance
All Implemented Interfaces
com.sun.jna.Structure.ByReference

Constructor Summary

AccessConstructor and Description
public

Constructor Detail

ByReferenceback to summary
public ByReference()
com.sun.jna.platform.win32 back to summary

public Class DsGetDC.PDOMAIN_CONTROLLER_INFO

extends Structure
Class Inheritance
Known Direct Subclasses
com.sun.jna.platform.win32.DsGetDC.PDOMAIN_CONTROLLER_INFO.ByReference
Annotations
@FieldOrder:dci

Pointer to DOMAIN_CONTROLLER_INFO.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public DsGetDC.DOMAIN_CONTROLLER_INFO.ByReference
Inherited from com.sun.jna.Structure:
ALIGN_DEFAULTALIGN_GNUCALIGN_MSVCALIGN_NONECALCULATE_SIZE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.jna.Structure:
allocateMemoryallocateMemoryautoAllocateautoReadautoReadautoWriteautoWritecacheTypeInfocalculateSizeclearcreateFieldsOrdercreateFieldsOrdercreateFieldsOrdercreateFieldsOrderdataEqualsdataEqualsensureAllocatedequalsfieldOffsetgetAutoReadgetAutoWritegetFieldListgetFieldOrdergetFieldsgetNativeAlignmentgetNativeSizegetNativeSizegetPointergetStringEncodinggetStructAlignmenthashCodenewInstancenewInstancereadreadFieldreadFieldsetAlignTypesetAutoReadsetAutoSynchsetAutoWritesetStringEncodingsizesortFieldstoArraytoArraytoStringtoStringuseMemoryuseMemorywritewriteFieldwriteFieldwriteField

Field Detail

dciback to summary
public DsGetDC.DOMAIN_CONTROLLER_INFO.ByReference dci

Constructor Detail

PDOMAIN_CONTROLLER_INFOback to summary
public PDOMAIN_CONTROLLER_INFO()
com.sun.jna.platform.win32 back to summary

public Class DsGetDC.PDOMAIN_CONTROLLER_INFO.ByReference

extends PDOMAIN_CONTROLLER_INFO
implements ByReference
Class Inheritance
All Implemented Interfaces
com.sun.jna.Structure.ByReference

Constructor Summary

AccessConstructor and Description
public

Constructor Detail

ByReferenceback to summary
public ByReference()