arguments to calldll.call_foreign_function() ?

Jon Nicoll jkn at nicorp.f9.co.uk
Thu Jun 21 15:15:27 CEST 2001


Thanks very much! I see there's been another posting just earlier
around the same topic, synchronicitously (?). Your comments there were
very helpful as well, Gordon, thanks.

   Jon N

Onwards with my experimentation ...


gmcm at hypernet.com (Gordon McMillan) wrote in message news:<90C68291Bgmcmhypernetcom at 199.171.54.154>...
> 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