Article View: borland.public.cppbuilder.nativeapi
Article #9675Re: Accessing Registry
From: Brian Lonnon
Date: Tue, 29 Jun 2004 13:58
Date: Tue, 29 Jun 2004 13:58
23 lines
1853 bytes
1853 bytes
"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 > > Hi, Thanks for the help - I have found the problem - the registry has the key "NukeOnDelete". If this key is there and is set to 0 OR 1, files are not deleted directly!!! Deleting that key altogether causes SHFileOp to delete rather than send to recycle bin. Aren't Microsoft wonderful!!!!!!!!!" Brian
Technical Details
Message-ID:
<40e17569$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<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: <40e17569$1@newsgroups.borland.com> Date: 29 Jun 2004 06:58:01 -0700 X-Trace: newsgroups.borland.com 1088517481 207.105.83.66 (29 Jun 2004 06:58:01 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail