🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: API EncryptFile, DecryptFile Function

#12993
From: Marcello Scala
Date: Sun, 02 Nov 2003 21:17
37 lines
2245 bytes
Thanks Bob for your precious help.

Thanks 1000 times! :)

"Bob Gonder" <notbg@notmindspring.invalid> ha scritto nel messaggio
news:rafaqvkmkop2qupllrq8lphoor2mmr7293@4ax.com...
> Marcello Scala wrote:
>
>
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/bas
e/encryptfile.asp
>
> >Use this function and you'll see that it doesn't work.
>
> What about it "doesn't work"?
> I assume you mean it returns FALSE.
> What does GetLastError() tell you about the problem?
>
> Are you using XP or 2000 Professional?  If not, it "won't work".
>
> >I want know if there is any parameters to set before call the function.
>
> It looks like if you don't do anything special, Windows will use a
> "default key" to encrypt the file.
> If you don't want the default, then I think you need to use
> SetUserFileEncryptionKey() and perhaps more of the functions at
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/handling_encrypted_files_and_directories.asp
>
> >For this i want a simple source.
>
> Setting keys looks needlessly complex to me, so I don't think you are
> going to get "a simple source" for it.
>
>
>
Technical Details
Message-ID: <3fa5747c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fa4de7d@newsgroups.borland.com> <3fa506eb$1@newsgroups.borland.com> <3fa52d20@newsgroups.borland.com> <3fa5371b$1@newsgroups.borland.com> <rafaqvkmkop2qupllrq8lphoor2mmr7293@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,1d61b57c27398563
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-02 13:39:05 PST
From: "Marcello Scala" <mscala@email.it>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3fa4de7d@newsgroups.borland.com> <3fa506eb$1@newsgroups.borland.com> <3fa52d20@newsgroups.borland.com> <3fa5371b$1@newsgroups.borland.com> <rafaqvkmkop2qupllrq8lphoor2mmr7293@4ax.com>
Subject: Re: API EncryptFile, DecryptFile Function
Date: Sun, 2 Nov 2003 22:17:35 +0100
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 80.180.222.85
Message-ID: <3fa5747c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067807868 80.180.222.85 (2 Nov 2003 13:17:48 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail