Write SF
3270 | 5250 | VT |
Yes | No | No |
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,
PackDDELParam(WM_DDE_POKE,
hData, aSF) );
where:
- hData
- Identifies a handle to a Windows global memory object containing:
typedef struct tagWRITESF { unsigned char poke[(sizeof(DDEPOKE)-1)]; unsigned short uSFLength; /* Length of SF data unsigned char Work[8]; /* Work area unsigned char szSFData[1]; /* SF data } WRITESF; typedef union tagDDE_WRITESF { DDEPOKE DDEpoke; WRITESF DDEwritesf; } DDE_WRITESF, *lpDDE_WRITESF;
- aSF
- Identifies structured field as the item.