WM_COPYDATA Message
来源:互联网 发布:珠峰js培训视频下载 编辑:程序博客网 时间:2024/06/06 06:38
WM_COPYDATA Message
An application sends the WM_COPYDATA message to pass data to another application.
Syntax
To send this message, call the SendMessage function as follows.lResult = SendMessage( // returns LRESULT in lResult (HWND) hWndControl, // handle to destination control (UINT) WM_COPYDATA, // message ID (WPARAM) wParam, // = (WPARAM) () wParam; (LPARAM) lParam // = (LPARAM) () lParam;);
Parameters
- wParam
- Handle to the window passing the data.
- lParam
- Pointer to a COPYDATASTRUCT structure that contains the data to be passed.
Return Value
If the receiving application processes this message, it should return TRUE; otherwise, it should return FALSE.
Remarks
The data being passed must not contain pointers or other references to objects not accessible to the application receiving the data.
While this message is being sent, the referenced data must not be changed by another thread of the sending process.
The receiving application should consider the data read-only. The lParam parameter is valid only during the processing of the message. The receiving application should not free the memory referenced bylParam. If the receiving application must access the data after SendMessage returns, it must copy the data into a local buffer.
For an example, see Using Data Copy.
Message Information
Header Declared in Winuser.h, include Windows.hMinimum operating systems Windows 95, Windows NT 3.1
See Also
SendMessage, COPYDATASTRUCT
- WM_COPYDATA Message
- WM_COPYDATA
- WM_COPYDATA
- An application sends the WM_COPYDATA message to pass data to another application
- Using WM_COPYDATA
- WM_COPYDATA消息
- 【WM_COPYDATA】进程通信——WM_COPYDATA消息
- message
- message
- message
- Message
- Message
- Message
- Message
- Message
- Message
- Message
- Message
- Win7系统下VS2008开发的程序打包步骤图解
- 堆排序实现
- SAP APO 介绍
- 日期格式化工具类DateFormat
- 超越Flat——iOS 7的救赎
- WM_COPYDATA Message
- 博客地址
- 伟大的程序员所必须具备的7项特质
- 编程笔记 string的函数
- self.nameVarPtr = [[ObjectName alloc] init] 和nameVarPtr = [[ObjectName alloc] init] 的区别
- 《念奴娇·赤壁怀古》苏轼
- 文件夹大小查看器
- spice server timer机制
- 程序设计和开发应注意的事项