Default Hands-Free mode in XDA

When one presses the green phone button, sometimes, it swiched on the phones hands-free mode.

I really need to be able to test and control this mode programmatically. According to the MS news groups, this is done using an un-published API.

Has any person found how to access this API, or know an informational reference?

Thanks,

Ben