I have downloaded some information on CopyDataStruct written by Karl Nilsson but I am unable to work out the commands required:-
This is part of Karl`s code (unfortunately in VB).
Dim cds As COPYDATASTRUCT
cds.dwData = waAddFile
' = 100 (IPC_PLAYFILE)
cds.lpData = lstrcpy(filename, filename)
' Copies filename to itself. Nothing happens,
' but returns the address for the pointer to the string!
cds.cbData = Len(filename) + 1
' Reserve space for filename plus trailing null char
RetVal = CopyDataSendMessage(hWndWinamp, WM_COPYDATA, 0&, cds)
Converting to VFP is causing me a problem.
Does anyone know how to create the `CDS` part of the command line which consists of 3 seperate items of data?
This is part of Karl`s code (unfortunately in VB).
Dim cds As COPYDATASTRUCT
cds.dwData = waAddFile
' = 100 (IPC_PLAYFILE)
cds.lpData = lstrcpy(filename, filename)
' Copies filename to itself. Nothing happens,
' but returns the address for the pointer to the string!
cds.cbData = Len(filename) + 1
' Reserve space for filename plus trailing null char
RetVal = CopyDataSendMessage(hWndWinamp, WM_COPYDATA, 0&, cds)
Converting to VFP is causing me a problem.
Does anyone know how to create the `CDS` part of the command line which consists of 3 seperate items of data?