nsCOMTypeInfo<nsILocalFile>::GetIID(),
NS_GET_IID(nsILocalFile),
nsresult Register(const char *path) {   nsCOMPtr<nsILocalFile> spec;  nsresult rv = nsComponentManager::CreateInstance(NS_LOCAL_FILE_PROGID,                                                    nsnull,                                                    nsCOMTypeInfo<nsILocalFile>::GetIID(),                                                    getter_AddRefs(spec));  if (NS_FAILED(rv) || (!spec))   {      printf("create nsILocalFile failed\n");      return NS_ERROR_FAILURE;  }  rv = spec->InitWithPath((char *)path);  if (NS_FAILED(rv)) return rv;  rv = nsComponentManager::AutoRegisterComponent(nsIComponentManager::NS_Startup, spec);  return rv;}