windows-shell

Why/how are Registry Entries Hidden in Regedit but visible in PowerShell?

筅森魡賤 提交于 2019-12-05 11:28:28
I'm working with a new property schema, and have been in the habit of checking the registry when I register or unregister a new version. One of the primary places to check this is HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\PROPERTYSYSTEM\PROPERTYSCHEMA . Interestingly, I occasionally lose access to this registry location in Regedit. I see see this (note the absence of PropertySchema): I know the schemas are still registered, because I can use the prop.exe tool and propschema SDK sample application to describe them. The properties are available in Windows Explorer and in

Manipulating the Windows 7 Explorer navigation pane

删除回忆录丶 提交于 2019-12-05 11:11:05
Based on the answers I received at superuser , it's clear that I'll have to add the following to a custom Explorer Window launcher. I want to launch a rooted explorer view, and for just that window make the navigation pane look like the old Windows XP folders pane. I already wrote a program to place shortcuts to these folder views on the Start Menu, so changing the shortcuts to run through a launcher is trivial. Here's the XP folders pane: Here's the Windows 7 Navigation Pane: (source: 280z28.org ) tyranid Okay well I haven't got the time to completely finish this code (and it is in C# which I

How to parse Explorer breadcrumb path like “This PC\\Galaxy Tab A\\Card\\Folder1” using Windows Shell API?

浪子不回头ぞ 提交于 2019-12-05 08:42:48
When a user has navigated in the Windows Explorer to e.g. a folder on the SD-card of his Android phone, the Explorer shows a kind of breadcrumb path like "This PC\Galaxy Tab A\Card\Folder1" when one clicks in the address bar. Windows Explorer also accepts these kind of paths when entering or copying them in the address bar and pressing return. I wonder if there is a way to parse these kind of breadcrumb paths using the Shell API and get a PItemIDList or IShellItem in return. So far I did not succeeed using e.g. SHParseDisplayName() . This code LPITEMIDLIST itemidlist; HRESULT hr =

Handle file drop in TShellListView descendant

蹲街弑〆低调 提交于 2019-12-05 06:23:39
I am attempting to create a descendant of TShellListView that accepts files dropped from Windows Explorer. I want to handle the drag/drop in my component definition without having to implement it in any of the applications that use the component (I've found examples of accepting files dropped from Windows Explorer, but all at the application / TForm level). I'm calling DragAcceptFiles() in my constructor, and I've defined a message handler for WM_DROPFILES. However, when I use this component in a sample project and drag a file from Windows Explorer: I see the "not accepted" icon (circle w/

Minimize/restore windows programmatically skipping the animation effect

非 Y 不嫁゛ 提交于 2019-12-05 05:25:46
I need to perform several operations on a list of windows (minimize some of them, restore others) in order to switch between two or more set of windows at once. The problem with this are those animations you can see when minimizing and restoring a window. The whole process look terrible with all those animations going in and out, up and down. I cannot, however, disable those animations because this is for other computers and i dont want to change other people's settings, plus those animations are actually useful when you minimize/restore one window only (i.e. when YOU do it manually) because

Why aren't Shell_NotifyIcon balloon tips working?

岁酱吖の 提交于 2019-12-05 02:06:51
问题 According to everything I've seen, the following C++ program should be displaying a balloon tool tip from the tray icon when I left-click in the application window, yet it's not working. Can anyone tell me what I'm missing? This is on XP with version 6.0 of Shell32.dll (verified with DllGetVersion). Thanks! #include "stdafx.h" #include "shellapi.h" LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE

taskkill to differentiate 2 images by path

a 夏天 提交于 2019-12-05 00:25:29
How to kill a process by name and orginiated from a particular path using taskkill? taskkill /F /IM certainly it cant differentiate 2 process started from two different locations C:\Dir1 and C:\Dir2 Does tasklist has any switch to get the path name taskkill cannot do it. But you could use PowerShell if it's an option: (Get-WmiObject Win32_Process | Where-Object { $_.Path.StartsWith('C:\Dir1') }).Terminate() Akira Yamamoto Based on Joey's answer: wmic Path win32_process Where "CommandLine Like '%-jar selenium-server.jar%'" Call Terminate This way I avoid NullReferenceException when Path is null

Creating a special folder in Windows Explorer like DropBox or OneDrive

浪尽此生 提交于 2019-12-04 20:33:01
问题 I know there are a couple other questions as to pinning the Favorites folder but I wanted to do something where I have a folder like OneDrive or Drop box (where it acts almost like another drive). Cannot quite find what I'm looking for. I realize it's a special folder, I realize it's likely a shell extension (using SharpShell at the moment). I've gotten a context menu to work with it, just cannot find this information. I'm wondering if I'm asking it wrong. Any help is always appreciated!

Accessing thumbnails that don't exist

只愿长相守 提交于 2019-12-04 19:01:57
问题 I have made an application that presents you a list of files in your computer. Whenever you click any item in the list, a small PictureBox next to it should show the thumbnail of the corresponding file. I am using C# on Windows 7. To obtain the thumbnail, I've recurred to a method posted in a different question. First, I reference the Windows API Code pack. Then, I use the following code: ShellFile shellFile = ShellFile.FromFilePath(fullPathToFile); myPictureBox.Image = shellFile.Thumbnail

How can I get large icons for a file extension using Windows shell?

青春壹個敷衍的年華 提交于 2019-12-04 11:47:49
I have found various articles on getting the system images for a file or even file extension. I have the belows methods which are working for obtaining small 16x16 and large 32x32 images. // DLL Import [DllImport("shell32")] private static extern IntPtr SHGetFileInfo( string pszPath, uint dwFileAttributes, ref SHFILEINFO psfi, uint cbFileInfo, uint uFlags); // Constants/Enums private const int FILE_ATTRIBUTE_NORMAL = 0x80; private enum SHGetFileInfoConstants : int { SHGFI_ICON = 0x100, // get icon SHGFI_DISPLAYNAME = 0x200, // get display name SHGFI_TYPENAME = 0x400, // get type name SHGFI