arguments to calldll.call_foreign_function() ?
Gordon McMillan
gmcm at hypernet.com
Wed Jun 20 13:00:04 EDT 2001
Jon Nicoll wrote:
>Hi there
> I want to experiment with using calldll to access a win32
>function: QueryPerformanceCounter(), which has a prototype
>
>BOOL QueryPerformanceCounter(
> LARGE_INTEGER *lpPerformanceCount // address of current counter
>value
> );
[snip]
>>> from dynwin import windll
>>> k = windll.module('kernel32')
>>> b = windll.membuf(8)
>>> k.QueryPerformanceCounter(b.address())
1
>>> b.read()
'\367[\363\211\246\000\000\000'
>>>
- Gordon
More information about the Python-list
mailing list