I am having difficulty determining what the exact size of a Word should be in the context of the Windows API function mbstowcs_s. Here is the relevant information from the MSDN as well as the link.
mbstowcs_s, _mbstowcs_s_l
Converts a sequence of multibyte characters to a corresponding sequence of wide characters. Versions of mbstowcs, _mbstowcs_l with security enhancements as described in Security Features in the CRT.
Parameters
[out] pReturnValue - The number of characters converted.
[out] wcstr - Address of buffer for the resulting converted wide character string.
[in] sizeInWords - The size of the wcstr buffer in words.
[in] mbstr - The address of a sequence of null terminated multibyte characters.
[in] count - The maximum number of wide characters to store in the wcstr buffer, not including the terminating null, or _TRUNCATE.
Here is the link to the MSDN page: https://msdn.microsoft.com/en-us/library/eyktyxsx.aspx
Any ideas?