Skip to content

Latest commit

 

History

History
78 lines (55 loc) · 2.2 KB

nf-fileapifromapp-movefilefromappw.md

File metadata and controls

78 lines (55 loc) · 2.2 KB
UID tech.root title ms.date targetos description req.assembly req.construct-type req.ddi-compliance req.dll req.header req.idl req.include-header req.irql req.kmdf-ver req.lib req.max-support req.namespace req.redist req.target-min-winverclnt req.target-min-winversvr req.target-type req.type-library req.umdf-ver req.unicode-ansi topic_type api_location api_name api_type f1_keywords dev_langs
NF:fileapifromapp.MoveFileFromAppW
fs
MoveFileFromAppW
03/23/2021
Windows
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.
function
fileapifromapp.h
Windows 10, version 1803
apiref
Kernel32.dll
MoveFileFromAppW
MoveFileFromApp
DLLExport
MoveFileFromAppW
fileapifromapp/MoveFileFromAppW
c++

-description

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.

-parameters

-param 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.

-param 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.

-returns

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.

-remarks

-see-also