@c Calculate the neccessary buffer size
Calculate the size of the output. The IN/OUT parameter cbBufferSize is increased by the number of needed characters.
The return value is zero if no error occured or the error code.
NOTE: cbBuffer size should be initialized to 0 if you want to get the
size of the buffer needed.
int match_size(char *pszFormat,
unsigned long cbFormat,
unsigned long *pcbParameterArray,
int cArraySize,
int *cbBufferSize
){