Before you call SplCheck or SplSuggest, set up the SPLBUFFER structure. A SPLBUFFER structure contains a variety of data for the spelling checker functions. First, it contains the input buffer that holds the text that you are checking. It also contains parameters for containing spelling suggestions returned by the spelling checker, the type of spelling error that occurred, where in the input buffer the spelling checker should look next, and how the spelling checker should proceed.
To set up the SPLBUFFER structure for a call to SplCheckThe iwcIn member contains the offset for where SplCheck begins searching for misspelled words. Setting iwcIn to 0 causes SplCheck to begin searching at the beginning of the input buffer.
SplCheck places the results of the spelling session in dwErr.