Re: "SystemParametersInfo()" problem
- From: "Phil Wilson" <Phil.Wilson@xxxxxxxxxxxxxx>
- Date: Mon, 24 Oct 2005 15:34:57 -0700
Where are you invoking the custom action from? I'm thinking it may be from
the MSI Service process, and some of the security changes being made could
mean that you're asking about another desktop's screen saver, not the one
belonging to the interactive user.
(Oddly enough (to me at least) the SPI_GETSCREENSAVERRUNNING call says that
you can only ask about winsta0. )
--
Phil Wilson [MVP Windows Installer]
----
"Larry" <Larry@xxxxxxxxxxxxx> wrote in message
news:8A918CCD-4F2E-46A1-935D-2B799D6B800E@xxxxxxxxxxxxxxxx
> Hi there,
>
> We have an MSI application that invokes "SystemParametersInfo()" from the
> WinAPI using a custom MSI action though MSI probably has nothing to do
> with
> the problem (likely a pure WinAPI problem). Recently the function failed
> while running under a German version of Win2003 Server Standard edition
> (build #3790) with SP 1 installed. The function unexpectedly returns FALSE
> for failure but a call to "GetLastError()" returns zero (0) indicating no
> error. We've been calling this function successfully for 3 years on a
> variety
> of different Windows platforms including other German versions of Win2003.
> The exact call is as follows:
>
> BOOL PreviouslyEnabled;
> if (!SystemParametersInfo(SPI_GETSCREENSAVEACTIVE, 0,
> &PreviouslyEnabled, 0))
> {
> // "GetLastError()" now returns zero!
> }
>
> We instructed our customer to run "msinfo32.exe" (shipped with Windows)
> and
> save the data to a file so we can get more info which is now en route to
> us.
> The problem is probably obscure so you may not have encountered it before.
> Can you shed any light on the situation and is there anything else we
> should
> request from our customer to help diagnose the problem. Thank you.
.
- Prev by Date: Re: "Manually" load an Exe
- Next by Date: Re: getting wavedata from waveOutWrite
- Previous by thread: RE: "SystemParametersInfo()" problem
- Next by thread: Re: Question about DO_VERIFY_VOLUME,SL_OVERRIDE_VERIFY_VOLUME
- Index(es):
Relevant Pages
|