22 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
23 |
*/ |
*/ |
24 |
|
|
25 |
|
#define WINVER 0x0501 |
26 |
|
|
27 |
#include <windows.h> |
#include <windows.h> |
28 |
#include <stdio.h> |
#include <stdio.h> |
29 |
#include <wtsapi32.h> |
#include <wtsapi32.h> |
339 |
/* Disable screen saver since we cannot catch its windows. */ |
/* Disable screen saver since we cannot catch its windows. */ |
340 |
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, FALSE, NULL, 0); |
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, FALSE, NULL, 0); |
341 |
|
|
342 |
|
/* We don't want windows denying requests to activate windows. */ |
343 |
|
SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, 0, 0); |
344 |
|
|
345 |
if (strlen(cmdline) == 0) |
if (strlen(cmdline) == 0) |
346 |
{ |
{ |
347 |
message("No command line specified."); |
message("No command line specified."); |