From: C y b e r T e c h @ L i s t s . E x M a c h i n a . n e t
<http://www.cybercafe21.net> & <http://www.cybercafe21.tv>

J'ai finalement trouv� ce que je cherchais ...

Question:
How can I disable the Ctrl-Alt-Del key combonation in my application?

Answer:
Under Win95/98, Ctrl-Alt-Del and Alt-Tab are disabled when a screensaver is
active. You can use the Windows API function SystemParametersInfo to make
the system think a screensaver is active while your application is running.

Example:
// disable ctrl-alt-del and alt-tab
int result;
SystemParametersInfo(SPI_SCREENSAVERRUNNING, true, &result, NULL);

// enable ctrl-alt-del and alt-tab
int result;
SystemParametersInfo(SPI_SCREENSAVERRUNNING, false, &result, NULL);

Ca marche tr�s bien ...

Mais maintenant est-ce que quelqu'un sait comment emp�cher l'utilisateur
d'acc�der � la barre des t�ches ?
Toujours en C++ si possible ...

merci !


Laurent



Des Cadeaux, des avantages et des offres qui vous interessent ?
http://www.justforyou.be... what you want is what you get !
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CCTK vous est offert par Emakina  <http://www.emakina.com>
Pour vous desabonner <mailto:[EMAIL PROTECTED]>

Répondre à