Exemple #1
0
 /// <summary>Renames a child of this folder.</summary>
 /// <param name="relativeChildPidl">The relative child IDL.</param>
 /// <param name="newName">The new name.</param>
 /// <param name="displayType">The display type.</param>
 /// <param name="parentWindow">The parent window to use if any messages need to be shown the user.</param>
 /// <returns>A reference to the newly named item.</returns>
 public ShellItem RenameChild(PIDL relativeChildPidl, string newName, ShellItemDisplayString displayType, HWND parentWindow)
 {
     iShellFolder.SetNameOf(parentWindow, relativeChildPidl, newName, (SHGDNF)displayType, out PIDL newPidl);
     return(this[newPidl]);
 }
Exemple #2
0
 /// <summary>Renames a child of this folder.</summary>
 /// <param name="relativeChildPidl">The relative child IDL.</param>
 /// <param name="newName">The new name.</param>
 /// <param name="displayType">The display type.</param>
 /// <param name="parentWindow">The parent window to use if any messages need to be shown the user.</param>
 /// <returns>A reference to the newly named item.</returns>
 public ShellItem RenameChild(PIDL relativeChildPidl, string newName, ShellItemDisplayString displayType, System.Windows.Forms.IWin32Window parentWindow)
 {
     iShellFolder.SetNameOf(IWin2Ptr(parentWindow), relativeChildPidl, newName, (SHGDNF)displayType, out PIDL newPidl);
     return(this[newPidl]);
 }
Exemple #3
0
 public int SetNameOf(IntPtr hwnd, IntPtr pidl, string pszName, ShellAPI.SHGNO uFlags, out IntPtr ppidlOut)
 {
     checkDisposed();
     return(_iShellFolder.SetNameOf(hwnd, pidl, pszName, uFlags, out ppidlOut));
 }