Re: FOF_NO_UI Constant
- From: "Karl E. Peterson" <karl@xxxxxxxx>
- Date: Tue, 11 Mar 2008 18:30:19 -0700
GeoffG wrote:
1. What is the hex value of the FOF_NO_UI constant?
The constant is listed on:
http://msdn2.microsoft.com/en-us/library/bb759795(VS.85).aspx
Okay, I installed the friggin Vista SDK, and was right -- it's there. This is
indented, to highlight wordwrap:
// SHFILEOPSTRUCT.fFlags and IFileOperation::SetOperationFlags() flag values
#define FOF_MULTIDESTFILES 0x0001
#define FOF_CONFIRMMOUSE 0x0002
#define FOF_SILENT 0x0004 // don't display progress UI (confirm
prompts may be displayed still)
#define FOF_RENAMEONCOLLISION 0x0008 // automatically rename the source
files to avoid the collisions
#define FOF_NOCONFIRMATION 0x0010 // don't display confirmation UI,
assume "yes" for cases that can be bypassed, "no" for those that can not
#define FOF_WANTMAPPINGHANDLE 0x0020 // Fill in
SHFILEOPSTRUCT.hNameMappings
// Must be freed using
SHFreeNameMappings
#define FOF_ALLOWUNDO 0x0040 // enable undo including Recycle
behavior for IFileOperation::Delete()
#define FOF_FILESONLY 0x0080 // only operate on the files (non
folders), both files and folders are assumed without this
#define FOF_SIMPLEPROGRESS 0x0100 // means don't show names of files
#define FOF_NOCONFIRMMKDIR 0x0200 // don't dispplay confirmatino UI
before making any needed directories, assume "Yes" in these cases
#define FOF_NOERRORUI 0x0400 // don't put up error UI, other UI may
be displayed, progress, confirmations
#if (_WIN32_IE >= 0x0500)
#define FOF_NOCOPYSECURITYATTRIBS 0x0800 // dont copy file security attributes
(ACLs)
#define FOF_NORECURSION 0x1000 // don't recurse into directories for
operations that would recurse
#define FOF_NO_CONNECTED_ELEMENTS 0x2000 // don't operate on connected elements
("xxx_files" folders that go with .htm files)
#define FOF_WANTNUKEWARNING 0x4000 // during delete operation, warn if
nuking instead of recycling (partially overrides FOF_NOCONFIRMATION)
#endif // (_WIN32_IE >= 0x500)
#if (_WIN32_WINNT >= 0x0501)
#define FOF_NORECURSEREPARSE 0x8000 // deprecated; the operations engine
always does the right thing on FolderLink objects (symlinks, reparse points, folder
shortcuts)
#endif // (_WIN32_WINNT >= 0x501)
#define FOF_NO_UI (FOF_SILENT | FOF_NOCONFIRMATION |
FOF_NOERRORUI | FOF_NOCONFIRMMKDIR) // don't display any UI at all
2. Where should I look for a list of Win32 API constant values on the
Microsoft website?
You need a good tool that can search all the files in a directory. (I use TextPad.)
Install the SDK, then search the "headers" folder. The Vista SDK can be found here:
http://msdn2.microsoft.com/en-us/windowsvista/aa904955.aspx
This is definitely a different beast than the PlatformSDK, which is more geared
towards XP/2003, and less towards .NET:
http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en
Later... Karl
--
..NET: It's About Trust!
http://vfred.mvps.org
.
- Follow-Ups:
- Re: FOF_NO_UI Constant
- From: GeoffG
- Re: FOF_NO_UI Constant
- References:
- FOF_NO_UI Constant
- From: GeoffG
- FOF_NO_UI Constant
- Prev by Date: Re: FOF_NO_UI Constant
- Next by Date: Re: GetWindow - Infinite Loop?
- Previous by thread: Re: FOF_NO_UI Constant
- Next by thread: Re: FOF_NO_UI Constant
- Index(es):
Relevant Pages
|
Loading