🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
4 messages
4 total messages Started by LarryJ Thu, 26 Jul 2007 04:15
API to locate write safe folders with Vista
#1519
Author: LarryJ
Date: Thu, 26 Jul 2007 04:15
7 lines
1293 bytes
Previously I saw a list posted here of two API that return folders that are 
safe for writing under Windows Vista. I can't find them now, can someone 
please post these API again. I am working on my software security and I need 
a folder path where I can create and write to a hidden file under Vista.

Thanks
larry 
Re: API to locate write safe folders with Vista
#1520
Author: LarryJ
Date: Thu, 26 Jul 2007 09:51
12 lines
1450 bytes
I found GetFolderPath( ) and fGetSpecialFolder( ) but I can't locate a list 
of the required #define files so it does not compile. This generates a call 
to an undefined function error. How can I make these work in BCB6.0?


WideString   fname1 = Environment::GetFolderPath(CSIDL_APPDATA);

 WideString  fname2 = fGetSpecialFolder(CSIDL_APPDATA);


Thanks
Larry 
Re: API to locate write safe folders with Vista
#1521
Author: LarryJ
Date: Thu, 26 Jul 2007 09:53
3 lines
1132 bytes
I meant #include files in the last post not #define files. sorry.

Larry.
Re: API to locate write safe folders with Vista
#1522
Author: Remy Lebeau (TeamB)
Date: Thu, 26 Jul 2007 10:41
10 lines
1073 bytes
"LarryJ" <LarryJ33@austin.rr.com> wrote in message
news:46a86e86$1@newsgroups.borland.com...

> How can I make these work in BCB6.0?

Use SHGetSpecialFolderLocation() instead.


Gambit
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads