[Lazarus] Getting common documents folders

Richard Mace richard.mace at gmail.com
Thu May 28 10:35:19 CEST 2015


Perfect

Thank you
On 27 May 2015 22:39, "silvioprog" <silvioprog at gmail.com> wrote:

> On Wed, May 27, 2015 at 6:21 PM, Michael Van Canneyt <
> michael at freepascal.org> wrote:
>>
>>
>> On Wed, 27 May 2015, Glaucos Ginez wrote:
>>
>>  Hi, you can use GetEnvironmentVariable('LocalAppData')
>>>
>>> 2015-05-27 14:53 GMT-04:00 Richard Mace <richard.mace at gmail.com>:
>>>       Hi All,
>>> I need to use/get a common windows folder (in Win XP,Vista,7,8 and 8.1)
>>> that all users will have
>>> read/write access to by default.
>>> I think it is CSIDL_COMMON_DOCUMENTS
>>>
>>> Any ideas how I can code this in Lazarus?
>>>
>>
>> You can use the shfolder unit. It contains the necessary constants and
>> calls to retrieve the location.
>>
>> Michael.
>
>
> Here in Brazil, on Lazarus-BR group, an member (Joao Marcelo Vaz) sent an
> very nice tip:
>
> uses
>   windirs;
>
> ...
>
>   ShowMessage(GetWindowsSpecialDir(CSIDL_COMMON_DOCUMENTS));
>
> =)
>
> --
> Silvio Clécio
> My public projects - github.com/silvioprog
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150528/d3c73f5f/attachment-0003.html>


More information about the Lazarus mailing list