PDA

Click to See Complete Forum and Search --> : Public Const FOF_NOCONFIRMATION =


bransam
Jan 23rd, 2000, 12:15 PM
Hi,

What should the value be here
Public Const FOF_NOCONFIRMATION =?
When trying to send files to the recycle bin?

Thanks,

Dave.

Clunietp
Jan 23rd, 2000, 12:21 PM
I pulled these out of Shellapi.h:

#define FOF_MULTIDESTFILES 0x0001
#define FOF_CONFIRMMOUSE 0x0002
#define FOF_SILENT 0x0004 // don't create progress/report
#define FOF_RENAMEONCOLLISION 0x0008
#define FOF_NOCONFIRMATION 0x0010 // Don't prompt the user.
#define FOF_WANTMAPPINGHANDLE 0x0020 // Fill in SHFILEOPSTRUCT.hNameMappings
// Must be freed using SHFreeNameMappings
#define FOF_ALLOWUNDO 0x0040
#define FOF_FILESONLY 0x0080 // on *.*, do only files
#define FOF_SIMPLEPROGRESS 0x0100 // means don't show names of files
#define FOF_NOCONFIRMMKDIR 0x0200 // don't confirm making any needed dirs
#define FOF_NOERRORUI 0x0400 // don't put up error UI
#define FOF_NOCOPYSECURITYATTRIBS 0x0800 // dont copy NT file Security Attributes


Just change 0x0010 to &H10, etc.

Enjoy!

Tom