Using NvAPI to set nvidia surround mode.

I am trying to create an application using NVAPI that will allow me to swap back and forth between nvidia surround(mosaic) and not surround. I am using a Nvidea GTX Titan GPU

Upon using NvAPI_Mosaic_GetSupportedTopoInfo I just get a generic error string.

I am wondering if it is even possible to switch display modes with NvApi or if I should just give up.

I want to do almost the same.
I have a game setup for exhibitions that uses 3D surround on 3 screens. If a cable is disconnected the 3D surround setting is lost and will not return other than setting it manually, which the users are not capable of doing.
I need a program that set the 3D surround mode automatically.

Anyone who knows how to accomplish this?