The code used in juce file
static GetFinalPathNameByHandleFunc getFinalPathNameByHandle = (GetFinalPathNameByHandleFunc) getUser32Function (“GetFinalPathNameByHandle”);
is always null (even on Windows 7)
but if I replace directly getFinalPathNameByHandle by GetFinalPathNameByHandleW and remove the if, it works just fine.
I tried with GetFinalPathNameByHandleW as the string instead and it wasn’t working
Still indeed, GetFinalPathNameByHandleW is Windows Vista mininmum and juce is already at this level as I was able to just replace the function so it’s pretty safe to just call it directly.