public static bool Error(IntPtr aHandle, out uint aErrorCode, out string aErrorDesc)
{
uint code;
IntPtr desc;
uint err = CpInvocationError(aHandle, out code, out desc);
aErrorCode = code;
aErrorDesc = InteropUtils.PtrToStringUtf8(desc);
return (err != 0);
}