Re: PdhCollectQueryData won't collect data on WXP after SP2 - Solved
From: Randy Scarborough (void_at_ibm.net)
Date: 02/17/05
- Next message: Amit M.: "Programmatically create and synch offline folders"
- Previous message: Randy Scarborough: "Re: Run an Application before winlogon password??"
- In reply to: Randy Scarborough: "PdhCollectQueryData won't collect data on WXP after SP2"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 17 Feb 2005 09:02:10 -0800
The problem turns out tobe that the PerfNet monitor service that starts
automatically when Windows starts has not yet finished its initialization
when my server app starts, and so it fails to connect to or supply data to
my app. If I add a 15-second delay to my app before it attempts to acquire
data, everything works fine.
"Randy Scarborough" <void@ibm.net> wrote in message
news:OOc58qHFFHA.208@TK2MSFTNGP12.phx.gbl...
>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.
- Next message: Amit M.: "Programmatically create and synch offline folders"
- Previous message: Randy Scarborough: "Re: Run an Application before winlogon password??"
- In reply to: Randy Scarborough: "PdhCollectQueryData won't collect data on WXP after SP2"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|