Reputation: 26013
I want to create a volume slider for my application. I don't mind whether it controls master volume or program volume, but I don't want to use pinvoke if there's an alternative. I'm using C# with .NET 3.5.
Upvotes: 3
Views: 1215
Reputation: 1330052
As mentioned in the Changing Master Volume Level question, there are 2 different APIs, depending on your OS (Xp or Vista).
Still, if you can call from your .net program some of the winapi functions mentionned in that question, you should be able to implement what you are asking for.
Upvotes: 2