Lines Matching refs:iniPath
841 wchar_t iniPath[MAXLEN];
843 if (SUCCEEDED(SHGetFolderPathW(NULL, CSIDL_LOCAL_APPDATA, NULL, 0, iniPath)) &&
844 join(iniPath, MAXLEN, L"py.ini")) {
845 debug(L"# Reading from %s for %s/%s\n", iniPath, section, settingName);
846 n = GetPrivateProfileStringW(section, settingName, NULL, buffer, bufferLength, iniPath);
848 debug(L"# Found %s in %s\n", settingName, iniPath);
851 debug(L"# Did not find file %s\n", iniPath);
853 winerror(0, L"Failed to read from %s\n", iniPath);
856 if (GetModuleFileNameW(NULL, iniPath, MAXLEN) &&
857 SUCCEEDED(PathCchRemoveFileSpec(iniPath, MAXLEN)) &&
858 join(iniPath, MAXLEN, L"py.ini")) {
859 debug(L"# Reading from %s for %s/%s\n", iniPath, section, settingName);
860 n = GetPrivateProfileStringW(section, settingName, NULL, buffer, MAXLEN, iniPath);
862 debug(L"# Found %s in %s\n", settingName, iniPath);
865 debug(L"# Did not find file %s\n", iniPath);
867 winerror(0, L"Failed to read from %s\n", iniPath);