12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using SMBLibrary.RPC;
- using Utilities;
- namespace SMBLibrary.Services
- {
-
-
-
- public class NetrShareEnumRequest
- {
- public string ServerName;
- public ShareEnum InfoStruct;
- public uint PreferedMaximumLength;
- public uint ResumeHandle;
- public NetrShareEnumRequest()
- {
- }
- public NetrShareEnumRequest(byte[] buffer)
- {
- NDRParser parser = new NDRParser(buffer);
- ServerName = parser.ReadTopLevelUnicodeStringPointer();
- InfoStruct = new ShareEnum(parser);
- PreferedMaximumLength = parser.ReadUInt32();
- ResumeHandle = parser.ReadUInt32();
- }
- public byte[] GetBytes()
- {
- NDRWriter writer = new NDRWriter();
- writer.WriteTopLevelUnicodeStringPointer(ServerName);
- writer.WriteStructure(InfoStruct);
- writer.WriteUInt32(PreferedMaximumLength);
- writer.WriteUInt32(ResumeHandle);
- return writer.GetBytes();
- }
- }
- }
|