J
Jason Teagle
WinXP Pro, SP1
I'm trying to create an installation package for a screensaver, and so I
want to put shortcuts into the start menu to allow the user to configure it
and test it without having to go through the Display Properties dlg. But
there seems to be a subtle bug.
To configure a screensaver, the Properties box and the context menu in
Explorer issue "/C:nnn" as the command-line parameter, where nnn is, I
assume, a parent window's handle. So my screensaver checks for "/C:" as the
first three characters to know if it should configure or run. From the
Properties box, this works fine; from the context menu of Explorer, this
works fine; from a manual command line at the command prompt, this also
works fine.
But I created a Start Menu shortcut which I can verify says
"myscreensaver.scr /C:0" (the parent window part is unused by my
screensaver), and whenever I try that, it does NOT work. By a quick message
box in the code, I can see that it is started with /S (for Start running)
EVEN THOUGH THE GIVEN PARAMETER IS /C:0!!!
Is this a bug on XP's part? It seems it is being too 'intelligent' and since
it's a screensaver, ignoring my parameter and issuing /S. I can assure you I
can put anything I like as the parameter and it will happily ignore it and
issue /S.
Command line parameters on EXEs DO work, before anyone wonders if my whole
system is shot {:v)
Any ideas?
I'm trying to create an installation package for a screensaver, and so I
want to put shortcuts into the start menu to allow the user to configure it
and test it without having to go through the Display Properties dlg. But
there seems to be a subtle bug.
To configure a screensaver, the Properties box and the context menu in
Explorer issue "/C:nnn" as the command-line parameter, where nnn is, I
assume, a parent window's handle. So my screensaver checks for "/C:" as the
first three characters to know if it should configure or run. From the
Properties box, this works fine; from the context menu of Explorer, this
works fine; from a manual command line at the command prompt, this also
works fine.
But I created a Start Menu shortcut which I can verify says
"myscreensaver.scr /C:0" (the parent window part is unused by my
screensaver), and whenever I try that, it does NOT work. By a quick message
box in the code, I can see that it is started with /S (for Start running)
EVEN THOUGH THE GIVEN PARAMETER IS /C:0!!!
Is this a bug on XP's part? It seems it is being too 'intelligent' and since
it's a screensaver, ignoring my parameter and issuing /S. I can assure you I
can put anything I like as the parameter and it will happily ignore it and
issue /S.
Command line parameters on EXEs DO work, before anyone wonders if my whole
system is shot {:v)
Any ideas?