Пример #1
0
 private void method_4()
 {
     try
     {
         if (this.bool_0)
         {
             this.timer_0.Dispose();
             this.Close();
         }
         this.Invoke((Delegate)(() =>
         {
             if ((!(DateTime.Now < this.dateTime_0) || !(this.intptr_0 != IntPtr.Zero) ? 0 : (GClass18.IsWindowVisible(this.intptr_0) ? 1 : 0)) == 0)
             {
                 this.Size = new Size(0, 0);
             }
             else
             {
                 this.TopMost = true;
                 GClass18.GStruct1 gstruct1_0_1 = new GClass18.GStruct1();
                 GClass18.GStruct1 gstruct1_0_2 = new GClass18.GStruct1();
                 GClass18.GetWindowRect(this.intptr_0, ref gstruct1_0_1);
                 GClass18.GetClientRect(this.intptr_0, out gstruct1_0_2);
                 this.Location = new Point(gstruct1_0_1.int_0 + (gstruct1_0_1.Int32_0 - gstruct1_0_2.Int32_0) / 2, gstruct1_0_1.int_1 + (gstruct1_0_1.Int32_1 - gstruct1_0_2.Int32_1));
                 this.Size = new Size(gstruct1_0_2.Int32_0, gstruct1_0_2.Int32_1);
             }
         }));
     }
     catch
     {
     }
 }
Пример #2
0
 public NtStatus SetFileTime(string fileName, DateTime?creationTime, DateTime?lastAccessTime, DateTime?lastWriteTime, DokanFileInfo info)
 {
     try
     {
         FileStream context;
         if ((context = info.Context as FileStream) != null)
         {
             long long_0 = creationTime.HasValue ? creationTime.GetValueOrDefault().ToFileTime() : 0L;
             long long_1 = lastAccessTime.HasValue ? lastAccessTime.GetValueOrDefault().ToFileTime() : 0L;
             long long_2 = lastWriteTime.HasValue ? lastWriteTime.GetValueOrDefault().ToFileTime() : 0L;
             if (GClass18.SetFileTime(context.SafeFileHandle, ref long_0, ref long_1, ref long_2))
             {
                 return(NtStatus.Success);
             }
             throw Marshal.GetExceptionForHR(Marshal.GetLastWin32Error());
         }
         string path = this.method_6(fileName);
         if (creationTime.HasValue)
         {
             File.SetCreationTime(path, creationTime.Value);
         }
         if (lastAccessTime.HasValue)
         {
             File.SetLastAccessTime(path, lastAccessTime.Value);
         }
         if (lastWriteTime.HasValue)
         {
             File.SetLastWriteTime(path, lastWriteTime.Value);
         }
         return(this.method_8(nameof(SetFileTime), fileName, info, NtStatus.Success, (object)creationTime, (object)lastAccessTime, (object)lastWriteTime));
     }
     catch (UnauthorizedAccessException ex)
     {
         return(this.method_8(nameof(SetFileTime), fileName, info, NtStatus.AccessDenied, (object)creationTime, (object)lastAccessTime, (object)lastWriteTime));
     }
     catch (FileNotFoundException ex)
     {
         return(this.method_8(nameof(SetFileTime), fileName, info, NtStatus.ObjectNameNotFound, (object)creationTime, (object)lastAccessTime, (object)lastWriteTime));
     }
 }
Пример #3
0
 public static void smethod_0(IntPtr intptr_0, IntPtr intptr_1)
 {
     GClass18.SetWindowPos(intptr_0, intptr_1, 0, 0, 0, 0, GClass18.GEnum0.flag_7 | GClass18.GEnum0.flag_12);
 }