MoveFileFromAppW function (fileapifromapp.h)
Moves an existing file or a directory, including its children. The behavior of this function is identical to MoveFile, except that this function adheres to the Universal Windows Platform app security model.
Syntax
WINSTORAGEAPI BOOL MoveFileFromAppW(
LPCWSTR lpExistingFileName,
LPCWSTR lpNewFileName
) noexcept;
Parameters
lpExistingFileName
The current name of the file or directory on the local computer.
For information about opting out of the MAX_PATH limitation without prepending "\\?\", see the "Maximum Path Length Limitation" section of Naming Files, Paths, and Namespaces for details.
lpNewFileName
The new name for the file or directory. The new name must not already exist. A new file may be on a different file system or drive. A new directory must be on the same drive.
For information about opting out of the MAX_PATH limitation without prepending "\\?\", see the "Maximum Path Length Limitation" section of Naming Files, Paths, and Namespaces for details.
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1803 |
Header | fileapifromapp.h |