salut a tous
comment recupérer la valeur de l'icone du volume du pc
muet ou actif
si quelqu'un a une idée
merci

j'ai trouvé sa pour activé le son ou le rendre muet
mais pas l'info

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Imports System
Imports System.Windows.Forms
Imports System.Runtime.InteropServices
 
Public Class Form1
    Inherits Form
    Private Const APPCOMMAND_VOLUME_MUTE As Integer = &H80000
 
    <DllImport("user32.dll")> _
    Public Shared Function SendMessageW(ByVal hWnd As IntPtr, _
           ByVal Msg As Integer, ByVal wParam As IntPtr, _
           ByVal lParam As IntPtr) As IntPtr
    End Function
 
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        SendMessageW(Me.Handle, WM_APPCOMMAND, _
                         Me.Handle, New IntPtr(APPCOMMAND_VOLUME_MUTE))
End Sub