Questions tagged [shell32]

The shell32 manages the Windows graphicall shell. It implements a lot of the Windows Explorer.

The Shell Namespace. Like files and directories forms a filesystem hierarchy, the hierarchy displayed by shell32 is called the shell namespace. It contains all the files and directories as descendents of My Computer (and under wine the Unixfs '/' folder) but it contains many more folders (e.g. Control Panel, Network Neighborhood etc.)

123 questions
34
votes
9 answers

How to use Shell32 within a C# application?

What should I include within a C# application in order to make Shell32 work? Edit: My application can't recognize shell32. What references or lib should I include? What I'm trying to do is: Shell32.Shell shell = new Shell32.Shell(); What I'm…
Lisa
  • 2,941
  • 14
  • 49
  • 77
10
votes
4 answers

Calling Shell32.dll from .NET Windows Service

I have a .NET 4.0 library that uses Shell32 and Folder.GetDetailsOf() to get metadata from WTV files. I have used it successfully with Console and Windows Forms apps without issue. But for some reason, when calling the component from a .NET 4.0…
9
votes
4 answers

What options are available for Shell32.Folder.GetDetailsOf(..,..)?

I've seen answers using GetDetailsOf() to get details about shell items, but the numbers are always magic numbers. I've looked at the docs for both FolderItem and GetDetailsOf but found nothing. (The list in the latter is not for everything.…
ispiro
  • 23,513
  • 30
  • 116
  • 236
9
votes
3 answers

Get list of selected files from Windows Desktop

I am trying to get a list of selected files from the Windows Desktop and the Explorer Windows. The requirement is that I should be able to retrieve the current selection from the active explorer window or the Desktop. I have managed to put together…
Shumais Ul Haq
  • 1,377
  • 1
  • 14
  • 25
7
votes
2 answers

How to check when Shell32.Folder.CopyHere() is finished

I need to unzip en zip some files in my application using Shell32. Right now, I use srcFolder.CopyHere(destFolder.Items()) to achieve this. However, my next line of code requires the newly made ZIP-file. But since the CopyHere method is Async, how…
Jelle Capenberghs
  • 764
  • 2
  • 13
  • 30
6
votes
2 answers

How do I programmatically change a .lnk to change its target?

Is there any way to open a windows shortcut (.lnk file) and change it's target? I found the following snippet which allows me to find the current target, but it's a read-only property: Shell32::Shell^ shl = gcnew Shell32::Shell(); String^…
Jon Cage
  • 33,172
  • 32
  • 120
  • 206
6
votes
1 answer

Why do i get E_ACCESSDENIED when reading public shortcuts through Shell32?

I'm trying to read the targets of all desktop shortcuts in a C# 4 application. The shortcuts on a windows desktop can come from more that one location, depending on whether the shortcut is created for all users or just the current user. In this…
corvuscorax
  • 5,570
  • 3
  • 28
  • 31
6
votes
1 answer

Referencing shell32 again, C# Visual Studio

Hmmm. Okay after revisiting PInvoke, I'm sure that I don't quite get it :-/ (just asked this question) Let me illustrate the code I need to handle. It works when I use "Add Reference --> COM --> Microsoft Shell Controls and Automatation" ... but…
Akku
  • 4,135
  • 4
  • 44
  • 65
6
votes
2 answers

Calling SHGetFileInfo in thread to avoid UI freeze

In a .NET 4.0 application (WPF) we're using SHGetFileInfo to obtain shell icons for a directory tree. Since this takes quite some time in some cases (i.e. for a network drive that is unreachable or for a floppy drive), we wanted to do this in a…
OregonGhost
  • 22,433
  • 5
  • 66
  • 105
5
votes
1 answer

Internet Shortcut IDList value decoding

I have been trying to find any information on a value that is stored in an url shortcut that is generated from MS-Office for SharePoint Libraries. We are moving away from Office 2007 to Office 365 and the feature of 2007 that creates these links…
Toby Leduc
  • 71
  • 4
5
votes
2 answers

What is the correct way to implement a Managed Property Handler Shell Extension?

Now that .NET CLR 4.0 supports side by side (SxS) operation it should now be possible to write shell extensions in managed code. I have attempted this and successfully coded a Property Handler that implements IPropertyStore, IInitializeWithStream…
David Lynch
  • 1,696
  • 15
  • 15
4
votes
1 answer

Bypassing MAX_PATH limitation for ITEMIDLIST?

Is there any known way (whether documented or otherwise) to create an ITEMIDLIST structure from a path, such as with ILCreateFromPath, while bypassing the MAX_PATH limitation on the length?
user541686
  • 189,354
  • 112
  • 476
  • 821
4
votes
5 answers

Best programming language to write a Windows File Manager app

I would like to write my own file manager i.e. something like what XYplorer or Free Commander does but with a feature set that's more helpful to programmers. What's the best language to write this. I'm basically looking for a language that has both…
grok
  • 866
  • 1
  • 14
  • 14
4
votes
3 answers

IProgressDialog questions: Do I misunderstand its multithreading, as I seem to need a message pump? Can I avoid opening another dialog before it ends?

I'm trying to use IProgressDialog in PROGDLG_MODAL mode and I'm hitting two snags. First, from what I gather from MSDN and the block comment in the header file describing IProgressDialog, you are supposed to use it directly from the…
andlabs
  • 10,462
  • 1
  • 25
  • 46
4
votes
2 answers

Delete a FolderItem

I want to delete a file stored in an USB flashdrive (actually an android device's sd card). I ask the user to point the app's folder inside the sd card, and i hold a Shell32.Folder object pointing to it. I can iterate between the files (FolderItem…
Marcelo Vitoria
  • 531
  • 1
  • 5
  • 14
1
2 3
8 9