It originally did not compiile but I made some changes and it appears to be working now. Note that I commented out the msgbox calls as that was getting in the way once I saw it working!!
My changes: 1. There were a lot of references to variable hr and it complained that hr was not declared. I modified 2 or 3 references so that it was set as: HRESULT hr = CoCreateInstance... 2. There was also a typo in the variable name bNoSet in the vistavolume function. It was set as bNOSet instead of bNoSet. I fixed that too. 3. It complained about the folliwng line in 2 ways: hr = endpointVolume->SetMute(&nextmute); First it said it did not take 1 argument and google shows 2. So I changed it to this: hr = endpointVolume->SetMute(&nextmute, NULL); Then it complained about converting a bool * to a bool. I then changed it to this: hr = endpointVolume->SetMute(nextmute, NULL); It compiles and seems to work now. I have uploaded my changed pprovista.cpp file and the pprovista.dll file to the temp folder in a file called compiled_pprovista.zip for you to review. --- In [email protected], "brucexs" <bswit...@...> wrote: > > > > --- In [email protected], "Melissa" <excesspapers@> wrote:
