Using PDH API to collect performance data via WBEM/WMI

K

karthig

Hi,

I am writing an application to collect performance data from remote machines
through PDH APIs. I can tell PDH library to use WBEM/WMI as the real-time
data source by invoking PdhSetDefaultRealTimeDataSource(DATA_SOURCE_WBEM).

My problem is with collecting performance data from a remote machine that
has a administrative user credentials different from that on the local
machine.

After telling PDH to use DATA_SOURCE_WBEM, how do I request PDH library to
use a different user credentials to login into the remote machine? It looks
like CoSetProxyBlanket is one call that will do this - but how do I get hold
of an IUnknown pointer (to be passed to CoSetProxyBlanket) when using PDH
APIs?

Can someone please clarify this?

Thanks,
Karthigeyan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top