I've been scouring MSDN looking for any API's related to changing cached credentials, nothing found so think what your trying to will be tough, even searching the web in general isn;t yielding much.

What I would try, if it make sense to you, is change the domain password with ADSI, then maybe reset the secure channel from workstation to domain using NLTEST from RESKIT with /SC_RESET:<domain> switch.