<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.16.2">
</HEAD>
<BODY>
Hi,<BR>
         I am little confused about these api's such as virConnCopyLastError and virCopyLastError. Please correct my understanding.<BR>
<BR>
1. virConnCopyLastError expects 2 parameter connection and virErrorPtr, This is used only after getting successful connection, If i call this without connection say it is NULL, I hope it will return -1 if no what will it return?<BR>
<BR>
2. virCopyLastError expects on 1 parameter virErrorPtr, this can be used any time, even before getting connection, If it is No. Then when will i use virCopyLastError api?<BR>
<BR>
<BR>
3. If virConnectOpen/virConnectOpenReadOnly fails which api should be called to know the error code?<BR>
<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
Thanks & Regards<BR>
--Ajish
</TD>
</TR>
</TABLE>
</BODY>
</HTML>