using System.Runtime.InteropServices; namespace Microsoft.Win32 { /// /// COPYDATASTRUCT定义 /// public static partial class NativeMethods { /// /// 进程间传递数据结构 /// [StructLayout(LayoutKind.Sequential)] public struct COPYDATASTRUCT { /// /// flag /// public int dwData;//flag /// /// 大小 /// public int cbData;//size /// /// 数据 /// [MarshalAs(UnmanagedType.LPStr)] public string lpData; } } }