Beispiel #1
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);
        }
 public void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteUInt16((ushort)Use);
     writer.WriteUInt32(RelativeId);
     writer.WriteUInt32(DomainIndex);
     writer.EndStructure();
 }
Beispiel #3
0
 public void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteUInt16((ushort)Use);
     //TODO verifty
     writer.WriteStructure(unicode_string);
     writer.WriteUInt32(DomainIndex);
     writer.EndStructure();
 }
    public byte[] GetBytes()
    {
        NDRWriter writer = new NDRWriter();

        //handle
        writer.WriteStructure(handle);
        // sid array
        writer.WriteStructure(SIDEnumBuffer);

        //translated names
        writer.WriteStructure(TranslatedNames);

        //level
        writer.WriteUInt16(level);

        // mappedcount
        writer.WriteUInt32(0);
        return(writer.GetBytes());
    }
    public byte[] GetBytes()
    {
        NDRWriter writer = new NDRWriter();

        //handle
        writer.WriteStructure(handle);

        writer.WriteUInt32((uint)Names.Count);
        // names array
        writer.WriteStructure(Names);

        //translated sids
        writer.WriteStructure(TranslatedSids);

        //level
        writer.WriteUInt16(LookupLevel);

        // mappedcount
        writer.WriteUInt32(0);
        return(writer.GetBytes());
    }