Search code examples
windowswinapiwindows-explorershell-extensions

Windows Explorer Shell Extension: create file and enter "rename" mode


For a shell extension (UI is similar to "New/" context menu), I need to create a file, select it and enter "rename" mode, so the user can adjust the default name.

Q: How do I enter "rename" mode for a file?


Solution

  • The correct way to do this is to use IShellView::SelectItem with the SVSI_EDIT flag.