[python-win32] Ctypes and PdhMakeCounterPath

2009-09-03 Thread Steve Bonam
I'm trying to learn ctypes so I figured I'd reproduce something I did earlier with pywin32 but it seems I fail it. I'm sure I'm missing something here PdhMakeCounterPath Doc on msdn: http://msdn.microsoft.com/en-us/library/aa372649%28VS.85%29.aspx [code] from ctypes import * from

Re: [python-win32] Ctypes and PdhMakeCounterPath

2009-09-03 Thread Tim Roberts
Steve Bonam wrote: I'm trying to learn ctypes so I figured I'd reproduce something I did earlier with pywin32 but it seems I fail it. I'm sure I'm missing something here PdhMakeCounterPath Doc on msdn: http://msdn.microsoft.com/en-us/library/aa372649%28VS.85%29.aspx [code] from ctypes

Re: [python-win32] Ctypes and PdhMakeCounterPath

2009-09-03 Thread Steve Bonam
That's simple and intersting, I mistakenly thought it was being passed as a C structure with the python class as wrapper for it. Thank you. On Thu, Sep 3, 2009 at 2:21 PM, Tim Roberts t...@probo.com wrote: Steve Bonam wrote: I'm trying to learn ctypes so I figured I'd reproduce something I

Re: [python-win32] Ctypes and PdhMakeCounterPath

2009-09-03 Thread Tim Roberts
Steve Bonam wrote: That's simple and intersting, I mistakenly thought it was being passed as a C structure with the python class as wrapper for it. Thank you. Ctypes really tries to map C conventions pretty closely. Because it is possible to pass a C structure by value (that is, directly on

Re: [python-win32] Ctypes and PdhMakeCounterPath

2009-09-03 Thread Steve Bonam
I won't lie that made my brain hurt for a bit but I think I understand what happened there. Thanks for explaining On Thu, Sep 3, 2009 at 8:04 PM, Tim Roberts t...@probo.com wrote: Steve Bonam wrote: That's simple and intersting, I mistakenly thought it was being passed as a C structure with