|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| No
| Import Library
| -
| Header File
| shellapi.h
| Unicode
| WinNT
| Platform Notes
| None
|
|
|
SHFILEOPSTRUCT
Contains information that the SHFileOperation function uses to perform file operations.
typedef struct _SHFILEOPSTRUCT { // shfos
HWND hwnd;
UINT wFunc;
LPCSTR pFrom;
LPCSTR pTo;
FILEOP_FLAGS fFlags;
BOOL fAnyOperationsAborted;
LPVOID hNameMappings;
LPCSTR lpszProgressTitle;
} SHFILEOPSTRUCT, FAR *LPSHFILEOPSTRUCT;
Members
hwnd
Handle of the dialog box to use to display information about the status of the
operation.
wFunc
Operation to perform. This member can be one of the following values:
FO_COPY
| Copies the files specified by pFrom to the location specified by pTo.
| FO_DELETE
| Deletes the files specified by pFrom (pTo is ignored).
| FO_MOVE
| Moves the files specified by pFrom to the location specified by pTo.
| FO_RENAME
| Renames the files specified by pFrom.
|
pFrom
Pointer to a buffer that specifies one or more source file names. Multiple
names must be null-separated. The list of names must be double null-terminated.
pTo
Pointer to a buffer that contains the name of the destination file or
directory. The buffer can contain mutiple destination file names if the fFlags member specifies FOF_MULTIDESTFILES. Multiple names must be null-separated.
The list of names must be double null-terminated.
fFlags
Flags that control the file operation. This member can be a combination of the
following values:
FOF_ALLOWUNDO
| Preserves undo information, if possible.
| FOF_CONFIRMMOUSE
| Not implemented.
| FOF_FILESONLY
| Performs the operation only on files if a wildcard filename (*.*) is specified.
| FOF_MULTIDESTFILES
| Indicates that the pTo member specifies multiple destination files (one for each source file) rather
than one directory where all source files are to be deposited.
| FOF_NOCONFIRMATION
| Responds with "yes to all" for any dialog box that is displayed.
| FOF_NOCONFIRMMKDIR
| Does not confirm the creation of a new directory if the operation requires one
to be created.
| FOF_RENAMEONCOLLISION
| Gives the file being operated on a new name (such as "Copy #1 of...") in a
move, copy, or rename operation if a file of the target name already exists.
| FOF_SILENT
| Does not display a progress dialog box.
| FOF_SIMPLEPROGRESS
| Displays a progress dialog box, but does not show the filenames.
| FOF_WANTMAPPINGHANDLE
| Fills in the hNameMappings member. The handle must be freed by using the SHFreeNameMappings function.
|
fAnyOperationsAborted
Value that receives TRUE if the user aborted any file operations before they
were completed or FALSE otherwise.
hNameMappings
Handle of a filename mapping object that contains an array of SHNAMEMAPPING structures. Each structure contains the old and new path names for each file
that was moved, copied, or renamed. This member is used only if fFlags includes FOF_WANTMAPPINGHANDLE.
lpszProgressTitle
Pointer to a string to use as the title for a progress dialog box. This member
is used only if fFlags includes FOF_SIMPLEPROGRESS.
Remarks
If pFrom or pTo are unqualified names, the current directories are taken from the global
current drive and directory settings as managed by the GetCurrentDirectory and SetCurrentDirectory functions.
See Also
GetCurrentDirectory, SetCurrentDirectory, SHFileOperation, SHFreeNameMappings, SHNAMEMAPPING
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|