12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using SMBLibrary.RPC;
- using Utilities;
- namespace SMBLibrary.Services
- {
-
-
-
- public class NetrShareGetInfoResponse
- {
- public ShareInfo InfoStruct;
- public Win32Error Result;
- public NetrShareGetInfoResponse()
- {
- }
- public NetrShareGetInfoResponse(byte[] buffer)
- {
- NDRParser parser = new NDRParser(buffer);
- InfoStruct = new ShareInfo(parser);
- Result = (Win32Error)parser.ReadUInt32();
- }
- public byte[] GetBytes()
- {
- NDRWriter writer = new NDRWriter();
- writer.WriteStructure(InfoStruct);
- writer.WriteUInt32((uint)Result);
- return writer.GetBytes();
- }
- }
- }
|