CoreShellFolderSetNameOf Method (IntPtr, IntPtr, String, SHGDNF, Boolean) |
Sets the display name of a file object or subfolder, changing the item identifier in the process.
Namespace:
ShellBoost.Core.WindowsShell
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax public ShellItemIdList SetNameOf(
IntPtr hwnd,
IntPtr pidl,
string name,
SHGDNF flags = SHGDNF.SHGDN_NORMAL,
bool throwOnError = true
)
Parameters
- hwnd
- Type: SystemIntPtr
A handle to the owner window of any dialog or message box that the client displays. - pidl
- Type: SystemIntPtr
The pidl. - name
- Type: SystemString
The new display name. - flags (Optional)
- Type: ShellBoost.Core.WindowsShellSHGDNF
The options. - throwOnError (Optional)
- Type: SystemBoolean
true to throw error; otherwise false.
Return Value
Type:
ShellItemIdListThe identifier list of the renamed item.
See Also