WideCharToMultiByte

This function entry is part of a MAPI-specific list of Win32 functions. For a complete description, see Win32 Functions.

int WideCharToMultiByte(
  UINT CodePage,          
  DWORD dwFlags,          
  LPCWSTR lpWideCharStr,   
  int cchWideChar,        
  LPSTR lpMultiByteStr,   
  int cchMultiByte,       
  LPCSTR lpDefaultChar,   
  LPBOOL lpUsedDefaultChar  
)
 

Limitations

This function is only accurate for character values less than 128. Characters whose values are greater may not be compared accurately because the 16-bit implementation does not have the necessary Unicode mapping tables; it does not support Unicode single-byte conversion; works reliably only for ASCII characters.