Exemple #1
0
        private void CreateMouse()
        {
            string readerMouse = GetFilePath("ReaderMouse." + ReaderMouseMode.Ready.ToString().ToLower());

            File.Create(readerMouse).Close();
            Secuirty.AddFileSecurity(readerMouse, @"Everyone", FileSystemRights.FullControl, AccessControlType.Allow);
        }
Exemple #2
0
        private void CreateMode(ReaderMode rMode)
        {
            string modPath = GetFilePath("Reader." + rMode.ToString().ToLower());

            File.Create(modPath).Close();
            Secuirty.AddFileSecurity(modPath, @"Everyone", FileSystemRights.FullControl, AccessControlType.Allow);
        }
 public void CaptureWindowToFile(IntPtr handle, string filename, ImageFormat format,
                                 string account, FileSystemRights rights, AccessControlType type)
 {
     CaptureWindowToFile(handle, filename, format);
     Secuirty.AddFileSecurity(filename, account, rights, type);
 }
 public void CaptureScreenToFile(string filename, ImageFormat format,
                                 string account, FileSystemRights rights, AccessControlType type)
 {
     CaptureScreenToFile(filename, format);
     Secuirty.AddFileSecurity(filename, account, rights, type);
 }
 public static void WindowScreenshot(IntPtr handle, String filepath, ImageFormat format,
                                     string account, FileSystemRights rights, AccessControlType type)
 {
     WindowScreenshot(handle, filepath, format);
     Secuirty.AddFileSecurity(filepath, account, rights, type);
 }