WIN32PDH EnumObjects Error

pirx at mail.com pirx at mail.com
Sat Jan 26 18:02:23 EST 2002


"Dean Houghton" <Wideawake at btopenworld.com> wrote in message news:<a2rlev$dlg$1 at knossos.btinternet.com>...
> Hi
> 
> I am getting the following error when trying to get a list of available
> counter groups from a remote system.
> <<<< code >>>>
> 
> objects =
> win32pdh.EnumObjects(None,system_name,win32pdh.PERF_DETAIL_WIZARD,1)
> 
> <<<< error >>>>
> pywintypes.api_error: (-1073738789, 'EnumObjects for buffer size', 'No error
> message is available')
> 
> Any ideas ?? the same code is getting the counters from other machines with
> no problem but this machine seems to have more counters....
>
that's probably it. The win32 api call for that has a pointer to a
memory chunk allocated earlier (see the example in the pdh help). I
don't know how Python's wrap-up is doing that, but there must be a
way...
 
> regards



More information about the Python-list mailing list