Hi,
I have this programming question that's been bothering me for some time now. I'm wondering how is it possible to write applications that change the Windows UI? More precisely how could you write an application that modifies the Windows Taskbar or the Windows Desktop? I'm really interested in this topic but cannot find a lot of infor...
Does anyone know how to correct for this behavior?
Currently, when our installer installs our application, it obtains an IShellLink, then loads it up with the data necessary for our shortcut icon (in the start menu & desktop), and then uses IPersistFile::Save to write out the shortcut.
The problem is that the path specified for the ico...
I got a bunch of Pictures and Videos in a directory and needs to be displayed in the WPF application, I am thinking about displaying the Win7 Large Icon itself as the preview image. Because that will save me the work of grabbing an appropriate frame from the video file since Windows is doing that job pretty well already.
Any code snippet...
Could someone give an example on how to use the shell function SHOpenFolderAndSelectItems from C#? I don't quite get how to use these kind of functions and couldn't find it on pinvoke.net... =/
Say I have three files called
X:\Pictures\a.jpg
X:\Pictures\s.jpg
X:\Pictures\d.jpg
I then want to open up the X:\Pictures folder with a.jpg...
I'm kind of curious about what layer writing a UI platform to the level of Win32 or the X Windowing System would fall in the grand scheme of an operating system. What layers below do they primarily make use of, is it heavily based on direct communication with the graphics card driver (I can't imagine going though a rendering pipeline lik...
I have a Visual Studio 2008 C++ ATL project that is a namespace extension for Windows Explorer.
In the tool bar rebar for Windows Explorer in Windows XP, there is an icon labeled "views". In a normal view, it creates a drop-down menu that allows the user to select "Thumbnails", "Tiles", "Icons", "List", or "Details" as the view type.
...
The basic idea with Windows shell programming is that you can associate a given file type (extension) with what MS is currently calling a progid (e.g. Company.Type.Ver):
HKCR\.txt
@=Acme.Text.1
HKCR\Acme.Text.1
@=This is the progid for text file associations for Acme
And then Acme Corp can put as many shell verbs as they want as s...
What's the exact way to properly quote a single command line argument?
For example, I have some random text in a variable $X. I need to quote it in a way so that if I call
system("program.exe " + $X_QUOTED);
then argv[1] of my program.exe has to match original unquoted $X
imagine I have this program.exe:
int main(const char **argv, ...
Hello guys, I would like to get the coordinates of the icons in a specific folder.
I have searched a shell method which does that, but I did not find any.
someone can please reference me or tell me what I should start looking for?
p.s-
To the desktop I know how to take the coordinates, but to other folders I do not.
Thanks, Aviad S.
...
I really liked the oxygen appearance of KDE SC 4. I wrote a program to apply these icons to windows. The program is written in NSIS, and is currently nearly fully functional. However, the only way I found to make Windows aware of the icon changes is to kill explorer.exe, delete the icon cache, and respawn explorer.exe. SHChangeNotify wit...
I'm looking for the least painful way (that is, with the least code) to implement DragAcceptFiles on the main window of a C# project.
I've been searching on the net, and it looks like I'll have to DllImport DragAcceptFiles, and override WndProc to catch and handle WM_DROPFILES messages.
Doesn't the .net-framework provide this somewhere...
Is there any way I can extend or modify the behavior of Windows Explorer click?
For example, I want to modify the the click event. On clicking a drive, I should be able to connect to an FTP server instead of opening the drive. The drive will be a mounted drive.
So what I want to do is modify the default behavior of Windows Explorer Cli...
I know how to write shell extesions in python.
The drawbacks are
it does not work on 64 bit Windows
I am unsure how creating a python process everytime something “happens” reduces performance.
I know how to write shell extensions using .Net (C#)
The drawbacks are
discouraged by MS
I am unsure how this reduces performance. (does it?...
Solution Found, See Below
Hi,
I have a situation where I want to perform special processing on some Windows shell special folders (those corresponding to values in the CSIDL enum.) (My solution must be WinXP compatible.) The problem I'm having is that when I encounter IShellFolders as I work my way down the heirarchy, I cannot find a...
When launching a script-type python file from Windows you get a windows shell type window where the script runs. How can the script determine and also set/control the Window Size, Screen Buffer Size and Window Position of said window?. I suspect this can be done with the pywin32 module but I can't find how.
...
I am monitoring the creation/destruction of Windows Explorer and Internet Explorer windows using DShellWindowsEvents.WindowRegistered and DShellWindowsEvents.WindowRevoked. The WindowRegistered event gives you the cookie value associated with the window (documentation). If I want to get the IDispatch interface of a given window, the docu...
Is there a way (via shell extension or registry setting) to tell Windows Explorer that it shouldn't read files in the folder being shown in order to extract metadata or create thumbnails?
The problem is that when the user navigates to the folder, Windows Explorer attempts to read all files in the folder and extract certain metadata fro...
There is extensive drag and drop support in VirtualTreeView by Mike Lischke, and I am using TVirtualStringTree, which has some on-drag-and-drop events, but I can not figure out how to get it to accept a shell drag-and-drop of some files from the windows explorer shell, into my application. I want to load the files, when they are dragged...
Hi,
I'm working on Windows XP and I need to make a script that would compare 2 files (1 on a server and 1 on a client).Basically, I need my script to check if the file from the client is different from the server version and replace the client version if it finds a difference (in the file itself, not only the modification date).
Could yo...
How can I get an IShellItem object for a non-existent file (or directory)?
SHCreateItemFromParsingName and SHCreateItemFromRelativeName fail with 0x80070002 (file not found) and
ILCreateFromPath returns a NULL pidl.
First I thought it might be impossible, but for example IFileSaveDialog creates such an IShellItem for its result (if ...