IFileOperationProgressSinkPostNewItem Method
Performs caller-implemented actions after the new item is created
Namespace: DevCase.Win32.InterfacesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
Sub PostNewItem (
flags As TransferSourceFlags,
destFolder As IShellItem,
newName As String,
templateName As String,
attribs As FileAttributes,
hrNew As HResult,
newItem As IShellItem
)
Dim instance As IFileOperationProgressSink
Dim flags As TransferSourceFlags
Dim destFolder As IShellItem
Dim newName As String
Dim templateName As String
Dim attribs As FileAttributes
Dim hrNew As HResult
Dim newItem As IShellItem
instance.PostNewItem(flags, destFolder,
newName, templateName, attribs, hrNew,
newItem)
No code example is currently available or this language may not be supported.
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.