.exe dans la liste des processus Windows uniquement
Rico 95
Messages postés18Date d'inscriptionmardi 13 mars 2007StatutMembreDernière intervention21 mai 2008
-
29 août 2007 à 22:05
FMatrix07
Messages postés233Date d'inscriptionmercredi 26 février 2003StatutMembreDernière intervention21 février 2009
-
31 août 2007 à 07:22
Bonjour à tous,
Je fais des .exe mais ils apparaissent en tant qu'application, lorsqu'ils sont lancés, dans le gestionnaire des tâches Windows et dans la liste des procesus.
Comment faire pour que l'exe apparaisse seulement dans la liste des processus lorsqu'il est lancé ?
Merci d'avance à l'âme charitable qui me répondra ...
FMatrix07
Messages postés233Date d'inscriptionmercredi 26 février 2003StatutMembreDernière intervention21 février 20092 30 août 2007 à 05:33
Bonjour,
Tu fais
Dans un module
Option Explicit
Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, _
ByVal wCmd As Long) As Long
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _
ByVal nCmdShow As Long) As Long
Public Function LanceGetWindow(ByVal hwnd As Long, _
ByVal wCmd As Long) As Long
LanceGetWindow = GetWindow(hwnd, wCmd)
End Function
Public Function LanceShowWindow(ByVal hwnd As Long, _
ByVal nCmdShow As Long)
ShowWindow hwnd, nCmdShow
End Function
Et au demarrage de ton application
Dim hWndDeMonForm
hWndDeMonForm = LanceGetWindow(Me.hwnd, 4)
LanceShowWindow hWndDeMonForm, 0