Beispiel #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;
        }
    }
Beispiel #2
0
 void IDisposable.Dispose()
 {
     if (this.class1005_0 != null)
     {
         this.class1005_0.System.IDisposable.Dispose();
         this.class1005_0 = null;
         if (this.interface65_0 != null)
         {
             Marshal.FinalReleaseComObject(this.interface65_0);
             GC.SuppressFinalize(this.interface65_0);
             this.interface65_0 = null;
         }
         GC.SuppressFinalize(this);
     }
 }
Beispiel #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);
    }
    public void imethod_12(Interface61 A_0)
    {
        int       num    = 9;
        Class1005 class2 = A_0 as Class1005;

        if (class2 == null)
        {
            throw new NotImplementedException(BookmarkStart.b("氮帰䌲䰴帶圸尺ᴼ崾⑀㝂㉄≆ⱈ╊浌⭎㡐㕒㍔㉖⭘㹚㍜⭞䅠ၢᅤࡦ᭨੪੬੮兰ݲ౴ݶᱸࡺ嵼ᙾꎂﶈꮊメ殺ﲘ爵얠", num));
        }
        string str = A_0.imethod_11();

        if (this.imethod_7(str))
        {
            this.Interface61.imethod_6(str);
        }
        using (Class1005 class3 = this.imethod_4(str) as Class1005)
        {
            class2.interface40_0.imethod_4(0, IntPtr.Zero, IntPtr.Zero, class3.interface40_0);
        }
    }
Beispiel #5
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);
    }