I would like to know how to change the console title in C++ using a string as the new parameter.  

I know you can use the `SetConsoleTitle` function of the Win32 API but that does not take a string parameter.  

I need this because I am doing a Java native interface project with console effects and commands.  

I am using windows and it only has to be compatible with Windows.