IFileOperationProgressSinkPostNewItem Method

Performs caller-implemented actions after the new item is created

Definition

Namespace: DevCase.Win32.Interfaces
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
void PostNewItem(
	TransferSourceFlags flags,
	IShellItem destFolder,
	string newName,
	string templateName,
	FileAttributes attribs,
	HResult hrNew,
	IShellItem newItem
)

Parameters

flags  TransferSourceFlags
bitwise value that contains flags that were used during the creation operation.

Some values can be set or changed during the creation operation.

destFolder  IShellItem
Pointer to an IShellItem that specifies the destination folder to which the new item was added.
newName  String
Pointer to the file name of the new item, for instance Newfile.txt. This is a null-terminated, Unicode string.
templateName  String
Pointer to the name of the template file (for example Excel9.xls) that the new item is based on, stored in one of the following locations:

- CSIDL_COMMON_TEMPLATES. The default path for this folder is %ALLUSERSPROFILE%\Templates.

- CSIDL_TEMPLATES. The default path for this folder is %USERPROFILE%\Templates.

- %SystemRoot%\shellnew

This is a null-terminated, Unicode string used to specify an existing file of the same type as the new file, containing the minimal content that an application wants to include in any new file.

This parameter is normally NULL to specify a new, blank file.

attribs  FileAttributes
The file attributes applied to the new item.
hrNew  HResult
The return value of the creation operation.

Note that this is not the HResult returned by NewItem(IShellItem, FileAttributes, String, String, IFileOperationProgressSink), which simply queues the creation operation. Instead, this is the result of the actual creation.

newItem  IShellItem
Pointer to an IShellItem that represents the new item.

See Also