public NetrShareEnumResponse(byte[] buffer) { NDRParser parser = new NDRParser(buffer); InfoStruct = new ShareEnum(parser); TotalEntries = parser.ReadUInt32(); ResumeHandle = parser.ReadUInt32(); Result = (Win32Error)parser.ReadUInt32(); }
public NetrShareEnumRequest(byte[] buffer) { NDRParser parser = new NDRParser(buffer); ServerName = parser.ReadTopLevelUnicodeStringPointer(); InfoStruct = new ShareEnum(parser); PreferedMaximumLength = parser.ReadUInt32(); ResumeHandle = parser.ReadUInt32(); }