COPYDATASTRUCT.cs 763 B

12345678910111213141516171819202122232425262728293031
  1. using System.Runtime.InteropServices;
  2. namespace Microsoft.Win32
  3. {
  4. /// <summary>
  5. /// COPYDATASTRUCT定义
  6. /// </summary>
  7. public static partial class NativeMethods
  8. {
  9. /// <summary>
  10. /// 进程间传递数据结构
  11. /// </summary>
  12. [StructLayout(LayoutKind.Sequential)]
  13. public struct COPYDATASTRUCT
  14. {
  15. /// <summary>
  16. /// flag
  17. /// </summary>
  18. public int dwData;//flag
  19. /// <summary>
  20. /// 大小
  21. /// </summary>
  22. public int cbData;//size
  23. /// <summary>
  24. /// 数据
  25. /// </summary>
  26. [MarshalAs(UnmanagedType.LPStr)]
  27. public string lpData;
  28. }
  29. }
  30. }