Well,
It looks like I managed to dig far enough to find the answer. Too bad there was no easy path.
After a lot of trial and error, I found out how to use viSetAttribute(). Of course, that was after a few hours of searching for the meaning of viOpenDefaultRM() and viOpen().
If I get the time (since I wasted so much making this work) I'll post a .zip file with a good example.
NI gurus - Can you please write a 'good' online reference? Please?! Maybe include a few cross references and 'hints' along the way?
Till then ...