TerSearchReplaceU
Search, replace or retrieve Unicode text.
BOOL TerSearchReplaceU(hWnd, pSearch, pReplace, flags, StartPos, EndPos, BufSize)
HWND hWnd; | The handle of the window to be accessed. |
LPWORD pSearch; | The text to be searched. A Unicode text string passed as an array of short integers (16 bit). Each array position holds one Unicode character to be searched. The array must end with a NULL terminator character. |
LPBYTE pReplace; | The replacement text. A Unicode text string passed as an array of short integers (16 bit). Each array position holds one Unicode character to be searched. The array must end with a NULL terminator character. |
UINT flags; | mode flags |
long StartPos; | start text position |
long far *EndPos; | pointer to the end text position |
long far *BufSize; | pointer to the size of the retrieved text |
Description: Pleaese refer to the TerSearchReplace function for the description of flags, StartPos, EndPos and BufSize arguments.
Return Value: This function returns TRUE if successful. Otherwise, it returns a FALSE value
Comment: A VB application might find easier to use the following variable of these methods available through ActiveX interface:
BOOL TerSearchReplaceU2(SearchText, ReplaceText, flags, StartPos, EndPos, BufSize)
This method allows you to pass unicode SearchText and ReplaceText parameters as simple VB strings. The remaining parameters and the result values are the same as described above.