explorer

How to use filegroupdescriptor to drag file to explorer c#

假如想象 提交于 2019-11-28 11:21:45
I would like to drag and drop an element of a listbox to explorer. When the drag and drop is started, I need to prepare the file on demand and save it to a memory stream. Can you provide me with an example on how to do it using the FileGroupDescriptor data structure? Thanks. Andrea you can find an example on how to do this here Transferring Virtual Files to Windows Explorer in C# ; also some good info on the topic here: Outlook Drag and Drop in C# In short what you have to do is to init the DataObject with FILEDESCRIPTOR (you can find its declaration details on pinvoke.net) structure(s) for

When I create views from Clearcase explorer, both development and the integration views get created as snapshot

自作多情 提交于 2019-11-28 10:59:04
问题 I do not get the option at all to choose for the views to be snapshot or dynamic. What I would want is the development view to be snapshot and the integration view to be dynamic. Why is it that I am not prompted to let me choose my views to be snapshot/dynamic? 回答1: May be you have ClearCase LT, which only provides snapshot view ? As mentioned in the ClearCase mkview help page: Specifying the kind of view Default ClearCase: Dynamic view. ClearCase LT: Snapshot view Anyway, you can try to

Rules for “Date Modified” of folders in Windows Explorer

谁说我不能喝 提交于 2019-11-28 07:08:08
How does Windows Explorer determine the "Date Modified" field for folders? [Aside: I know this is asking from an explorer-specific perspective, but the behaviour could be useful to coding search/sort type activities] Is there a definitive description of this anywhere - searches of Microsoft, MSDN, Google & Stack Overflow have been unsuccessful. Personal experiments seem to suggest that in a tree of folders: when a folder/file is added/deleted in a folder, the containing folder's date modified is updated. when the content of a file is modified, the containing folder is unaffected However, I'm

How do you show the Windows Explorer context menu from a C# application?

倾然丶 夕夏残阳落幕 提交于 2019-11-27 18:51:41
I have a file listing in my application and I would like to allow people to right-click on an item and show the Windows Explorer context menu. I'm assuming I would need to use the IContextMenu interface, but I'm not really sure where to start. Rowland Shaw There's a very good tutorial (albeit in C++) about hosting an IContextMenu on Raymond Chen's blog in 11 parts (in order): Initial foray Displaying the context menu Invocation location Key context Handling menu messages Displaying menu help Invoking the default verb Optimizing for the default command Adding custom commands Composite

Problem with Killing windows explorer?

痞子三分冷 提交于 2019-11-27 18:44:04
问题 I need to kill windows explorer's process (explorer.exe), for that lets say i use a native NT method TerminateProcess It works but the problem is that the explorer starts again, may be windows is doing that, anyway. When i kill explorer.exe with windows task manager, it doesn't come back, its stays killed. I want to do whatever taskmanager is doing through my application. Edit: Thanks to @sblom i solved it, a quick tweak in the registry did the trick. Although its a clever hack, apparently

How extend Windows 8 Explorer Ribbon with custom controls?

故事扮演 提交于 2019-11-27 18:23:41
问题 As example, I want make simple resizer, where you can select image in explorer and set new dimensions. 回答1: It is not possible to modify the Windows Explorer 8 ribbon. However, add-ins will not be able to plug into the ribbon UI. This was a difficult engineering choice for us and we expect that many of you will read this and suggest we add the capability--of course if we could get it right this time around we would have done that. A big part of this blog is sharing these choices--tradeoffs-

How to programmatically restart windows explorer process

谁说胖子不能爱 提交于 2019-11-27 15:13:19
I'm working on a windows shell extension, and unfortunately, when making changes to the DLL, I must restart windows explorer (since it keeps the DLL in memory). I found this program from Dino Esposito, but it doesn't work for me. void SHShellRestart(void) { HWND hwnd; hwnd = FindWindow("Progman", NULL ); PostMessage(hwnd, WM_QUIT, 0, 0 ); ShellExecute(NULL, NULL, "explorer.exe", NULL, NULL, SW_SHOW ); return; } Does any one have something they can share to do this? P.S. I realize that I can go to task manager and kill the explorer process, but I just want to do it the lazy way. Besides, this

How to launch the default (native) application for a given file from Java?

本秂侑毒 提交于 2019-11-27 14:13:13
I am displaying a list of files; i.e. xls, doc, pdf, odt etc., in my Java application (Eclipse RCP). When the user clicks on the file, I want to launch the appropriate (according to what the OS thinks) native application, just like it happens in Windows Explorer or the Finder. And while I am here: It would be nice to also display the same icons that Finder or Explorer use for the different file types. Is there a library or Eclipse plugin for this? Joseph Gordon What you want is java.awt.Desktop : Desktop.getDesktop().open( file ); I have found an API in Eclipse's SWT now that seems to do the

How can I use a meter-style progress bar?

巧了我就是萌 提交于 2019-11-27 13:45:33
In Vista/7, the Windows Explorer shell window makes use of a special kind of static progress bar to display hard drive space. With default styles, this bar is blue colored and non-animated. It also turns red colored when it gets close to being full (low disk space). Using messaging, I can tell the Windows Forms ProgressBar control to update its state to Paused and Error (yellow and red colored, respectively), which works fine, but these are still specific to progress. In the Windows User Experience Guidelines , it specifically points out this "meter" variant of the Progress Bar: This pattern

Gracefully Exit Explorer (Programmatically)

断了今生、忘了曾经 提交于 2019-11-27 12:03:20
How do you gracefully close Explorer programmatically? By that I mean, how do you invoke this function programmatically: Edit: Typo in the picture, it should say "Ctrl-Shift-Right-Click" instead of "Shift-Click". I debugged this out of curiosity. All it does is post a message to one of explorer's windows: BOOL ExitExplorer() { HWND hWndTray = FindWindow(_T("Shell_TrayWnd"), NULL); return PostMessage(hWndTray, 0x5B4, 0, 0); } Of course this is an undocumented WM_USER message so the behavior could quite possibly change in the future. @Luke: first of all, thanks for the detailed analysis and the