コード例 #1
0
        public void Read(NDRParser parser)
        {
            parser.BeginStructure();
            Level = parser.ReadUInt32();
            switch (Level)
            {
            case 100:
                WorkstationInfo100 info100 = null;
                parser.ReadEmbeddedStructureFullPointer <WorkstationInfo100>(ref info100);
                Info = info100;
                break;

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

            default:
                throw new NotImplementedException();
            }
            parser.EndStructure();
        }
コード例 #2
0
ファイル: WorkstationInfo.cs プロジェクト: SonnyX/SMB-Client
 public WorkstationInfo(WorkstationInfoLevel info)
 {
     Level = info.Level;
     Info  = info;
 }