I'm trying to get a reference to the IPart interface to control Windows audio volume level, for example, and I'm using the IDeviceTopology::GetPartById
function to get it.
This function takes a UINT. I tried 0 and got nothing, then gave in and just tried incrementing a UINT until I could get a reference. No luck that way.
I've got a reference to the correct device topology.
My HRESULT is E_INVALIDARG
.
Is it just the case that there aren't any parts available on my device?
MSDN says to get an ID to pass into GetPartById, I should call IAudioInputSelector::GetSelection
. To use IAudioInputSelector though, I need to already have a reference to an IPart object.