ph_postcopydata PowerHome formula function
Description
Posts a Windows WM_COPYDATA message.
Syntax
ph_postcopydata ( handle, wparam, longdata, stringdata )
Argument |
Description |
handle
|
The handle to which you want to send the message.
|
wparam
|
The wparam data. This would typically be the handle of the calling program.
|
longdata
|
An unsigned long representing the dwdata parameter of a COPYDATASTRUCT.
|
stringdata
|
A string of data that will be placed in the lpdata parameter of a COPYDATASTRUCT.
|
Return value
Long. Returns a 0. This formula will populate a COPYDATASTRUCT and send a WM_COPYDATA message (message number 74) to the window pointed to by handle. The wparam argument can be any long value but is typically the handle of the calling program. The longdata argument will be copied into the dwdata parameter of the COPYDATASTRUCT. The stringdata will be pointed to by the lpdata parameter of a COPYDATASTRUCT.