Jonas Raoni wrote:
> On 5/27/05, Vahan Yoghoudjian <[EMAIL PROTECTED]> wrote:
>>    Any opinions?
> 
> There's the application data folder, I dont think admins will block
> this folder :)

Normally they wouldn't. They wouldn't need to since the folder is 
already blocked by default. The Application Data folder is a per-user 
folder. Each user has one of his or her own, and it is not accessible to 
anyone else (except administrators). It's analogous to the 
HKey_Current_User registry key.

> I think you'll need these units: ShlObj, ShellApi, Windows
> 
> var
>   Path: array[0..MAX_PATH-1] of Char;
>   Folder: PItemIDList;
> ----------
> SHGetSpecialFolderLocation( 0, CSIDL_APPDATA, Folder );
> SHGetPathFromIDList( Folder, Path );

Memory leak. Don't forget to free the PIDL. Or just call 
ShGetSpecialFolderPath, which returns a string directly instead of 
messing around with PIDLs at all. See the link below.

http://www.cs.wisc.edu/~rkennedy/my-documents

-- 
Rob


-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to