"Christoph von Wittich" <Christoph at ApiViewer.de> wrote: > + if (*pcbProvName > INT_MAX) > + *pcbProvName = INT_MAX; In which way WideCharToMultiByte is broken? It always helps to provide an explanation and if possible a test case. -- Dmitry.