To increase and decrease the volume I use this code (c#):
[DllImport("user32.dll")]
static extern void keybd_event(byte bVk, byte bScan, uint dwFlags, int dwExtraInfo);
keybd_event((byte)Keys.VolumeUp, 0, 0, 0); // increase volume
keybd_event((byte)Keys.VolumeDown, 0, 0, 0); // decrease volume
How can I raise and lower the volume by 10% and How I can mute or set to full volume? I use a loop to decrease and increase the volume But I do not think that's the right way.