日期:2014-05-17 浏览次数:20762 次
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Diagnostics;
namespace SendMsg
{
#region 结构体定义
[StructLayout(LayoutKind.Sequential)]
public struct COPYDATASTRUCT
{
public int dwData;
public int cbData;
public int lpData;
}
//定义要传递的Struct
[StructLayout(LayoutKind.Sequential)]
struct SendMsgInfo
{
/// <summary>
/// 参数(单号)
/// </summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 100)]
public string AccessionNum;
/// <summary>
/// 参数(原文)
/// </summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 5000)]
public string ReportTxt;
/// <summary>
/// 参数(Ris用户)
/// </summary>
[MarshalAs(UnmanagedType.