Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Reinhard Pagitsch
August 10, 2004, 2:02 pm
rate this thread
I want to write a simple module which uses the PDH library (performance
data helper library). But if I try to use
PDH_STATUS PdhAddCounter(PDH_HQUERY hQuery,LPCTSTR szFullCounterPath,
DWORD_PTR dwUserData,PDH_HCOUNTER* phCounter);
the return status is always -1073738820, and I can not find the code in
The declaration of the function is
my $call = new Win32::API('pdh', 'PdhAddCounter', 'NPPP','N');
Is this correct?
The call of the function is
$PDH_QUERY I get from the PdhOpenQuery function which is a valid handle
The call to PdhOpenQuery returns 0 which is ERROR_SUCCES, I belive?
ERROR_SUCCES is definded in the PDH.h as 0L.
$PDH_COUNTER i had defined as
my $PDH_COUNTER; or
my $PDH_COUNTER = " " x 80;
ISIS Information Systems
Austria tel: (+43) 2236 27551 150 Fax: 2236 21081
Visit our web site http://www.isis-papyrus.com