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

public Interface LMShare

Imports
java.util.List, com.sun.jna.Pointer, .Structure, .Structure.FieldOrder, com.sun.jna.win32.W32APITypeMapper

Ported from LMShare.h. Windows SDK 7.1
Author
amarcionek[at]seven10storage.com

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
LMShare.SHARE_INFO_2

Contains information about the shared resource, including name of the resource, type and permissions, number of connections, and other pertinent information.

public static class
LMShare.SHARE_INFO_502

Contains information about the shared resource, including name of the resource, type and permissions, number of connections, and other pertinent information.

Field Summary

Modifier and TypeField and Description
public static final int
STYPE_DEVICE

Communication device.

public static final int
STYPE_DISKTREE

Disk Drive.

public static final int
STYPE_IPC

Interprocess communication (IPC).

public static final int
STYPE_PRINTQ

Print Queue.

public static final int
STYPE_SPECIAL

Special share reserved for interprocess communication (IPC$) or remote administration of the server (ADMIN$).

public static final int
STYPE_TEMPORARY

A temporary share.

Field Detail

STYPE_DEVICEback to summary
public static final int STYPE_DEVICE

Communication device.

STYPE_DISKTREEback to summary
public static final int STYPE_DISKTREE

Disk Drive.

STYPE_IPCback to summary
public static final int STYPE_IPC

Interprocess communication (IPC).

STYPE_PRINTQback to summary
public static final int STYPE_PRINTQ

Print Queue.

STYPE_SPECIALback to summary
public static final int STYPE_SPECIAL

Special share reserved for interprocess communication (IPC$) or remote administration of the server (ADMIN$). Can also refer to administrative shares such as C$, D$, E$, and so forth. For more information, see the network share functions.

STYPE_TEMPORARYback to summary
public static final int STYPE_TEMPORARY

A temporary share.

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

public Class LMShare.SHARE_INFO_2

extends Structure
Class Inheritance
Annotations
@FieldOrder:shi2_netname, shi2_type, shi2_remark, shi2_permissions, shi2_max_uses, shi2_current_uses, shi2_path, shi2_passwd

Contains information about the shared resource, including name of the resource, type and permissions, number of connections, and other pertinent information.

Field Summary

Modifier and TypeField and Description
public int
shi2_current_uses

Specifies a DWORD value that indicates the number of current connections to the resource.

public int
shi2_max_uses

Specifies a DWORD value that indicates the maximum number of concurrent connections that the shared resource can accommodate.

public String
shi2_netname

Pointer to a Unicode string specifying the name of a shared resource.

public String
shi2_passwd

Pointer to a Unicode string that specifies the share's password (when the server is running with share-level security).

public String
shi2_path

Pointer to a Unicode string that contains the local path for the shared resource.

public int
shi2_permissions

Specifies a DWORD value that indicates the shared resource's permissions for servers running with share-level security.

public String
shi2_remark

Pointer to a Unicode string specifying an optional comment about the shared resource.

public int
shi2_type

A combination of values that specify the type of share.

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

shi2_current_usesback to summary
public int shi2_current_uses

Specifies a DWORD value that indicates the number of current connections to the resource. Calls to the NetShareSetInfo function ignore this member.

shi2_max_usesback to summary
public int shi2_max_uses

Specifies a DWORD value that indicates the maximum number of concurrent connections that the shared resource can accommodate. The number of connections is unlimited if the value specified in this member is -1.

shi2_netnameback to summary
public String shi2_netname

Pointer to a Unicode string specifying the name of a shared resource. Calls to the NetShareSetInfo function ignore this member.

shi2_passwdback to summary
public String shi2_passwd

Pointer to a Unicode string that specifies the share's password (when the server is running with share-level security). If the server is running with user-level security, this member is ignored. Note that Windows does not support share-level security. This member can be no longer than SHPWLEN+1 bytes (including a terminating null character). Calls to the NetShareSetInfo function ignore this member.

shi2_pathback to summary
public String shi2_path

Pointer to a Unicode string that contains the local path for the shared resource. For disks, this member is the path being shared. For print queues, this member is the name of the print queue being shared. Calls to the NetShareSetInfo function ignore this member.

shi2_permissionsback to summary
public int shi2_permissions

Specifies a DWORD value that indicates the shared resource's permissions for servers running with share-level security. This member is ignored on a server running user-level security. This member can be any of the following values. Calls to the NetShareSetInfo function ignore this member. Note that Windows does not support share-level security. For more information about controlling access to securable objects, see Access Control, Privileges, and Securable Objects.

Note

Bit masks are defined in LmAccess.Java

shi2_remarkback to summary
public String shi2_remark

Pointer to a Unicode string specifying an optional comment about the shared resource.

shi2_typeback to summary
public int shi2_type

A combination of values that specify the type of share. Calls to the NetShareSetInfo function ignore this member. One of the following values may be specified. You can isolate these values by using the STYPE_MASK value. STYPE_DISKTREE, STYPE_PRINTQ, STYPE_DEVICE, STYPE_IPC, STYPE_TEMPORARY, STYPE_SPECIAL

Constructor Detail

SHARE_INFO_2back to summary
public SHARE_INFO_2()
SHARE_INFO_2back to summary
public SHARE_INFO_2(Pointer memory)
com.sun.jna.platform.win32 back to summary

public Class LMShare.SHARE_INFO_502

extends Structure
Class Inheritance
Annotations
@FieldOrder:shi502_netname, shi502_type, shi502_remark, shi502_permissions, shi502_max_uses, shi502_current_uses, shi502_path, shi502_passwd, shi502_reserved, shi502_security_descriptor

Contains information about the shared resource, including name of the resource, type and permissions, number of connections, and other pertinent information.

Field Summary

Modifier and TypeField and Description
public int
shi502_current_uses

Specifies a DWORD value that indicates the number of current connections to the resource.

public int
shi502_max_uses

Specifies a DWORD value that indicates the maximum number of concurrent connections that the shared resource can accommodate.

public String
shi502_netname

Pointer to a Unicode string specifying the name of a shared resource.

public String
shi502_passwd

Pointer to a Unicode string that specifies the share's password (when the server is running with share-level security).

public String
shi502_path

Pointer to a Unicode string that contains the local path for the shared resource.

public int
shi502_permissions

Specifies a DWORD value that indicates the shared resource's permissions for servers running with share-level security.

public String
shi502_remark

Pointer to a Unicode string specifying an optional comment about the shared resource.

public int
shi502_reserved

Reserved; must be zero.

public Pointer
shi502_security_descriptor

Specifies the SECURITY_DESCRIPTOR associated with this share.

public int
shi502_type

A combination of values that specify the type of share.

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

shi502_current_usesback to summary
public int shi502_current_uses

Specifies a DWORD value that indicates the number of current connections to the resource. Calls to the NetShareSetInfo function ignore this member.

shi502_max_usesback to summary
public int shi502_max_uses

Specifies a DWORD value that indicates the maximum number of concurrent connections that the shared resource can accommodate. The number of connections is unlimited if the value specified in this member is -1.

shi502_netnameback to summary
public String shi502_netname

Pointer to a Unicode string specifying the name of a shared resource. Calls to the NetShareSetInfo function ignore this member.

shi502_passwdback to summary
public String shi502_passwd

Pointer to a Unicode string that specifies the share's password (when the server is running with share-level security). If the server is running with user-level security, this member is ignored. Note that Windows does not support share-level security. This member can be no longer than SHPWLEN+1 bytes (including a terminating null character). Calls to the NetShareSetInfo function ignore this member.

shi502_pathback to summary
public String shi502_path

Pointer to a Unicode string that contains the local path for the shared resource. For disks, this member is the path being shared. For print queues, this member is the name of the print queue being shared. Calls to the NetShareSetInfo function ignore this member.

shi502_permissionsback to summary
public int shi502_permissions

Specifies a DWORD value that indicates the shared resource's permissions for servers running with share-level security. This member is ignored on a server running user-level security. This member can be any of the following values. Calls to the NetShareSetInfo function ignore this member. Note that Windows does not support share-level security. For more information about controlling access to securable objects, see Access Control, Privileges, and Securable Objects.

Note

Bit masks are defined in LmAccess.Java

shi502_remarkback to summary
public String shi502_remark

Pointer to a Unicode string specifying an optional comment about the shared resource.

shi502_reservedback to summary
public int shi502_reserved

Reserved; must be zero. Calls to the NetShareSetInfo function ignore this member.

shi502_security_descriptorback to summary
public Pointer shi502_security_descriptor

Specifies the SECURITY_DESCRIPTOR associated with this share.

shi502_typeback to summary
public int shi502_type

A combination of values that specify the type of share. Calls to the NetShareSetInfo function ignore this member. One of the following values may be specified. You can isolate these values by using the STYPE_MASK value. STYPE_DISKTREE, STYPE_PRINTQ, STYPE_DEVICE, STYPE_IPC, STYPE_TEMPORARY, STYPE_SPECIAL

Constructor Detail

SHARE_INFO_502back to summary
public SHARE_INFO_502()
SHARE_INFO_502back to summary
public SHARE_INFO_502(Pointer memory)