/// <summary> /// Get the string for log output. /// </summary> /// <param name="obj">Structure that you want to convert to a string</param> /// <returns>String for log output</returns> public static StringBuilder ConvertToLogString(LJV7IF_GET_BATCH_PROFILE_RSP rsp) { StringBuilder sb = new StringBuilder(); // Profile information of the profile obtained sb.AppendLine(string.Format(@" CurrentBatchNo : {0}", rsp.dwCurrentBatchNo)); sb.AppendLine(string.Format(@" CurrentBatchProfCnt : {0}", rsp.dwCurrentBatchProfCnt)); sb.AppendLine(string.Format(@" OldestBatchNo : {0}", rsp.dwOldestBatchNo)); sb.AppendLine(string.Format(@" OldestBatchProfCnt : {0}", rsp.dwOldestBatchProfCnt)); sb.AppendLine(string.Format(@" GetBatchNo : {0}", rsp.dwGetBatchNo)); sb.AppendLine(string.Format(@" GetBatchProfCnt : {0}", rsp.dwGetBatchProfCnt)); sb.AppendLine(string.Format(@" GetBatchTopProfNo : {0}", rsp.dwGetBatchTopProfNo)); sb.AppendLine(string.Format(@" GetProfCnt : {0}", rsp.byGetProfCnt)); sb.Append(string.Format(@" CurrentBatchCommited : {0}", rsp.byCurrentBatchCommited)); return(sb); }
internal static extern int LJV7IF_GetBatchProfile(int lDeviceId, ref LJV7IF_GET_BATCH_PROFILE_REQ pReq, ref LJV7IF_GET_BATCH_PROFILE_RSP pRsp, ref LJV7IF_PROFILE_INFO pProfileInfo, IntPtr pdwBatchData, uint dwDataSize);