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

From: Randy Scarborough (void_at_ibm.net)
Date: 02/17/05


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.



Relevant Pages

  • Re: Group Policy to control custom server application
    ... App launch is fine, found a way to do this, it is the ... software installed on the client that is the problem. ... A call to the app from the script. ... users id to the server app. ...
    (microsoft.public.windows.server.active_directory)
  • Re: TcpClient unable to connect to a TcpListener
    ... and I never see that even though the client app says it is connected. ... app is connected to I have no idea but it is not my server app. ... >> 3) I turned off XP firewall on both boxes. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Win CE to Windows XP Embedded
    ... We have got a Win CE running apps on PDAs. ... The first way is to build a terminal server app on VC++ or something and deploy it on the server. ... Then to enable the thin clients to access this server app using one of the protocols. ...
    (microsoft.public.windowsxp.embedded)
  • Re: create a project without dialog
    ... I did this and I also created a tray icon to activate the dialog app so the ... user could interact with the server app if required. ... The REAL question in this case is "How do I have an ... OP mentioned client server program. ...
    (microsoft.public.vc.mfc)
  • Re: Windows.. its like coming home!
    ... gradual transition, especially in going from OS 9 to OS X. ... They needed something that could compete with Windows, ... mean by the "2 of every app" comment before - Apple took whatever apps ... I've found that because the Dock shows applications rather than windows, ...
    (comp.sys.mac.advocacy)