windows-api-code-pack

Can't Get WindowsApiCodePack ShellFile Thumbnail Async

点点圈 提交于 2020-01-04 17:42:14
问题 I am trying to get the thumbnails for files in a directory asynchronously. All files except PDFs seem to work async. if (System.IO.File.Exists(filePath)) { var task = await Task.Factory.StartNew(async () => { using(ShellFile shellFile = ShellFile.FromFilePath(filePath)) { ImageSource source = shellFile.Thumbnail.MediumBitmapSource; source.Freeze(); return source; } }); image.Dispatcher.Invoke(() => image.Source = task.Result); } All other files return correctly. However, if I call all of this

Can't Get WindowsApiCodePack ShellFile Thumbnail Async

大憨熊 提交于 2020-01-04 17:39:02
问题 I am trying to get the thumbnails for files in a directory asynchronously. All files except PDFs seem to work async. if (System.IO.File.Exists(filePath)) { var task = await Task.Factory.StartNew(async () => { using(ShellFile shellFile = ShellFile.FromFilePath(filePath)) { ImageSource source = shellFile.Thumbnail.MediumBitmapSource; source.Freeze(); return source; } }); image.Dispatcher.Invoke(() => image.Source = task.Result); } All other files return correctly. However, if I call all of this

Name of files opened by a process in window?

喜夏-厌秋 提交于 2019-12-29 01:33:52
问题 How to print name of file open by some process (PID) in window? Or All Processes (PID) currently open a file. Process Explorer is a utility works for same. But how does it work not mentioned? Any /proc filesystem kind of thing present in windows? Can we read any Window's Registry? I wants to write a programming code And I rarely work on windows. Got two solutions in Python: 1. import psutil 2. import win32api, win32con, win32process But it is still a question to me! 1. How does these

C# - Get jumplist tasks from assembly

蓝咒 提交于 2019-12-25 03:12:31
问题 Is it possible to read all jumplist tasks/entries from an assembly using C#? I have worked with the WindowsAPICodePack before, but I did not find the appropriate methods/classes. I have read some articles which stated that it is impossible to read the jumplist tasks associated to an assembly but I personally think that it is possible to read these tasks, as Windows (or at least MS Explorer) has to do it all the time. Thank you in advance Edit: I realized that my question was asked rather

CommonOpenFileDialog cause Windows Form to shrink

随声附和 提交于 2019-12-23 07:28:33
问题 I've been working on a Windows Forms application, and have recently added a simple settings page that allows the user to select a folder for where the output goes. The OpenFileDialog is ugly and not nice to use, so I've added in the WindowsAPICodePack to get access to the CommonOpenFileDialog - all good there. When I open the CommonOpenFileDialog , the Windows form application shrinks to a smaller size, as shown in the image attached. On the left is the program normally, on the right is with

CommonOpenFileDialog cause Windows Form to shrink

泪湿孤枕 提交于 2019-12-23 07:28:09
问题 I've been working on a Windows Forms application, and have recently added a simple settings page that allows the user to select a folder for where the output goes. The OpenFileDialog is ugly and not nice to use, so I've added in the WindowsAPICodePack to get access to the CommonOpenFileDialog - all good there. When I open the CommonOpenFileDialog , the Windows form application shrinks to a smaller size, as shown in the image attached. On the left is the program normally, on the right is with

How can I make CommonOpenFileDialog select folders only, but still show files?

旧街凉风 提交于 2019-12-17 19:33:39
问题 I am using Microsoft's CommonOpenFileDialog to allow users to select a Folder, but no files are visible when the dialog comes up. Is it possible to show files as well as folders when IsFolderPicker is set to true? My current code looks like this var dialog = new CommonOpenFileDialog(); dialog.IsFolderPicker = true; if (dialog.ShowDialog() == CommonFileDialogResult.Ok) { SelectedFolderPath = dialog.FileName; } 回答1: Off the top of my head, this is how I did it var dialog = new

VBA:WIndows API :How to assign file path to open windows?

别说谁变了你拦得住时间么 提交于 2019-12-13 22:29:59
问题 I am struggling in upload automation before i have tried with send key Question 1 after my question i have decided go with Windows API program and i refer lot of code in website i found only, how to find the my "Choose File to Upload" windows and click Open button, Now i don't know how to insert filename path to file name Edit text-box in open windows. Kindly tell me how to set the text value of an 'edit' control text box with the SendMessage() function. Find attached screenshot for My IE

How to Invoke a Verb on a ShellFile/ShellFolder/ShellObject objects using Windows API Code Pack?

拜拜、爱过 提交于 2019-12-13 08:07:02
问题 I'm looking for a C# or Vb.NET solution to know how I can invoke the undelete verb on a ShellObject ( ShellFile or ShellFolder ) stored in the recycle bin. The recycle bin part I've it written, what I only need is to know how to invoke a verb on a deleted item. To understand me better I'll show this example of how I invoke a verb using the Shell32 Interface, but I can't find any similar method on the ShellObject/ShellFile/ShellFolder items of the Windows API Code Pack library where I'm

Use a ShellFile object using Windows API Code Pack for Microsoft

寵の児 提交于 2019-12-08 10:04:55
问题 Windows API Code Pack for Microsoft can be downloaded from here. That is a really nice library and it has great examples. For example if I open the solution WindowsAPICodePack10 that comes in the zip from downloading the code pack (it only contains the libraries I added a win forms and wpf application) then I am able to use the library very easily for example in my wpf application I can drag: ExplorerBrowser user control (note I have to add references to the libraries that came with the