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.)

127 questions
1
vote
1 answer

C# - Shell.Namespace(pathFolder) return null, even the exists

I'm trying to do a recursive loop through "Start Menu" folder using following code: Function(string pathFolder) { Shell32.Shell shell = new Shell32.Shell(); Shell32.Folder folderObj = shell.NameSpace(pathFolder); foreach ( Shell32.FolderItem2 item…
Joseph Do
  • 91
  • 4
1
vote
1 answer

Is there a correct way to get file details in windows since GetDetailsOf column numbering changes between OS releases?

We have been using Shell32 Folder.GetDetailsOf(folderItem, column) to get file details and extended file details of different files. Unfortunately this breaks between OS versions since the column numbering changes, as can be seen from this code…
icecream
  • 973
  • 2
  • 12
  • 26
1
vote
0 answers

NSE: file update notification

I have the question. I have designed namespace extension (NSE). My NSE provides files with theur PIDLs. I store in the PIDL various information. Something has happened and PIDL of the file is changed, but name is left old. Old PIDL is invalid and…
1
vote
1 answer

Not able to use Shell32.dll in .Net 4.0 project

I have C# VS 2010 project which uses Shell32.dll. Shell32.dll is used for creating zip file. The machine is Win7 64-bit. The projects compile and runs fine when .net target version is 2.0 or 3.5. However changing it to 4.0 results in compilation…
Prafulla
  • 261
  • 1
  • 4
  • 13
1
vote
2 answers

How to close Error MessageBox generated at the start up of the device from other application using c++?

I have my application say test.exe which starts whenever i boot my mobile device. I also kept dummy.log file at MyDevice\Windows\startup\ folder so whenevr i restart my device i see that error message box appears for dummy.log file. I observed in…
Abhineet
  • 6,459
  • 10
  • 35
  • 53
0
votes
0 answers

Get Folder and File Properties using Shell32.Shell

I have a requirement to access a folder path and read the file and folder properties using Shel32.Shell with C# code. I have written the login and I am able to read below the information and generate that info in the excel sheet. However, I am badly…
iftekharus
  • 21
  • 2
0
votes
1 answer

ShellExecuteA cannot execute '.exe' in Python (with. ctypes ShellExecuteA)

I have compiled below code but cannot execute the "PPP.exe". '.exe' file exists same directory with '.py' file. Why cannot working(or "open") this code?? Please let me know. import ctypes ctypes.windll.shell32.ShellExecuteA(0, 'open', "PPP.exe", …
0
votes
2 answers

Virtual Files are opened from Temporary Internet Files

I have created a namespace extension that is rooted under Desktop. The main purpose of the extension is to provide a virtual list of ZIP files that represent a list of configurable directories. When the user clicks one of the those items the…
Jorge Ferreira
  • 96,051
  • 25
  • 122
  • 132
0
votes
1 answer

C# shell.NameSpace does not find the folder on an external device

I have the following problem: I am using the Shell32 library to be able to access files even on external devices such as my android phone. Getting a local folder and the Phone itself works, but not the folder on the phone. My current code to get a…
Fingeg
  • 61
  • 5
0
votes
0 answers

C# Why is Shell32.Shell.Windows() so slow?

When I try to iterate the file explorer windows in C#. It takes 7 - 15 seconds to execute the Windows method. In powershell, it takes less than a second. What is causing such a long delay? Shell32.Shell o = new Shell32.Shell(); //…
John
  • 5,942
  • 3
  • 42
  • 79
0
votes
1 answer

How can I get a HWND from a InternetExplorer object

I am trying to get the current folder location of a Windows Explorer window. With this snippet, I am able to iterate all the windows and get their locations. However, I need to match them up to their window handles so that I can manipulate the…
John
  • 5,942
  • 3
  • 42
  • 79
0
votes
1 answer

Is there a way of finding uID of a specific application?

I am trying to catch the uID variable from the NOTIFYICONDATA struct, used in Shell_NotifyIcon function (shellapi.h). I got the hWnd of the process window and hIcon the handle of the icon. The application does not provide a way to hide the system…
0
votes
0 answers

IShellWindows::FindWindowSW returns S_FALSE for desktop if explorer restarted

I have a program that passes a command line to the explorer process to execute in the user's non-elevated desktop context. Part of doing that requires using IShellWindows::FindWindowSW to search for the desktop window, as can be seen in this…
Jay
  • 319
  • 3
  • 12
0
votes
1 answer

Portable USB device path obtained with shell32 - invalid characters in path

I'm looking for a way to access files on a smartphone connected through USB cable using standard System.IO stuff like Directory and StreamReader. I have obtained a pretty wicked-looking path to my USB device using this code: public string…
ttaaoossuuuu
  • 7,786
  • 3
  • 28
  • 58
0
votes
1 answer

Is there a function like ExtractIconEx but for in-memory data instead of from a file

In the zserge/tray project, in the windows tray_update function, the ExtractIconEx function is used to construct the icon handle (HICON icon). The function is passed tray->icon as the first argument, which is a string that points to a .ico file. My…
psidex
  • 435
  • 1
  • 6
  • 15
1 2 3
8 9