ilINetContext *cx = new ImageNetContextSyncImpl(IMG_NTWK_SERVER);
ilINetContext *cx = new ImageNetContextSyncImpl(USE_IMG_CACHE);
nsresult NS_NewImageNetContextSync(ilINetContext **aInstancePtrResult){  NS_PRECONDITION(nsnull != aInstancePtrResult, "null ptr");  if (nsnull == aInstancePtrResult) {    return NS_ERROR_NULL_POINTER;  }    ilINetContext *cx = new ImageNetContextSyncImpl(IMG_NTWK_SERVER);  if (cx == nsnull) {    return NS_ERROR_OUT_OF_MEMORY;  }  return cx->QueryInterface(kIImageNetContextIID, (void **) aInstancePtrResult);}