Ejemplo n.º 1
0
 private void method_26(Stream12 A_0, OleLinkType A_1, OleObjectType A_2)
 {
     A_0.method_15(BookmarkStart.b("ⴭ缯倱帳缵嘷尹医", 8));
     this.class371_0 = new Class371();
     this.class371_0.method_0(A_0, A_1, A_2);
     A_0.Close();
 }
Ejemplo n.º 2
0
    private void method_25(Stream12 A_0, OleLinkType A_1, OleObjectType A_2, string A_3)
    {
        int num = 4;

        switch (A_2)
        {
        case OleObjectType.AdobeAcrobatDocument:
        case OleObjectType.BitmapImage:
        case OleObjectType.Equation:
        case OleObjectType.GraphChart:
        case OleObjectType.Excel_97_2003_Worksheet:
        case OleObjectType.ExcelBinaryWorksheet:
        case OleObjectType.ExcelChart:
        case OleObjectType.ExcelMacroWorksheet:
        case OleObjectType.ExcelWorksheet:
        case OleObjectType.PowerPoint_97_2003_Presentation:
        case OleObjectType.PowerPoint_97_2003_Slide:
        case OleObjectType.PowerPointMacroPresentation:
        case OleObjectType.PowerPointMacroSlide:
        case OleObjectType.PowerPointSlide:
        case OleObjectType.VisioDrawing:
        case OleObjectType.OpenDocumentPresentation:
        case OleObjectType.OpenDocumentSpreadsheet:
        case OleObjectType.OpenOfficeSpreadsheet1_1:
        case OleObjectType.OpenOfficeText_1_1:
        case OleObjectType.Package:
        case OleObjectType.WordPadDocument:
        case OleObjectType.OpenOfficeText:
            A_0.method_15(BookmarkStart.b("⬩挫䈭唯", num));
            this.class365_0 = new Class365(A_1, A_3);
            this.class365_0.method_1(A_0);
            A_0.Close();
            break;

        case OleObjectType.MediaClip:
        case OleObjectType.PowerPointPresentation:
        case OleObjectType.Word_97_2003_Document:
        case OleObjectType.WordDocument:
        case OleObjectType.WordMacroDocument:
        case OleObjectType.MIDISequence:
        case OleObjectType.OpenDocumentText:
        case OleObjectType.VideoClip:
        case OleObjectType.WaveSound:
        case OleObjectType.OpenOfficeSpreadsheet:
            break;

        default:
            return;
        }
    }
Ejemplo n.º 3
0
 internal Class365(OleLinkType A_0, string A_1)
 {
     this.string_0      = string.Empty;
     this.oleLinkType_0 = A_0;
     this.int_7         = 0x2000001;
     this.int_10        = 0;
     this.int_11        = 0;
     if (A_0 == OleLinkType.Embed)
     {
         this.int_8 = 8;
     }
     else
     {
         this.int_8    = 1;
         this.string_0 = A_1;
         this.int_9    = 3;
     }
 }
Ejemplo n.º 4
0
    internal byte[] method_11(byte[] A_0, string A_1, string A_2, OleLinkType A_3, OleObjectType A_4)
    {
        int num = 10;

        this.string_22 = A_1;
        if (A_4 == OleObjectType.Package)
        {
            this.string_21 = A_1;
        }
        MemoryStream stream  = new MemoryStream(A_0);
        Stream12     stream2 = new Stream12(stream, STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE);
        Stream12     stream3 = null;

        stream3 = stream2.method_12(BookmarkStart.b("缯倱帳匵嬷丹氻儽⼿⹁", num), STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE);
        Stream12 stream4 = stream3.method_12(A_2, STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE);

        this.method_25(stream4, A_3, A_4, A_1);
        this.method_26(stream4, A_3, A_4);
        if (A_3 == OleLinkType.Embed)
        {
            this.byte_0 = File.ReadAllBytes(A_1);
            this.method_22(stream4, A_4);
            this.method_15(stream4, A_1, A_4);
        }
        else
        {
            this.method_24(stream4, A_4, A_1);
        }
        stream3.Flush();
        stream2.Flush();
        MemoryStream stream5 = new MemoryStream();

        stream2.method_17(stream5);
        stream5.Flush();
        byte[] buffer = stream5.ToArray();
        stream5.Close();
        stream2.Close();
        stream2.Dispose();
        stream3.Close();
        stream3.Dispose();
        return(buffer);
    }
Ejemplo n.º 5
0
    internal static byte[] smethod_13(OleLinkType A_0, OleObjectType A_1, bool A_2)
    {
        byte[] buffer = new byte[6];
        switch (A_1)
        {
        case OleObjectType.Undefined:
        case OleObjectType.WordPadDocument:
        {
            if (A_0 != OleLinkType.Embed)
            {
                return(new byte[] { 0x10, 2, 3, 0, 13, 0 });
            }
            byte[] buffer6 = new byte[6];
            buffer6[2] = 3;
            buffer6[4] = 4;
            return(buffer6);
        }

        case OleObjectType.AdobeAcrobatDocument:
        case OleObjectType.Excel_97_2003_Worksheet:
        case OleObjectType.ExcelBinaryWorksheet:
        case OleObjectType.ExcelMacroWorksheet:
        case OleObjectType.ExcelWorksheet:
        case OleObjectType.PowerPoint_97_2003_Presentation:
        case OleObjectType.PowerPointMacroPresentation:
        case OleObjectType.PowerPointMacroSlide:
        case OleObjectType.PowerPointPresentation:
        case OleObjectType.PowerPointSlide:
        case OleObjectType.WordMacroDocument:
        case OleObjectType.VisioDrawing:
        case OleObjectType.OpenDocumentPresentation:
        case OleObjectType.OpenDocumentSpreadsheet:
        case OleObjectType.OpenOfficeSpreadsheet1_1:
        case OleObjectType.OpenOfficeText_1_1:
        case OleObjectType.OpenOfficeSpreadsheet:
        case OleObjectType.OpenOfficeText:
        case OleObjectType.VisioDrawing_2013:
            if (A_0 != OleLinkType.Embed)
            {
                return(new byte[] { 0x10, 0, 3, 0, 13, 0 });
            }
            if (!A_2)
            {
                byte[] buffer3 = new byte[6];
                buffer3[2] = 3;
                buffer3[4] = 13;
                return(buffer3);
            }
            return(new byte[] { 0x40, 0, 3, 0, 4, 0 });

        case OleObjectType.BitmapImage:
        case OleObjectType.MIDISequence:
        case OleObjectType.VideoClip:
        {
            if (A_0 != OleLinkType.Embed)
            {
                return(new byte[] { 0x10, 0, 3, 0, 4, 0 });
            }
            byte[] buffer4 = new byte[6];
            buffer4[2] = 3;
            buffer4[4] = 4;
            return(buffer4);
        }

        case OleObjectType.MediaClip:
        case OleObjectType.Package:
        case OleObjectType.WaveSound:
            return(new byte[] { 0x40, 0, 3, 0, 4, 0 });

        case OleObjectType.Equation:
            if (A_0 == OleLinkType.Embed)
            {
                byte[] buffer2 = new byte[6];
                buffer2[2] = 3;
                buffer2[4] = 4;
                buffer     = buffer2;
            }
            return(buffer);

        case OleObjectType.GraphChart:
        case OleObjectType.ExcelChart:
            if (A_0 != OleLinkType.Embed)
            {
                return(new byte[] { 0x10, 0, 3, 0, 13, 0 });
            }
            return(new byte[] { 0, 2, 3, 0, 13, 0 });

        case OleObjectType.PowerPoint_97_2003_Slide:
        case OleObjectType.WordDocument:
        {
            if (A_0 != OleLinkType.Embed)
            {
                return(new byte[] { 0x10, 0, 3, 0, 13, 0 });
            }
            byte[] buffer5 = new byte[6];
            buffer5[2] = 3;
            buffer5[4] = 1;
            return(buffer5);
        }

        case OleObjectType.Word_97_2003_Document:
        case OleObjectType.WordPicture:
            if (A_0 != OleLinkType.Embed)
            {
                return(new byte[] { 0x10, 2, 3, 0, 13, 0 });
            }
            return(new byte[] { 0, 2, 3, 0, 1, 0 });

        case OleObjectType.OpenDocumentText:
            return(buffer);
        }
        return(buffer);
    }
Ejemplo n.º 6
0
 internal void method_0(Stream12 A_0, OleLinkType A_1, OleObjectType A_2)
 {
     this.byte_0 = smethod_13(A_1, A_2, true);
     A_0.Write(this.byte_0, 0, this.byte_0.Length);
 }
Ejemplo n.º 7
0
 internal void method_86(OleLinkType A_0)
 {
     this.oleLinkType_0 = A_0;
 }