Re: PdhCollectQueryData won't collect data on WXP after SP2

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Pavel Lebedinsky (m_pll)
Date: 02/17/05


Date: Wed, 16 Feb 2005 16:18:26 -0800

Does it work if the scheduled task is using an account that
is a local administrstor?

Can you get valid data if you use typeperf or logman?

"Randy Scarborough" wrote:

>I am running Windows XP Home and have a server application that is started
> by Scheduled Tasks when the system starts up (not when a user logs on).
> This app uses PdhCollectQueryData to monitor the RAS networks througput.
>
> On XP with SP1 this ran fine, collecting data and logging it. On XP with
> SP2 the data collected always has the value zero.
>
> If I log on to the userid that created the Scheduled Task that starts the
> application, and then run the server app, the data is collected normally.
> But it is not collected when the app is started by Scheduled Tasks at
> system
> logon.
>
> Any idea what has changed, or how I can get this data?



Relevant Pages

  • RE: Force update?
    ... the process is not spawned by "Scheduled task". ... We program a separate small app. ... public string lpVerb; ... public IntPtr hInstApp; ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: Application executed at given time
    ... Don't use a windows service for this. ... and then set it up as a scheduled task which runs at 11 PM. ... The problem with setting it up as a service is that the config file is ... Even if you change the time, the app won't know. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Automatic starting of program on reboot
    ... Also I was just looking at some other services and acccessing the app may ... There is an option to log on as the Local System Account ... I noticed another service where this checkbox was selected ... them run as a scheduled task job. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Automatic starting of program on reboot
    ... is that instance of the program accessible to subsequent users who log on? ... Also I was just looking at some other services and acccessing the app may ... I noticed another service where this checkbox was selected ... them run as a scheduled task job. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Automatic starting of program on reboot
    ... just put a shortcut to it in the Startup Program Files folder? ... "Peter S." ... Also I was just looking at some other services and acccessing the app may ... them run as a scheduled task job. ...
    (microsoft.public.dotnet.languages.csharp)