| 7073 | }; |
| 7074 | |
| 7075 | LPWSTR SoundDeviceGetName(IMMDevice *aDev) |
| 7076 | { |
| 7077 | IPropertyStore *store; |
| 7078 | PROPVARIANT prop; |
| 7079 | if (SUCCEEDED(aDev->OpenPropertyStore(STGM_READ, &store))) |
| 7080 | { |
| 7081 | if (FAILED(store->GetValue(PKEY_Device_FriendlyName, &prop))) |
| 7082 | prop.pwszVal = nullptr; |
| 7083 | store->Release(); |
| 7084 | return prop.pwszVal; |
| 7085 | } |
| 7086 | return nullptr; |
| 7087 | } |
| 7088 | |
| 7089 | |
| 7090 | HRESULT SoundSetGet_GetDevice(LPTSTR aDeviceString, IMMDevice *&aDevice) |
no test coverage detected