Search code examples
c#file-ionetwork-printers

Get file information on Windows right click menu item click in c#


I have a printershare like application that will send files over network. When a file is selected (in Windows Explorer via a right click) our application menu item will be present. On Clicking that it should display a form with the selected document/file information in order to process the print function.

How am i able to get the file info in this scenario. Is there any windows api that will return the selected file information?


Solution

  • There are a code sample project called Microsoft All-In-One Code Framework. Its code samples target programming tasks that are frequently asked by developers. The team is working on a series of .NET 4 managed Shell extension code samples for Context Menu Handler, Property Sheet Handler, Icon handler, Data handler, Drop handler, Drag-and-drop handler, Thumbnail Handler, Icon Handler, Icon Overlay Handler, and so on. see CSShellExtContextMenuHandler.

    See these linkes also: