Using windll with complex data types

Ben C benc1 at today.com.au
Sun Nov 3 21:05:00 EST 2002


Ahh (*insite*) ... of course ( I have been staring at this for too
long) ... actually it is 3.x I was looking for ... two parts

thanks very much Neil


"Neil Hodgson" <nhodgson at bigpond.net.au> wrote in message news:<oZ2x9.4828$5u4.15910 at news-server.bigpond.net.au>...
> Ben C:
> 
> > API short int __stdcall GetVersion( VERSION *lpVersion );
> > ...
> > # If I Feed This Into The Builtin Struct Function
> > struct.unpack( 'l', '\x03\x00\x02\x00' )
> 
>    Which is likely to mean version 2.0.3 as version numbers often encode
> their parts in separate bytes.
> 
> > # I End Up With A Nonsense Number
> > (131075,)
> 
>    == 0x20003
> 
>    Neil



More information about the Python-list mailing list