ph_sendcopydata PowerHome formula function
Description
Sends a Windows WM_COPYDATA message.
Syntax
ph_sendcopydata ( 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 the result of the sendmsg. 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. This function will wait for a return from the sendmsg.