コード例 #1
0
ファイル: ShareInfo.cs プロジェクト: rveldhoven/SMBLibrary
        public void Read(NDRParser parser)
        {
            parser.BeginStructure(); // SHARE_INFO Union
            Level = parser.ReadUInt32();
            switch (Level)
            {
            case 100:
                ShareInfo0Entry info0 = null;
                parser.ReadEmbeddedStructureFullPointer <ShareInfo0Entry>(ref info0);
                Info = info0;
                break;

            case 101:
                ShareInfo1Entry info1 = null;
                parser.ReadEmbeddedStructureFullPointer <ShareInfo1Entry>(ref info1);
                Info = info1;
                break;

            default:
                throw new NotImplementedException();
            }
            ;
            parser.EndStructure(); // SHARE_INFO Union
        }
コード例 #2
0
ファイル: ServerInfo.cs プロジェクト: bassemfg/BoxSMBLibrary
        public void Read(NDRParser parser)
        {
            parser.BeginStructure(); // SERVER_INFO Union
            Level = parser.ReadUInt32();
            switch (Level)
            {
            case 100:
                ServerInfo100 info100 = null;
                parser.ReadEmbeddedStructureFullPointer <ServerInfo100>(ref info100);
                Info = info100;
                break;

            case 101:
                ServerInfo101 info101 = null;
                parser.ReadEmbeddedStructureFullPointer <ServerInfo101>(ref info101);
                Info = info101;
                break;

            default:
                throw new NotImplementedException();
            }
            ;
            parser.EndStructure(); // SERVER_INFO Union
        }
コード例 #3
0
        public void Read(NDRParser parser)
        {
            parser.BeginStructure();

            tod_elapsedt  = parser.ReadUInt32();
            tod_msecs     = parser.ReadUInt32();
            tod_hours     = parser.ReadUInt32();
            tod_mins      = parser.ReadUInt32();
            tod_secs      = parser.ReadUInt32();
            tod_hunds     = parser.ReadUInt32();
            tod_timezone  = parser.ReadUInt32();
            tod_tinterval = parser.ReadUInt32();
            tod_day       = parser.ReadUInt32();
            tod_month     = parser.ReadUInt32();
            tod_year      = parser.ReadUInt32();
            tod_weekday   = parser.ReadUInt32();
            parser.EndStructure();
        }
コード例 #4
0
 public ShareTypeExtended(NDRParser parser) : this(parser.ReadUInt32())
 {
 }
コード例 #5
0
 public void Read(NDRParser parser)
 {
     parser.BeginStructure();
     sts0_start          = parser.ReadUInt32();
     sts0_fopens         = parser.ReadUInt32();
     sts0_devopens       = parser.ReadUInt32();
     sts0_jobsqueued     = parser.ReadUInt32();
     sts0_sopens         = parser.ReadUInt32();
     sts0_stimedout      = parser.ReadUInt32();
     sts0_serrorout      = parser.ReadUInt32();
     sts0_pwerrors       = parser.ReadUInt32();
     sts0_permerrors     = parser.ReadUInt32();
     sts0_syserrors      = parser.ReadUInt32();
     sts0_bytessent_low  = parser.ReadUInt32();
     sts0_bytessent_high = parser.ReadUInt32();
     sts0_bytesrcvd_low  = parser.ReadUInt32();
     sts0_bytesrcvd_high = parser.ReadUInt32();
     sts0_avresponse     = parser.ReadUInt32();
     sts0_reqbufneed     = parser.ReadUInt32();
     sts0_bigbufneed     = parser.ReadUInt32();
     parser.EndStructure();
 }