IPropertyStore *pStore; hr = pDevice->OpenPropertyStore(STGM_READ, &pStore); if (SUCCEEDED(hr)) { LPWSTR pwszID = NULL; PROPVARIANT varName; PropVariantInit(&varName); PROPVARIANT eventDriven; PropVariantInit(&eventDriven); PROPVARIANT speakerMask; PropVariantInit(&speakerMask); if (SUCCEEDED(pStore->GetValue(PKEY_Device_FriendlyName, &varName)) && SUCCEEDED(pStore->GetValue(PKEY_AudioEndpoint_Supports_EventDriven_Mode, &eventDriven)) && SUCCEEDED(pDevice->GetId(&pwszID))) { //pStore->GetValue(PKEY_AudioEndpoint_PhysicalSpeakers, &speakerMask); pStore->GetValue(PKEY_AudioEndpoint_FullRangeSpeakers, &speakerMask); } ...
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)