public byte[] GetBytes()
    {
        NDRWriter writer = new NDRWriter();

        writer.WriteStructure(handle);
        return(writer.GetBytes());
    }
示例#2
0
        public byte[] GetBytes()
        {
            using NDRWriter writer = new NDRWriter();
            writer.WriteStructure(InfoStruct);
            writer.WriteUInt32((uint)Result);

            return(writer.GetBytes());
        }
示例#3
0
        public byte[] GetBytes()
        {
            NDRWriter writer = new NDRWriter();

            writer.WriteStructure(WkstaInfo);
            writer.WriteUInt32((uint)Result);

            return(writer.GetBytes());
        }
示例#4
0
 public void Write(NDRWriter writer)
 {
     writer.BeginStructure();
     writer.WriteUInt16((ushort)Use);
     //TODO verifty
     writer.WriteStructure(unicode_string);
     writer.WriteUInt32(DomainIndex);
     writer.EndStructure();
 }
示例#5
0
        public byte[] GetBytes()
        {
            using NDRWriter writer = new NDRWriter();
            writer.WriteTopLevelUnicodeStringPointer(ServerName);
            writer.WriteStructure(InfoStruct);
            writer.WriteUInt32(PreferedMaximumLength);
            writer.WriteUInt32(ResumeHandle);

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

        writer.WriteTopLevelUnicodeStringPointer(null);
        writer.WriteStructure(ObjectAttributes);
        writer.WriteUInt32((uint)DesiredAccess);

        return(writer.GetBytes());
    }
    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());
    }
示例#8
0
        public byte[] GetBytes()
        {
            using NDRWriter writer = new NDRWriter();
            writer.WriteStructure(InfoStruct);
            writer.WriteUInt32(TotalEntries);
            writer.WriteUInt32(ResumeHandle);
            writer.WriteUInt32((uint)Result);

            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());
    }