Thanks Sebastien and everyone else for their comments and suggestions. 
At this stage I've simply disabled writing to the log file.  Richard is 
building a new package for you  all to try on Win 10/64 bit systems.

- David

On 08/05/17 20:51, Sebastien F4GRX wrote:
> Hello,
>
> that should be GetUserProfileDirectory:
>
> https://msdn.microsoft.com/en-us/library/windows/desktop/bb762280(v=vs.85).aspx
>
> the hToken parameter probably can be provided by GetCurrentProcessToken:
>
> https://msdn.microsoft.com/en-us/library/windows/desktop/mt643211(v=vs.85).aspx
>
> Another solution based on SDD (stackoverflow driven development) is
> SHGetFolderPath:
>
> http://stackoverflow.com/questions/9542611/how-to-get-the-current-users-home-directory-in-windows
>
> Sebastien
>
> On 06/05/2017 22:40, David Rowe wrote:
>> Thanks Mathew - I wonder if there is a Win32 system call to return that
>> path.  As well as debug/log information there are also times when the
>> program records wave files, but the user gets a dialog box to choose
>> record file locations.
>>
>> - David
>>
>> On 07/05/17 02:58, Matthew Pitts wrote:
>>> Richard and David,
>>>
>>>
>>> Windows versions, if installed in C:\Program Files\ (or C:\Program
>>> Files(x86) for 32 bit versions on 64 Bit OS)) should write any needed
>>> data to the C:\Users\<uesrname>\AppData\Roaming\FreeDV\ folder. This has
>>> actually been the preferred method since Windows XP, but has only been
>>> enforced since Windows 8, from what I understand. Doing it this way
>>> avoids the privilege escalation that occurs when running the software as
>>> Administrator, which is just as dangerous (if not more so) than running
>>> applications as root user on Linux.
>>>
>>>
>>> Matthew Pitts
>>>
>>> N8OHU
>>>
>>>
>>> On 5/6/2017 7:35 AM, Richard Shaw wrote:
>>>> On Sat, May 6, 2017 at 12:20 AM, David Rowe <da...@rowetel.com
>>>> <mailto:da...@rowetel.com>> wrote:
>>>>
>>>>     OK so maybe I need to make sure FreeDV isn't writing any data
>>>>     files, or
>>>>     if it does write them, they should go to c:\ or some other temp
>>>>     directory. I think I am just writing a log file as a debug feature
>>>>     anyway, so it can be disabled.
>>>>
>>>>
>>>> It also seem like maybe we should install to a different program files
>>>> directory on 64bit systems? If we can determine where that is, then I
>>>> should be able to adjust the settings for the NSIS installer.
>>>>
>>>> Thanks,
>>>> Richard
>>>> KF5OIM
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Check out the vibrant tech community on one of the world's most
>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>>>
>>>>
>>>> _______________________________________________
>>>> Freetel-codec2 mailing list
>>>> Freetel-codec2@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/freetel-codec2
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>>
>>>
>>>
>>> _______________________________________________
>>> Freetel-codec2 mailing list
>>> Freetel-codec2@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/freetel-codec2
>>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Freetel-codec2 mailing list
>> Freetel-codec2@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/freetel-codec2
>>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Freetel-codec2 mailing list
> Freetel-codec2@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freetel-codec2
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Freetel-codec2 mailing list
Freetel-codec2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to