On 26/03/2012 20:20, Tim Roberts wrote: > dw = struct.unpack('l',struct.pack('L', 0x80102030))[0] Seconded: I've used almost exactly this incantation for various Windows-y things for a few years now. TJG