Getting connection info via HDAudio VERBs

Ok, I’m trying to find a way to determine if a headphone connector is plugged into the headphone jack (for a diag).

I’ve seen some mention on MSDN of using IOCTL_AZALIABUS_SENDVERBS to throw commands down to the HD Audio device and get responses back, but the code snippets I’ve located thus far aren’t terribly enlightning. I’ve read the Intel spec and I know the cability to do this exists, somewhere.

Is anyone aware of any sample code that might be applicable, or additional documentation? I’m not even sure of which device object I’d need to open… sigh.

Apologies for the clueness newbie question, I haven’t done this on a non-WinCE system before.