bon je vais repondre a ma propre question:
pour desactiver:
SystemParametersInfo(SPI_SETLOWPOWERACTIVE,0,NULL,
SPIF_SENDWININICHANGE);
SystemParametersInfo(SPI_SETPOWEROFFACTIVE,0,NULL,
SPIF_SENDWININICHANGE);
pour reactiver:
SystemParametersInfo(SPI_SETLOWPOWERACTIVE,1,NULL,
SPIF_SENDWININICHANGE);
SystemParametersInfo(SPI_SETPOWEROFFACTIVE,1,NULL,
SPIF_SENDWININICHANGE);
chez moi le SPI_SETPOWEROFFACTIVE suffit mais je pense que SPI_SETLOWPOWEROFFACTIVEc'est pour le mode veille
voila voila
[jfdsdjhfuetppo]--Message édité par Glopman--[/jfdsdjhfuetppo]
---------------
Chaos is found in greatest abundance wherever order is being sought. It always defeats order, because it is better organized.