<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, May 27, 2015 at 6:21 PM, Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
On Wed, 27 May 2015, Glaucos Ginez wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hi, you can use GetEnvironmentVariable('LocalAppData')<br>
<br>
2015-05-27 14:53 GMT-04:00 Richard Mace <<a href="mailto:richard.mace@gmail.com" target="_blank">richard.mace@gmail.com</a>>:<br>
Hi All,<br>
I need to use/get a common windows folder (in Win XP,Vista,7,8 and 8.1) that all users will have<br>
read/write access to by default.<br>
I think it is CSIDL_COMMON_DOCUMENTS<br>
<br>
Any ideas how I can code this in Lazarus?<br>
</blockquote>
<br>
You can use the shfolder unit. It contains the necessary constants and<br>
calls to retrieve the location.<span class=""><font color="#888888"><br>
<br>
Michael.</font></span></blockquote></div><div><br></div><div>Here in Brazil, on Lazarus-BR group, an member (Joao Marcelo Vaz) sent an very nice tip:</div><div><br></div><div><div>uses</div><div> windirs;</div><div><br></div><div>...</div><div><br></div><div> ShowMessage(GetWindowsSpecialDir(CSIDL_COMMON_DOCUMENTS));</div></div><div><br></div><div>=)</div><div><br></div>-- <br><div class="gmail_signature">Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a></div>
</div></div>