Re: FOF_NO_UI Constant



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


.



Relevant Pages

  • Re: New SBS2003 setup quagmire
    ... Please feel free to use this newsgroup. ... This newsgroup only focuses on SBS technical issues. ... Adding my users went without a hitch and the respective folders ... |> SBS CD1 is installed stop the install temporarily and format the D drive ...
    (microsoft.public.windows.server.sbs)
  • Re: Why New Installs Not Accessible for *All* Users?
    ... Am I doing something wrong when I install? ... sections of the Windows registry or protected Windows system folders. ... limited accounts, you can fix it to allow limited users to access the ...
    (microsoft.public.windowsxp.general)
  • Re: update troubles
    ... ACAD program seems to be compatible since a few folders and the data inside ... It's possible that your ACAD program is not compatible with IE8. ... Customers must be running Windows XP or Windows Vista in a non-domain ... to install IE8, ...
    (microsoft.public.windowsxp.general)
  • Update: A three hour tour....a three hour tour.....
    ... PC2 has folders on a second drive shared with Everyone having full control ... When I install NOD32 or AVG things go all to hell. ... PC1 cannot access any shared folders on PC2. ... I called Eset at 1-619-876-5400 after not hearing ANYTHING from their email ...
    (microsoft.public.windowsxp.general)
  • Re: Best Kept Hacking Secrets Everyone Should Know
    ... > They install a Trojan Horse which disables your anti-virus ... > Windows keeps files and folders hidden by default so you ... > you all the files and software applications now sitting on ...
    (alt.computer.security)

Loading