you get a handle (windows for "pointer") to the console instance (its process ID, sort of). Then you send a message to it, telling it to change its settings. If you have permission to do that, it will, for that active session only, until you change it back.
the link you listed probably is insufficient.
You probably need to define a variable and call one of the "get process handle" routines (there are many, and I am out of that game, I don't know what the actual one you need is called). Then youll have to pass that value to the linked function to get it to work.