java.lang.Object
org.codelibs.jcifs.smb1.dcerpc.ndr.NdrObject
org.codelibs.jcifs.smb1.dcerpc.DcerpcMessage
org.codelibs.jcifs.smb1.dcerpc.msrpc.srvsvc.ShareEnumAll
- All Implemented Interfaces:
DcerpcConstants
- Direct Known Subclasses:
MsrpcShareEnum
- Enclosing class:
- srvsvc
RPC message for enumerating all shares on a server.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe share information container.intThe information level to return.intThe preferred maximum length of returned data.intThe resume handle for enumeration.intThe return value of the operation.The name of the server.intThe total number of entries.Fields inherited from class org.codelibs.jcifs.smb1.dcerpc.DcerpcMessage
alloc_hint, call_id, flags, length, ptype, resultFields inherited from interface org.codelibs.jcifs.smb1.dcerpc.DcerpcConstants
DCERPC_CONC_MPX, DCERPC_DID_NOT_EXECUTE, DCERPC_FIRST_FRAG, DCERPC_LAST_FRAG, DCERPC_MAYBE, DCERPC_OBJECT_UUID, DCERPC_PENDING_CANCEL, DCERPC_RESERVED_1, DCERPC_UUID_SYNTAX_NDR -
Constructor Summary
ConstructorsConstructorDescriptionShareEnumAll(String servername, int level, NdrObject info, int prefmaxlen, int totalentries, int resume_handle) Constructs a ShareEnumAll request. -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode_out(NdrBuffer _src) Decode the output parameters from this DCERPC message.voidEncode the input parameters for this DCERPC message.intgetOpnum()Get the operation number for this DCERPC message.
-
Field Details
-
retval
public int retvalThe return value of the operation. -
servername
The name of the server. -
level
public int levelThe information level to return. -
info
The share information container. -
prefmaxlen
public int prefmaxlenThe preferred maximum length of returned data. -
totalentries
public int totalentriesThe total number of entries. -
resume_handle
public int resume_handleThe resume handle for enumeration.
-
-
Constructor Details
-
ShareEnumAll
public ShareEnumAll(String servername, int level, NdrObject info, int prefmaxlen, int totalentries, int resume_handle) Constructs a ShareEnumAll request.- Parameters:
servername- the server namelevel- the information levelinfo- the information containerprefmaxlen- the preferred maximum lengthtotalentries- the total entriesresume_handle- the resume handle
-
-
Method Details
-
getOpnum
public int getOpnum()Description copied from class:DcerpcMessageGet the operation number for this DCERPC message.- Specified by:
getOpnumin classDcerpcMessage- Returns:
- the operation number
-
encode_in
Description copied from class:DcerpcMessageEncode the input parameters for this DCERPC message.- Specified by:
encode_inin classDcerpcMessage- Parameters:
_dst- the buffer to encode into- Throws:
NdrException- if encoding fails
-
decode_out
Description copied from class:DcerpcMessageDecode the output parameters from this DCERPC message.- Specified by:
decode_outin classDcerpcMessage- Parameters:
_src- the buffer to decode from- Throws:
NdrException- if decoding fails
-