Set Presentation Space Service Condition

3270 5250 VT
Yes Yes Yes
The Set Presentation Space Service Condition function sets the condition for using the following functions:
  • Get Partial Presentation Space
  • Find Field
  • Search for String
The client application sets the condition by calling this function such as:
  • Start PS position
  • PS length
  • EOF flag
  • Search direction
  • ASCIIZ string
The client must specify the Set Presentation Space Service Condition function before invoking the functions listed above. The conditions set by this function remain in effect until the next Set Presentation Space Service Condition function is called. The client sends the following message to set the condition:
PostMessage( hServerWnd,
             WM_DDE_POKE,
             hClientWnd,
             MAKELONG(hData, aEPSCOND) );
where:
hData
Identifies a handle to a Windows global memory object containing:
typedef struct tagPSSERVCOND
{
 unsigned   unused:13,             //
 unsigned   fRelease:1,            //
 unsigned   fReserved:2;           //
 int        cfFormat;              // Always CF_DSPTEXT
 unsigned   uPSStart;              // PS Position
 unsigned   uPSLength;             // Length of PS
 unsigned   uSearchDir;            // Direction for search
 unsigned   uEOFflag;              // EOF effective switch
 char       szTargetString[1];     // Target String
} PSSERVCOND, FAR *lpPSSERVCOND;
The following values are valid at the uSearchDir field:
WC_SRCHFRWD    0 // Search forward.
WC_SRCHBKWD    1 // Search backward.
The following values are valid at the uEOFflag field:
WC_UNEFFECTEOF 0 // The string is not truncated at EOF.
WC_EFFECTEOF   1 // The string is truncated at EOF.
aEPSCOND Identifies the item for the Set Presentation Space Service Condition function.