Just as a note, this does not work in Visual Studio if the Configuration Properties->General->Character Set field is set to Unicode. For that, the pszParam must be of type LPCTSTR. Just wanted to...