🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9671

Re: Accessing Registry

#9671
From: Brian Lonnon
Date: Tue, 29 Jun 2004 10:00
37 lines
2007 bytes
Hi

I am using SHFileOp and NOT using FOF_ALLOWUNDO, but deleted files ARE appearing in the recycle bin!! Here is code I'm using:

SHFILEOPSTRUCT op;
 op.hwnd = Handle;
 op.wFunc = FO_DELETE;
 //no dlg, no 'are you sure'
 op.fFlags = FOF_SILENT | FOF_NOCONFIRMATION;
 //needed to get double terminated string!
 fd.SetLength(fd.Length() + 1);
 fd[fd.Length()] = 0;
 op.pFrom = fd.c_str();
 SHFileOperation(&op);

Thanks

Brian

"Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> wrote:
>
>"Brian Lonnon" <lonnon@screaming.net> wrote in message
>news:40e08911@newsgroups.borland.com...
>
>> What I want to do is while my program is running, it
>> deletes various data files. This means they go to the
>> confounded recycle bin and stay there.
>
>How are you deleting them to begin with?  DeleteFile() does not send files
>to the Recycle Bin.  SHFileOperation() can, but only if the FOF_ALLOWUNDO
>flag is specified.
>
>
>Gambit
>
>
Technical Details
Message-ID: <40e13dc0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40dde673$1@newsgroups.borland.com> <40de0478$1@newsgroups.borland.com> <40de8f93$1@newsgroups.borland.com> <40df75c1$1@newsgroups.borland.com> <40e08911@newsgroups.borland.com> <40e08f94@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d95394da9c6bddf4
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Brian Lonnon" <lonnon@tiscali.co.uk>
Sender: "Brian Lonnon" <lonnon@tiscali.co.uk>
Reply-To: "Brian Lonnon" <lonnon@tiscali.co.uk>
Subject: Re: Accessing Registry
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 194.207.237.28     
X-Forwarded-For: 10.121.64.252
References: <40dde673$1@newsgroups.borland.com> <40de0478$1@newsgroups.borland.com> <40de8f93$1@newsgroups.borland.com> <40df75c1$1@newsgroups.borland.com> <40e08911@newsgroups.borland.com> <40e08f94@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <40e13dc0$1@newsgroups.borland.com>
Date: 29 Jun 2004 03:00:32 -0700
X-Trace: newsgroups.borland.com 1088503232 207.105.83.66 (29 Jun 2004 03:00:32 -0700)
Lines: 38
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail