Beispiel #1
0
 public void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteEmbeddedStructureFullPointer(NetName);
     ShareType.Write(writer);
     writer.WriteEmbeddedStructureFullPointer(Remark);
     writer.EndStructure();
 }
Beispiel #2
0
 public override void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteUInt32(PlatformID);
     writer.WriteEmbeddedStructureFullPointer(ComputerName);
     writer.WriteEmbeddedStructureFullPointer(LanGroup);
     writer.WriteUInt32(VerMajor);
     writer.WriteUInt32(VerMinor);
     writer.EndStructure();
 }
Beispiel #3
0
 public override void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteUInt32((uint)PlatformID);
     writer.WriteEmbeddedStructureFullPointer(ServerName);
     writer.WriteUInt32(VerMajor);
     writer.WriteUInt32(VerMinor);
     writer.WriteUInt32((uint)Type);
     writer.WriteEmbeddedStructureFullPointer(Comment);
     writer.EndStructure();
 }
Beispiel #4
0
 public void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteEmbeddedStructureFullPointer(NetName);
     ShareType.Write(writer);
     writer.WriteEmbeddedStructureFullPointer(Remark);
     writer.WriteUInt32((uint)Permissions);
     writer.WriteUInt32(MaxUses);
     writer.WriteUInt32(CurrentUses);
     writer.WriteEmbeddedStructureFullPointer(Path);
     writer.WriteEmbeddedStructureFullPointer(Password);
     writer.EndStructure();
 }
Beispiel #5
0
 public void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteUInt32((uint)this.Count);
     writer.WriteEmbeddedStructureFullPointer(Entries);
     writer.EndStructure();
 }
 public void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteUInt32(Entries);
     writer.WriteEmbeddedStructureFullPointer(SIDInfos);
     writer.EndStructure();
 }
Beispiel #7
0
 public void Write(NDRWriter writer)
 {
     writer.BeginStructure(); // SHARE_INFO Union
     writer.WriteUInt32(Level);
     writer.WriteEmbeddedStructureFullPointer(Info);
     writer.EndStructure(); // SHARE_INFO Union
 }
        public void Write(NDRWriter writer)
        {
            writer.BeginStructure();
            writer.WriteUInt32((uint)(Items == null ? 0 : Items.Count));

            writer.WriteEmbeddedStructureFullPointer(Items);
            writer.EndStructure();
        }
Beispiel #9
0
        public void Write(NDRWriter writer)
        {
            throw new NotImplementedException();
            writer.BeginStructure();
            writer.WriteUInt32(Entries);

            writer.WriteEmbeddedStructureFullPointer(Names);
            writer.EndStructure();
        }
Beispiel #10
0
        public void Write(NDRWriter writer)
        {
            if (Info != null && Level != Info.Level)
            {
                throw new ArgumentException("Invalid WKSTA_INFO Level");
            }

            writer.BeginStructure();
            writer.WriteUInt32(Level);
            writer.WriteEmbeddedStructureFullPointer(Info);
            writer.EndStructure();
        }
Beispiel #11
0
        public void Write(NDRWriter writer)
        {
            ushort length = 0;

            if (buffer.Value != null)
            {
                length = (ushort)buffer.Value.Length;
            }

            writer.WriteUInt16((ushort)(length * 2));
            writer.WriteUInt16((ushort)((length) * 2));

            writer.WriteEmbeddedStructureFullPointer(buffer);
        }
Beispiel #12
0
        public void Write(NDRWriter writer)
        {
            if (Info != null && Level != Info.Level)
            {
                throw new ArgumentException("Invalid SHARE_ENUM_STRUCT Level");
            }

            writer.BeginStructure(); // SHARE_ENUM_STRUCT
            writer.WriteUInt32(Level);
            writer.BeginStructure(); // SHARE_ENUM_UNION
            writer.WriteUInt32(Info.Level);
            writer.WriteEmbeddedStructureFullPointer(Info);
            writer.EndStructure(); // SHARE_ENUM_UNION
            writer.EndStructure(); // SHARE_ENUM_STRUCT
        }
Beispiel #13
0
        public void Write(NDRWriter writer)
        {
            writer.BeginStructure();
            writer.WriteUInt32((uint)SIDs.Count);
            if (SIDs != null)
            {
                foreach (SID sid in SIDs)
                {
                    NDRSID ndrSid = new NDRSID(sid);
                    writer.WriteEmbeddedStructureFullPointer(ndrSid);
                }
            }

            writer.EndStructure();
        }
Beispiel #14
0
 public void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteEmbeddedStructureFullPointer(NetName);
     writer.EndStructure();
 }