Lines Matching refs:path

158         TCHAR path[MAX_PATH];
159 HRESULT result = gGetSpecialPathProc(NULL, path, folder, true);
165 int len = strlen(path);
166 if (len>1 && path[len-1] != '\\')
168 path[len] = '\\';
169 path[len + 1] = '\0';
172 return NS_NewNativeLocalFile(nsDependentCString(path),
241 char path[_MAX_PATH];
242 PRInt32 len = GetWindowsDirectory( path, _MAX_PATH );
245 if ( path[1] == ':' && path[2] == '\\' )
246 path[3] = 0;
249 return NS_NewNativeLocalFile(nsDependentCString(path),
279 char path[_MAX_PATH];
280 DWORD len = GetTempPath(_MAX_PATH, path);
281 return NS_NewNativeLocalFile(nsDependentCString(path),
408 char path[_MAX_PATH];
409 PRInt32 len = GetSystemDirectory( path, _MAX_PATH );
414 path[len] = '\\';
415 path[len+1] = '\0';
417 return NS_NewNativeLocalFile(nsDependentCString(path),
424 char path[_MAX_PATH];
425 PRInt32 len = GetWindowsDirectory( path, _MAX_PATH );
431 path[len] = '\\';
432 path[len+1] = '\0';
434 return NS_NewNativeLocalFile(nsDependentCString(path),
441 char path[_MAX_PATH];
442 if (GetEnvironmentVariable(TEXT("HOME"), path, _MAX_PATH) > 0)
444 PRInt32 len = strlen(path);
449 path[len] = '\\';
450 path[len+1] = '\0';
452 return NS_NewNativeLocalFile(nsDependentCString(path),
457 if (GetEnvironmentVariable(TEXT("HOMEDRIVE"), path, _MAX_PATH) > 0)
461 strncat(path, temp, _MAX_PATH);
463 PRInt32 len = strlen(path);
469 path[len] = '\\';
470 path[len+1] = '\0';
472 return NS_NewNativeLocalFile(nsDependentCString(path),
615 char path[MAXPATHLEN];
616 find_directory(B_USER_SETTINGS_DIRECTORY, 0, 0, path, MAXPATHLEN);
618 int len = strlen(path);
621 path[len] = '/';
622 path[len+1] = '\0';
623 return NS_NewNativeLocalFile(nsDependentCString(path),
630 char path[MAXPATHLEN];
631 find_directory(B_USER_DIRECTORY, 0, 0, path, MAXPATHLEN);
633 int len = strlen(path);
636 path[len] = '/';
637 path[len+1] = '\0';
639 return NS_NewNativeLocalFile(nsDependentCString(path),
646 char path[MAXPATHLEN];
647 find_directory(B_DESKTOP_DIRECTORY, 0, 0, path, MAXPATHLEN);
649 int len = strlen(path);
652 path[len] = '/';
653 path[len+1] = '\0';
655 return NS_NewNativeLocalFile(nsDependentCString(path),
662 char path[MAXPATHLEN];
663 find_directory(B_BEOS_DIRECTORY, 0, 0, path, MAXPATHLEN);
665 int len = strlen(path);
668 path[len] = '/';
669 path[len+1] = '\0';
671 return NS_NewNativeLocalFile(nsDependentCString(path),