check http://www.codeproject.com/KB/cs/tsnewlib.aspx
SetAccountInformation can be used for the credentials. maybe there is also something for the trigger.