13 Security Lab

SHFileOperation Constants 본문

Computer Science/Windows Externals

SHFileOperation Constants

Maj0r Tom 2015. 4. 29. 14:11

SHFileOperation

 

 

wFunc

Type: UINT

A value that indicates which operation to perform. One of the following values:

FO_COPY

Copy the files specified in the pFrom member to the location specified in the pTo member.

FO_DELETE

Delete the files specified in pFrom.

FO_MOVE

Move the files specified in pFrom to the location specified in pTo.

FO_RENAME

Rename the file specified in pFrom. You cannot use this flag to rename multiple files with a single function call. Use FO_MOVE instead.

// SHFileOperation wFunc and wFunc values public const uint FO_MOVE = 0x0001; public const uint FO_COPY = 0x0002; public const uint FO_DELETE = 0x0003; public const uint FO_RENAME = 0x0004; public const ushort FOF_MULTIDESTFILES = 0x0001; public const ushort FOF_CONFIRMMOUSE = 0x0002; public const ushort FOF_SILENT = 0x0004; // don't create progress/report public const ushort FOF_RENAMEONCOLLISION = 0x0008; public const ushort FOF_NOCONFIRMATION = 0x0010; // Don't prompt the user. public const ushort FOF_WANTMAPPINGHANDLE = 0x0020;// Fill in SHFILEOPSTRUCT.hNameMappings // Must be freed using SHFreeNameMappings public const ushort FOF_ALLOWUNDO = 0x0040; public const ushort FOF_FILESONLY = 0x0080; // on *.*, do only files public const ushort FOF_SIMPLEPROGRESS = 0x0100; // means don't show names of files public const ushort FOF_NOCONFIRMMKDIR = 0x0200; // don't confirm making any needed dirs public const ushort FOF_NOERRORUI = 0x0400; // don't put up error UI public const ushort FOF_NOCOPYSECURITYATTRIBS = 0x0800; // dont copy NT file Security Attributes public const ushort FOF_NORECURSION = 0x1000; // don't recurse ushorto directories.

 

Comments