Je n'arrive pas à lire la cle"AutoRestartShell" de
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
J'utilise la fonction
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
Private Function Lecture_Reg(Clef As String, Sous_clef As String) As String 
    If My.Computer.Registry.GetValue(Clef, Sous_clef, Nothing) Is Nothing Then                      
        ' test si la clef Clef & "\" & Sous_Clef existe
        MsgBox("La clé " & Sous_clef & " de " & Chr(13) & Clef & "  n'existe pas")
    End If
    Return My.Computer.Registry.GetValue(Clef, Sous_clef, Nothing) 
End Function
J'obtiens toujours la valeur nothing (=0) bien que AutoRestartShell contienne 1..
Je suis en VB.net 2012.. Merci de votre réponse