代码未测试

[DllImport("USER32", EntryPoint = "SendMessage", CharSet = CharSet.Auto, SetLastError = true)]
public static extern IntPtr SendMessage(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam); IntPtr textPointer = Marshal.StringToCoTaskMemUni("Magic String"); SendMessage(handle, WM_SETTEXT, IntPtr.Zero, textPointer); Marshal.FreeCoTaskMem(textPointer);

-

Marshal.PtrToStringUni  解析

最新文章

  1. 移动web前端下拉刷新效果
  2. boos直聘扫码直接登陆js代码
  3. HTML5 初步了解
  4. Centos 检查磁盘读写性能
  5. notification的使用
  6. 如何通过maven ,将本地jar 安装到仓库中去。
  7. 解决:Google代码achartengine曲线代码报错问题(转)
  8. [Tex学习]给汉字注音
  9. js贪吃蛇
  10. MVVM 代码记录
  11. How to new a screen in linux
  12. 用bootstrap的tab插件做一个图层切换效果(感觉会误导淫们,大家当乐子看吧)
  13. cf475B Strongly Connected City
  14. 读<<代码整洁之道>>的感想
  15. Box2d FilterData
  16. Hibernate table schema 的设置与应用
  17. 使用RocketMQ实现分布式事务
  18. linux服务器ntp客户端配置【转】
  19. lua 中随机数产生
  20. iOS开发简记(2):自定义tabbar

热门文章

  1. zookeeper的补充
  2. PureComponent下setstate不重新渲染
  3. 【CSS】Table样式
  4. mac php 安装php多版本
  5. 第12组 Alpha冲刺(3/6)
  6. 谈下python的GIL
  7. vs code 修改选中后匹配的代码的颜色
  8. .netFramework 升级NetCore 问题汇总及解决方案
  9. keepalived非争抢机制不生效【原创】
  10. 如何解决Access操作或事件已被禁用模式阻止