Pas la peine de mettre dans un module, il faut remplacer Public par Private est c ok
Et ca marche sous Xp
biboobeno
Messages postés12Date d'inscriptionlundi 15 septembre 2003StatutMembreDernière intervention 5 décembre 2004 17 mars 2004 à 09:31
Ca marche sous XP ?
cs_steven007
Messages postés150Date d'inscriptionjeudi 24 janvier 2002StatutMembreDernière intervention27 avril 2007 12 août 2003 à 04:43
de préférence oui ^^
ICIoBRa
Messages postés368Date d'inscriptiondimanche 24 juin 2001StatutMembreDernière intervention 7 décembre 2015 17 avril 2003 à 16:17
Fo le mettre dans un module ! :]
+²
HighJimbo
Messages postés3Date d'inscriptionlundi 7 avril 2003StatutMembreDernière intervention15 avril 2003 15 avril 2003 à 16:25
euh ça marche pô ! :
Public Const EWX_LOGOFF = 0
Public Const EWX_REBOOT = 2
Public Const EWX_SHUTDOWN = 1
ces lignes de code ne passe pas j'ai un mess d'erreur et comme j'ai pas l'aide de visu.... aidez moi siou plait !
12 juin 2004 à 20:05
Et ca marche sous Xp
17 mars 2004 à 09:31
12 août 2003 à 04:43
17 avril 2003 à 16:17
+²
15 avril 2003 à 16:25
Public Const EWX_LOGOFF = 0
Public Const EWX_REBOOT = 2
Public Const EWX_SHUTDOWN = 1
ces lignes de code ne passe pas j'ai un mess d'erreur et comme j'ai pas l'aide de visu.... aidez moi siou plait !
27 mars 2001 à 10:25
27 mars 2001 à 10:15
Public Declare Function ExitWindowsEx Lib "user32" _
(ByVal uFlags As Long, ByVal dwReserved As Long) _
As Long
Public Const EWX_LOGOFF = 0
Public Const EWX_REBOOT = 2
Public Const EWX_SHUTDOWN = 1
' Pour reboot
Call ExitWindowsEx(EWX_REBOOT, 0)
' Pour éteindre
Call ExitWindowsEx(EWX_SHUTDOWN, 0)
' Pour Logoff le gars
Call ExitWindowsEx(EWX_LOGOFF, 0)
'Copyright Mémère[2001]