shell32.dll is a library which contains Windows Shell API functions.
Questions tagged [shell32.dll]
53 questions
1
vote
0 answers
Extract icon from DLL with transparency
I have the following C# code to extract an icon with a specific index from a specific DLL:
using System;
using System.Drawing;
using System.Runtime.InteropServices;
public class ExtractIcon
{
public static Icon Extract(string file, int number,…

Jonas Kohl
- 1,018
- 1
- 11
- 28
1
vote
0 answers
unable to cast COM object of type "system.__comObject" to interface type 'shell32.shell'
I run my project in win 7 and xp, but there is an error message, in this project I use shell32.shell to copy and extract automatic exe file,
does shell32.shell not work in windows 7 and xp?
if you can, please suggest that sheell32.shell can run
Dim…

Kamarur Rama
- 11
- 2
1
vote
1 answer
Win32 handle that was passed to Icon is not valid or is the wrong type
I have the following issue with my code.
Win32 handle that was passed to Icon is not valid or is the wrong type
The line of codes are as follow:
SHFILEINFO Declaration
Private Structure SHFILEINFO
Public hIcon As IntPtr ' : iconc
…

Naim Jamalludin
- 195
- 3
- 16
1
vote
1 answer
Qt: How to open file by external programm, "open with..." dialog
How can I open a file by associated, external program and if it fails call a "open with..." dialog?
Can it be platform independent code? Or I need to use
#ifdef
#else
#endif
constructions to implement "open with..." dialog call for every…

Inline
- 2,566
- 1
- 16
- 32
1
vote
1 answer
Visual Basic (vb.net): Get details of video file eg. frame width
I am using the shell32.dll to retrieve extended properties of a file. My textbox will display every property of the file (iCollumn -1 to 300) but it won't show the framewidth or frameheight (and many other properties).
Is there any way to get these…

user207913
- 19
- 1
- 4
1
vote
0 answers
Access Shell32.dll string table from a command line
I'm a making a simple Win32 batch to perform some tasks. One of them is to add "open prompt here" in every directory. Reading around I learned that you can use Shell32.dll string to table to use its string with regedit, for example this is my batch…

Joel
- 1,805
- 1
- 22
- 22
1
vote
0 answers
Update folder icon through SHChangeNotify API
I have problem refreshing the custom icon which i have set in desktop.ini.
I referred many post in SO and codeproject but still i am facing this issue my prograt sets everything icon path, confirmOp, icon index, making it hidden and system…

Dharmen Bavaria
- 11
- 2
1
vote
4 answers
c# Shell32 zip / unzip code, CopyHere not working
I'm having some issues with the Shell32 CopyHere method.
First of all, I'm working from this page: http://www.codeproject.com/Tips/257193/Easily-zip-unzip-files-using-Windows-Shell32
I was hoping to rewrite something similar in C# just because I…

Mike
- 399
- 2
- 9
- 19
1
vote
1 answer
How I can use Shell32.dll in Silverlight OOB
I'd like to get the target information from a shortcut file using my silverlight OOB app, so I'm going to make the following code to work in my silverlight OOB. It seems I have to used P/Invoke to use Shell32.dll, but I'm not sure how I can use…

user689072
- 134
- 8
1
vote
0 answers
get comments in .xlsm files properties in c#
Is there any way to get comments from .xlsm files using Shell32.dll?
This is code I am using
public string getFileCommentsProperty(string FileName)
{
string file_version="";
Shell32.Shell shell = new…

user1131926
- 1,311
- 2
- 18
- 32
1
vote
1 answer
Retrieve Recycle Bin Size using c#
I want to retrieve the Size of the Recycle Bin using c# windows application
I tried it with shell32.dll but it raises an exception
So any alternate or solution using shell32.dll will we acceptable

Pratik Sawant
- 71
- 1
- 2
0
votes
1 answer
Issue using IFileOperation interface
I want my app to delete a bunch of files using the IFileOperation interface.
I found this code and I have added it as class into my project.
Then I use it like this:
public static void DeleteFiles(string data_path)
{
string[] files =…

Simos Sigma
- 958
- 7
- 29
0
votes
0 answers
ShellExecuteEx using "properties" verb returns different properties window than Windows context menu
In my WPF application I am using ShellExecuteEx to show the properties window of a shortcut (.lnk file):
[DllImport("shell32.dll", CharSet = CharSet.Auto)]
static extern bool ShellExecuteEx(ref SHELLEXECUTEINFO lpExecInfo);
…

Ross Patterson
- 257
- 1
- 3
- 10
0
votes
2 answers
Control Panel Applet Execution Command Line Syntax
I'm trying to invoke Internet Options Control Panel applet through command line (Run dialogue). Specifically, the "Connections" tab.
I used the following syntax:
rundll32.exe shell32.dll,Control_RunDLL INETCPL.CPL,,4
Which worked fine. My question…

ThunderStormer
- 21
- 4
0
votes
1 answer
sell32.dll resign digital signature
I am trying to edit shell32.dll icons but when I replace it with the original one my windows did not boot the I found that the shell32.dll can't be edited unless you remove the digital sign by signtool from the windows SDK and I did this easily with…