NS_NewLocalFile((char*)filepath, getter_AddRefs(nsLFPath));
NS_NewLocalFile((char*)filepath, PR_TRUE, getter_AddRefs(nsLFPath));
REGERR su_UninstallProcessItem(char *component_path){    int refcount;    int err;    char filepath[MAXREGPATHLEN];    nsCOMPtr<nsILocalFile> nsLFPath;    nsCOMPtr<nsIFile> nsFPath;    err = VR_GetPath(component_path, sizeof(filepath), filepath);    if ( err == REGERR_OK )    {        NS_NewLocalFile((char*)filepath, getter_AddRefs(nsLFPath));        nsFPath = nsLFPath;        err = VR_GetRefCount(component_path, &refcount);          if ( err == REGERR_OK )        {            --refcount;            if (refcount > 0)                err = VR_SetRefCount(component_path, refcount);              else             {                err = VR_Remove(component_path);                DeleteFileNowOrSchedule(nsFPath);            }        }        else        {            /* delete node and file */            err = VR_Remove(component_path);            DeleteFileNowOrSchedule(nsFPath);        }    }    return err;}