Is it possible to grab "custom" printer icons like the ones on the multi-printers (the 3 visible in the picture) in Windows 10? I've had a look in shell32.dll and DDORes.dll but can't see the multifunction printer icons in there. Where are they stored? If it is possible to grab them from somewhere, is it possible to read which icon the printer should be using with WMI or something else?
The image locations can be found in C:\ProgramData\Microsoft\Windows\DeviceMetadataCache\dmrccache\en-US when using Windows 10. I had found info regarding the Windows 7 location which is slightly different to how it is now.
Related
I've been looking into ways for an app to add a custom DeskBand (or something similar) to the Windows 10 & 11 taskbar:
There are various references to IDeskBand2 and other taskbar extensions, but I'm getting conflicting information[2] as to whether DeskBand is simply deprecated, or is actually no longer supported, for example, Microsoft says:
You should use thumbnail toolbars in new development in place of desk bands, which are not supported as of Windows 7.
...but thumbnail toolbars require that you hover over a taskbar button before they are visible. That's not the same as an always-visible area on the taskbar.
Is there no official (non-hacky) way to create something like the "Screen Time" example above for Windows 10/11?
Can anyone shed light on this?
[2]: Here's an example where Microsoft implies that it's not supported after Windows 7.
I'm currently building a wpf application and am looking for a "generic" looking set of icons like they are used in windows explorer, they can be something between xp and 10 style as long as I have a consistent set of icons in .png format for functions like: new file, open, save, save as, send to, undo, redo, ...
Is there a way to use the windows internal once?
Or a way to get some from the internet?
I tried the VS2015 Image Library but the icons there have different resolutions and colors. I couldn't even find a pair for undo/redo with the same resolution/color.
Here's the list of dlls that you can get icons from on any windows OS:
%systemroot%\system32\imageres.dll - contains lots of icons, used almost everywhere in Windows 10. It has icons for different types of folders, hardware devices, actions, and so on.
%systemroot%\system32\shell32.dll - also has lots of icons used in various parts of Windows 10. Together with imageres.dll , shell32.dll hosts one of the largest icon collections in Windows 10.
To get the complete list of dlls check out this article.
I have created a wallpaper changing program in C# using Visual Studio and I have had a couple reports in this last few months of part of the program not displaying right. I have no clue what is causing it. Any help?
This is what it looks like on my computer, Windows 7
This is what it looks like on the victims computer, Windows 8
If this is a windows Forms application, it could have something to do with DPI/resolution scaling. This isn't unique to Windows 8.
Check the Display sizing options match on both displays (or simply change on your Windows 7 Machine) in Control Panel.
Control Panel\Appearance and Personalization\Display for Windows 8. (I think it is the same for Windows 7).
See C# WinForms disable DPI scaling
or
How to write WinForms code that auto-scales to system font and dpi settings?
I am facing this strange issue. I built a C# application in Windows 7. It was showing the proper icon for the exe file, that I had set. I tested in other windows 7 systems, no issues so far.
When I moved the exe file to an Windows XP system, it was not showing the icon, but rather the default icon ( icon similar to a floppy disk).
Any idea what could be the reason ?
Thanks
on XP, the max icon size is help in HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics
On my system, Shell Icon Size is set to 33
You may change it to larger values, but there will be a slightly longer delay as windows loads in the appropriate size icon
There is apparently no limit, but having icons of 1024x1024 would be a little excessive (not to mention the loading time required)
I am looking for a way to set/change default input device inside my application. I have several different recording devices and it is very anoying to go into the control panel and change default recording device. I was looking around and I did not find anything that could help me with the problem. Application is written in c# and it is targeted for Windows Vista / Windows 7.
This can now (actually for quite some time already) be done very easily using the AudioSwitcher.AudioApi.CoreAudio NuGet package.
Simply create a new CoreAudioController:
var controller = new AudioSwitcher.AudioApi.CoreAudio.CoreAudioController();
Get hold of the desired device using its GUID:
var device = controller.GetDevice(Guid.Parse(...));
And lastly set it as the default playback device:
controller.DefaultPlaybackDevice = device;
Note: this answer was also posted under this question.
There is no public API to do this in Vista/7 AFAIK.
For a media center launch thing I created, I had to open the control panel and send keys to the dialog, a big ugly hack, but it's the best you can do. (Or run .net reflector on media center (It is able to change it, using undocumented calls))
If you had Windows XP, apparently, you can do this by editing the registry. The key HKEY_CURRENT_USER\Software\Microsoft\Multimedia\Sound Mapper\Playback contains the name of the current default playback device.