--- In [email protected], "entropyreduction"
<alancampbelllists+ya...@...> wrote:
>
> Most of my plugins use the same code to try to find a configuration file in
> the ppowerpro instllation folder, which can be either plugins.ini or [name of
> plugin].ini. Now seems api call I was using (FindFirstFile) doesnt work
> properly on some (?) non-English win instllations (specifically on forxtra's
> Korean instllation).
>
> If anyone has had similar problems with any plugin aside from vars (new
> version of that up tomorrow), let me know and I'll recompile and issue new
> version.
>
> BTW Bruce, what do you use for your validpath() function?
>
HANDLE ffHandle;
WIN32_FIND_DATA w32FindData;
if (_access(szy, 0)==(0))
*szres = '1';
else
{
ffHandle = FindFirstFile(szy, &w32FindData);
if (ffHandle != INVALID_HANDLE_VALUE)
{
*szres='1';
FindClose(ffHandle);
}
else
*szres = '0';
}