Real Geek Forums  

Go Back   Real Geek Forums > Archives > Operating Systems > Windows XP > Windows XP WMI

Notices

Reply

Using PDH API to collect performance data via WBEM/WMI

 

LinkBack Thread Tools Display Modes
Old 12-14-2007, 02:29 AM   #1 (permalink)
Default Using PDH API to collect performance data via WBEM/WMI

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



karthig
Guest
 
Posts: n/a
Reply With Quote  
Reply

Tags
None

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
msinfo 32 "can't collect information" Benji Brisco Windows XP WMI 0 09-27-2006 09:43 PM
Performance Data Helper Error anisk Windows Vista Performance & Maintenance 0 08-14-2006 09:21 AM
winmsd - cant collect information Adam Windows XP WMI 2 07-01-2005 04:41 AM
sometimes data does get lost - BACKUP YOUR DATA Gary G Windows XP Photos 0 07-12-2003 01:18 PM
No performance to slow performance Victor Kapas Windows XP Performance & Maintenance 5 07-04-2003 05:04 AM


All times are GMT. The time now is 07:22 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright © 2005 - 2007 RealGeek.com. All rights reserved.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90