Ejemplo n.º 1
0
        /// <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_PROFILE_RSP rsp)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine(string.Format(@"  CurrentProfNo	: {0}", rsp.dwCurrentProfNo));
            sb.AppendLine(string.Format(@"  OldestProfNo	: {0}", rsp.dwOldestProfNo));
            sb.AppendLine(string.Format(@"  GetTopProfNo	: {0}", rsp.dwGetTopProfNo));
            sb.Append(string.Format(@"  GetProfCnt	: {0}", rsp.byGetProfCnt));

            return(sb);
        }
Ejemplo n.º 2
0
 internal static extern int LJV7IF_GetProfile(int lDeviceId, ref LJV7IF_GET_PROFILE_REQ pReq,
                                              ref LJV7IF_GET_PROFILE_RSP pRsp, ref LJV7IF_PROFILE_INFO pProfileInfo, IntPtr pdwProfileData, uint dwDataSize);