windows-shell

How can I access windows file preview icons from my WPF application

孤街醉人 提交于 2021-02-18 00:57:04
问题 I got a bunch of Pictures and Videos in a directory and needs to be displayed in the WPF application, I am thinking about displaying the Win7 Large Icon itself as the preview image. Because that will save me the work of grabbing an appropriate frame from the video file since Windows is doing that job pretty well already. Any code snippet to access this Shell Icon image data? 回答1: When using the Windows API Code Pack, you can do: XAML <Image x:Name="img" /> C# img.Source = ShellFile

How can I access windows file preview icons from my WPF application

℡╲_俬逩灬. 提交于 2021-02-18 00:54:26
问题 I got a bunch of Pictures and Videos in a directory and needs to be displayed in the WPF application, I am thinking about displaying the Win7 Large Icon itself as the preview image. Because that will save me the work of grabbing an appropriate frame from the video file since Windows is doing that job pretty well already. Any code snippet to access this Shell Icon image data? 回答1: When using the Windows API Code Pack, you can do: XAML <Image x:Name="img" /> C# img.Source = ShellFile

How can I access windows file preview icons from my WPF application

爱⌒轻易说出口 提交于 2021-02-18 00:54:16
问题 I got a bunch of Pictures and Videos in a directory and needs to be displayed in the WPF application, I am thinking about displaying the Win7 Large Icon itself as the preview image. Because that will save me the work of grabbing an appropriate frame from the video file since Windows is doing that job pretty well already. Any code snippet to access this Shell Icon image data? 回答1: When using the Windows API Code Pack, you can do: XAML <Image x:Name="img" /> C# img.Source = ShellFile

Windows 7: Prevent application from losing focus

北战南征 提交于 2021-02-17 19:08:10
问题 I have a self-made fullscreen application for Windows 7 written in C++ which should run for a long time on its own as a public presentation. Problem is, there are several applications or drivers or Windows itself that steal focus from time to time and/or especially at system startup. Result is: My fullscreen application gets minimimized. It is very annoying and nearly impossible to always find out which things you have to deactivate to prevent that. Especially because those focus stealing

Why would the PIDL for the control panel be different?

拟墨画扇 提交于 2021-02-07 14:55:28
问题 I see that one should do this to compare PIDLs: IShellFolder::CompareIDs(). In particular, I'm trying to detect if a given absolute PIDL (or relative) is that of the Control Panel. However, in practice I end up with two PIDLs which IShellFolder::CompareIDs() claims are not equal, when they should be (looking at the GetDisplayName() for each, I can see that we're indeed looking at the Control Panel). Basically, I'm obtaining the absolute PIDL for the Control panel by: PIDL iidControlPanel =

Why would the PIDL for the control panel be different?

亡梦爱人 提交于 2021-02-07 14:55:23
问题 I see that one should do this to compare PIDLs: IShellFolder::CompareIDs(). In particular, I'm trying to detect if a given absolute PIDL (or relative) is that of the Control Panel. However, in practice I end up with two PIDLs which IShellFolder::CompareIDs() claims are not equal, when they should be (looking at the GetDisplayName() for each, I can see that we're indeed looking at the Control Panel). Basically, I'm obtaining the absolute PIDL for the Control panel by: PIDL iidControlPanel =

SHOpenFolderAndSelectItems for explorer replacement program

橙三吉。 提交于 2021-02-06 14:07:41
问题 I maintain a explorer/file manager tool (xplorer2) that can replace windows explorer for opening folders. However I cannot trap the "open folder and select item" operation performed by SHOpenFolderAndSelectItems API. I found an old thread by some other file manager programmer which implied that the right way is to register the "explorer-like" tool as a shell window, then respond to some queries to supply interfaces and services like IWebBrowserApp that will allow the item(s) to be selected I

SHOpenFolderAndSelectItems for explorer replacement program

喜夏-厌秋 提交于 2021-02-06 14:01:31
问题 I maintain a explorer/file manager tool (xplorer2) that can replace windows explorer for opening folders. However I cannot trap the "open folder and select item" operation performed by SHOpenFolderAndSelectItems API. I found an old thread by some other file manager programmer which implied that the right way is to register the "explorer-like" tool as a shell window, then respond to some queries to supply interfaces and services like IWebBrowserApp that will allow the item(s) to be selected I

SHOpenFolderAndSelectItems for explorer replacement program

回眸只為那壹抹淺笑 提交于 2021-02-06 14:01:28
问题 I maintain a explorer/file manager tool (xplorer2) that can replace windows explorer for opening folders. However I cannot trap the "open folder and select item" operation performed by SHOpenFolderAndSelectItems API. I found an old thread by some other file manager programmer which implied that the right way is to register the "explorer-like" tool as a shell window, then respond to some queries to supply interfaces and services like IWebBrowserApp that will allow the item(s) to be selected I

How to create shortcut for virtual folder in C++ on windows 7?

流过昼夜 提交于 2021-01-29 08:44:35
问题 The platform I am using is windows 7. I need to create shortcut for the virtual folder on windows 7. I use windows 7 SDK sample to create a virtual folder under Computer: The sample project name is called ExplorerDataProvider , it defines the CLSID for the IShellFolder class: // add classes supported by this module here const CLASS_OBJECT_INIT c_rgClassObjectInit[] = { { &CLSID_FolderViewImpl, CFolderViewImplFolder_CreateInstance }, { &CLSID_FolderViewImplContextMenu