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