Declare Function OpenProcess Lib "kernel32" _
(ByVal dwDesiredAccess As Long, _
ByVal bInheritHandle As Long, _
ByVal dwProcessId As Long) As Long
Declare Function GetExitCodeProcess Lib "kernel32" _
(ByVal hProcess As Long, _
ByVal lpExitCode As Long) As Long
Public Const PROCESS_QUERY_INFORMATION = &H400
Public Const STILL_ACTIVE = &H103
Public Sub ShellAndWait(ByVal PathName As String)
Dim hProg As Long
Dim hProcess As Long, ExitCode As Long
hProg = Shell(PathName)
hProcess = OpenProcess(PROCESS_QUERY_INFORMATION, False, hProg)
Do
GetExitCodeProcess(hProcess, ExitCode)
Loop While ExitCode = STILL_ACTIVE
End Sub
Ce programme dézippe bien mon fichier mais lorsque l'archive est protégée par un mot de passe, ce bout de code s'execute mais le fichier ne se dezippe pas. Pouvez-vous m'aider?