Esempio n. 1
0
    public Class491(string A_0, STGM A_1)
    {
        Interface40 interface2;
        int         num = 4;

        if ((A_0 == null) || (A_0.Length == 0))
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("䰩䔫䈭唯簱唳嬵崷", num));
        }
        if ((A_1 & STGM.STGM_CREATE) == STGM.STGM_DIRECT)
        {
            using (FileStream stream = new FileStream(A_0, FileMode.Open, FileAccess.Read, FileShare.Read))
            {
                this.method_2(stream);
                return;
            }
        }
        Guid guid      = new Guid(BookmarkStart.b("ᨩᰫḭ/ȱгص娷᜹఻฽瀿牁楃癅硇穉籋捍ፏ扑摓晕畗橙汛湝偟剡呣噥塧婩屫婭䙯", num));
        int  errorCode = Class359.StgCreateStorageEx(A_0, A_1, STGFMT.STGFMT_DOCFILE, 0, IntPtr.Zero, IntPtr.Zero, ref guid, out interface2);

        switch (errorCode)
        {
        case -2147287007:
        case -2147287008:
            throw new Exception9();

        default:
            if (errorCode != 0)
            {
                throw new ExternalException(BookmarkStart.b("椩䴫䀭帯崱䀳ᘵ圷䨹夻倽怿ㅁぃ⥅㩇⭉⭋⭍繏牑ቓ㽕㑗㽙籛ၝşཡţ䙥ŧᥩ噫乭", num) + A_0, errorCode);
            }
            this.class1005_0 = new Class1005(interface2);
            break;
        }
    }
Esempio n. 2
0
    public static Stream12 smethod_1(string A_0)
    {
        Interface40 interface2;
        int         num2      = 15;
        int         errorCode = Class359.StgCreateDocfile(A_0, STGM.STGM_CREATE | STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE, 0, out interface2);

        if (errorCode != 0)
        {
            throw new ExternalException(BookmarkStart.b("瘴嘶圸唺刼䬾慀⁂㝄≆⡈㽊⡌潎㉐㱒㡔❖㙘⹚㍜㭞䅠բ౤୦౨䕪", num2), errorCode);
        }
        return(new Stream12 {
            interface40_0 = interface2
        });
    }
Esempio n. 3
0
    private void method_0()
    {
        Interface40 interface2;
        int         num       = 0x13;
        int         errorCode = Class359.CreateILockBytesOnHGlobal(IntPtr.Zero, true, out this.interface65_0);

        if (errorCode != 0)
        {
            throw new ExternalException(BookmarkStart.b("稸娺匼ᠾ㕀捂♄㕆ⱈ⩊㥌⩎煐ὒ㩔㑖㉘ᥚ⑜⭞Ѡၢ䭤", num), errorCode);
        }
        errorCode = Class359.StgCreateDocfileOnILockBytes(this.interface65_0, STGM.STGM_CREATE | STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE, 0, out interface2);
        if (errorCode != 0)
        {
            throw new ExternalException(BookmarkStart.b("稸娺匼ᠾ㕀捂♄㕆ⱈ⩊㥌⩎煐⁒⅔㡖⭘㩚㩜㩞䅠ౢ୤䝦⁨❪ɬ౮ᩰㅲ౴Ͷᱸࡺ卼", num), errorCode);
        }
        this.class1005_0 = new Class1005(interface2);
    }
Esempio n. 4
0
    private void method_2(Stream A_0)
    {
        uint        num2;
        Interface40 interface2;
        int         num3 = 0x10;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("䔵䰷䠹夻弽ⴿ", num3));
        }
        Class359.CreateILockBytesOnHGlobal(IntPtr.Zero, true, out this.interface65_0);
        int count = (int)(A_0.Length - A_0.Position);

        byte[] buffer = new byte[count];
        A_0.Read(buffer, 0, count);
        this.interface65_0.imethod_1(0L, buffer, (uint)buffer.Length, out num2);
        this.interface65_0.imethod_2();
        Class359.StgOpenStorageOnILockBytes(this.interface65_0, null, STGM.STGM_DIRECT_SWMR | STGM.STGM_SHARE_DENY_NONE, 0, 0, out interface2);
        this.class1005_0 = new Class1005(interface2);
    }
Esempio n. 5
0
    public static Stream12 smethod_2()
    {
        Interface65 interface2;
        Interface40 interface3;
        int         num       = 15;
        int         errorCode = Class359.CreateILockBytesOnHGlobal(IntPtr.Zero, true, out interface2);

        if (errorCode != 0)
        {
            throw new ExternalException(BookmarkStart.b("瘴嘶圸᰺䤼Ἶ≀ㅂ⁄♆㵈⹊浌͎㹐げ㹔ᕖ⁘⽚㡜ⱞ你", num), errorCode);
        }
        errorCode = Class359.StgCreateDocfileOnILockBytes(interface2, STGM.STGM_CREATE | STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE, 0, out interface3);
        if (errorCode != 0)
        {
            throw new ExternalException(BookmarkStart.b("瘴嘶圸᰺䤼Ἶ≀ㅂ⁄♆㵈⹊浌㱎═㱒❔㙖㹘㹚絜ぞའ䍢Ɽ⭦٨ࡪ٬⵮ࡰݲၴѶ坸", num), errorCode);
        }
        return(new Stream12 {
            interface40_0 = interface3, interface65_0 = interface2
        });
    }
Esempio n. 6
0
    public Stream12(string A_0, STGM A_1)
    {
        int num2 = 4;

        this.long_0 = -1L;
        this.list_0 = new List <string>();
        this.list_1 = new List <string>();
        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("䰩䔫䈭唯簱唳嬵崷", num2));
        }
        int errorCode = Class359.StgOpenStorage(A_0, IntPtr.Zero, A_1, IntPtr.Zero, 0, out this.interface40_0);

        if (errorCode != 0)
        {
            throw new ExternalException(BookmarkStart.b("椩䴫䀭帯崱䀳ᘵ圷䨹夻倽怿ㅁぃ⥅㩇⭉⭋⭍繏牑ቓ㽕㑗㽙籛ၝşཡţ䙥ŧᥩ噫乭", num2) + A_0, errorCode);
        }
        this.method_27();
        this.string_0 = A_0;
        this.stgm_5   = A_1;
    }
Esempio n. 7
0
    public Stream12(Stream A_0, STGM A_1)
    {
        uint num3;
        int  num4 = 7;

        this.long_0 = -1L;
        this.list_0 = new List <string>();
        this.list_1 = new List <string>();
        if (A_0 is Stream12)
        {
            throw new ArgumentException(BookmarkStart.b("搬嬮ᄰ娲䘴᜶樸伺娼氾㕀ㅂ⁄♆⑈歊ⱌ⍎⍐㙒㑔㍖⁘畚", num4));
        }
        int errorCode = Class359.CreateILockBytesOnHGlobal(IntPtr.Zero, true, out this.interface65_0);

        if (errorCode != 0)
        {
            throw new ExternalException(BookmarkStart.b("測丮弰ᐲ䄴᜶娸䤺堼帾㕀♂敄୆♈⡊♌ൎ⡐❒ご⑖睘", num4), errorCode);
        }
        int count = (int)(A_0.Length - A_0.Position);

        byte[] buffer = new byte[count];
        A_0.Read(buffer, 0, count);
        errorCode = this.interface65_0.imethod_1(0L, buffer, (uint)buffer.Length, out num3);
        if (errorCode != 0)
        {
            throw new ExternalException(BookmarkStart.b("測丮弰ᐲ䄴᜶丸䤺吼䬾⑀捂ॄ⡆⩈⁊ཌ㙎═㙒♔祖", num4), errorCode);
        }
        errorCode = this.interface65_0.imethod_2();
        if (errorCode != 0)
        {
            throw new ExternalException(BookmarkStart.b("測丮弰ᐲ䄴᜶弸场䠼䰾⥀捂ॄ⡆⩈⁊ཌ㙎═㙒♔祖", num4), errorCode);
        }
        errorCode = Class359.StgOpenStorageOnILockBytes(this.interface65_0, null, A_1, 0, 0, out this.interface40_0);
        if (errorCode != 0)
        {
            throw new ExternalException(BookmarkStart.b("測丮弰ᐲ䄴᜶嘸䬺堼儾慀あㅄ⡆㭈⩊⩌⩎煐㱒㭔睖ᕘ㑚㹜㑞⍠ᩢᅤɦᩨ䕪", num4), errorCode);
        }
        this.method_27();
        this.stgm_5 = A_1;
    }
 public abstract void Visit(Class359 c);
 public override void Visit(Class359 c) { }