Пример #1
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
        }
Пример #2
0
 public void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteUInt32(Entries);
     writer.WriteEmbeddedStructureFullPointer(SIDInfos);
     writer.EndStructure();
 }
Пример #3
0
 public override void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteUInt32((uint)PlatformID);
     writer.WriteEmbeddedStructureFullPointer(ServerName);
     writer.EndStructure();
 }
Пример #4
0
 public void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteUInt32((uint)this.Count);
     writer.WriteEmbeddedStructureFullPointer(Entries);
     writer.EndStructure();
 }
Пример #5
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();
        }
Пример #7
0
 public void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteUInt16((ushort)Use);
     writer.WriteUInt32(RelativeId);
     writer.WriteUInt32(DomainIndex);
     writer.EndStructure();
 }
Пример #8
0
 public void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteEmbeddedStructureFullPointer(NetName);
     ShareType.Write(writer);
     writer.WriteEmbeddedStructureFullPointer(Remark);
     writer.EndStructure();
 }
Пример #9
0
    public byte[] GetBytes()
    {
        NDRWriter writer = new NDRWriter();

        writer.BeginStructure();
        writer.WriteTopLevelUnicodeStringPointer(ServerName.StartsWith("\\\\") ? ServerName : "\\\\" + ServerName);
        writer.EndStructure();
        return(writer.GetBytes());
    }
Пример #10
0
        public void Write(NDRWriter writer)
        {
            throw new NotImplementedException();
            writer.BeginStructure();
            writer.WriteUInt32(Entries);

            writer.WriteEmbeddedStructureFullPointer(Names);
            writer.EndStructure();
        }
Пример #11
0
 public void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteUInt16((ushort)Use);
     //TODO verifty
     writer.WriteStructure(unicode_string);
     writer.WriteUInt32(DomainIndex);
     writer.EndStructure();
 }
Пример #12
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();
 }
Пример #13
0
 public void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteUInt32(Length);
     writer.WriteUInt32(0);
     writer.WriteUInt32(0);
     writer.WriteUInt32(Attributes);
     writer.WriteUInt32(0);
     writer.WriteUInt32(0);
     writer.EndStructure();
 }
Пример #14
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();
        }
Пример #15
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();
 }
Пример #16
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();
        }
Пример #17
0
 public void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteEmbeddedStructureFullPointer(NetName);
     writer.EndStructure();
 }