internal static extern int LJV7IF_GetStorageData(int lDeviceId, ref LJV7IF_GET_STORAGE_REQ pReq,
 ref LJV7IF_STORAGE_INFO pStorageInfo, ref LJV7IF_GET_STORAGE_RSP pRsp, IntPtr pdwData, uint dwDataSize);
 internal static extern int LJV7IF_GetStorageProfile(int lDeviceId, ref LJV7IF_GET_STORAGE_REQ pReq,
 ref LJV7IF_STORAGE_INFO pStorageInfo, ref LJV7IF_GET_STORAGE_RSP pRes,
 ref LJV7IF_PROFILE_INFO pProfileInfo, IntPtr pdwData, uint dwDataSize);
Пример #3
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_STORAGE_RSP storageRsp)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine(string.Format(@"  StartNo	: {0}", storageRsp.dwStartNo));
            sb.AppendLine(string.Format(@"  DataCnt	: {0}", storageRsp.dwDataCnt));
            sb.Append(ConvertToLogString(storageRsp.stBaseTime).ToString());

            return sb;
        }