Accessing remote perfmon/PDH data from a service, how to

From: Zoltan Luspai (zluspai_at_yahoo.com)
Date: 12/13/03


Date: Fri, 12 Dec 2003 22:55:00 -0800

Hello,

I am developing a data collection module which needs to
access remote Perfmon data using PDH libraries, and should
also run as service. The problem is when I run this code
as service the access is denied to the remote if it runs
as LocalSystem. The question is if it is possible, or how
can I dynamically authenticate from the service code, so
that it can access the perfmon data (probably same problem
as accessing the remote registry) ?

Thanks,
Zoltan