Write SF

3270 5250 VT
Yes Yes Yes
The Write SF function allows a client application to write structured field data to the host application.
Note:
The client must call the Set Structured Field Service Condition function before invoking the Write SF function.
The client sends the following message to write structured field data.
PostMessage( hServerWnd,
             WM_DDE_POKE,
             hClientWnd,
             MAKELONG(hData, aSF) );
where:
hData Identifies a handle to a Windows global memory object containing:
typedef struct tagWRITESF
{
 unsigned   unused:12,             //
 unsigned   fRelease:1,            //
 unsigned   fReserved:3;           //
 int        cfFormat;              // Always CF_DSPTEXT
 WORD       uSFLength;             // Length of SF data
 char       Work[8];               // Work area
 char       szSFData[1];           // SF data
} WRITESF, FAR *lpWRITESF;
aSF Identified structured field as the item.