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
___
python-win32 mailing list
python-win32@py
On Mar 26, 2012, at 3:20 PM, Tim Roberts wrote:
> Scott Leerssen wrote:
>> I'm trying to write a DWORD value to the registry using _winreg.SetValueEx
>> and anything greater than 0x7fff yields a "ValueError: Could not convert
>> the data to the specified type." I've seen a few posts saying
On Mar 26, 2012, at 3:20 PM, Tim Roberts wrote:
> Scott Leerssen wrote:
>> I'm trying to write a DWORD value to the registry using _winreg.SetValueEx
>> and anything greater than 0x7fff yields a "ValueError: Could not convert
>> the data to the specified type." I've seen a few posts saying
Scott Leerssen wrote:
> I'm trying to write a DWORD value to the registry using _winreg.SetValueEx
> and anything greater than 0x7fff yields a "ValueError: Could not convert
> the data to the specified type." I've seen a few posts saying that taking
> the complement of the large integer (ba
I'm trying to write a DWORD value to the registry using _winreg.SetValueEx and
anything greater than 0x7fff yields a "ValueError: Could not convert the
data to the specified type." I've seen a few posts saying that taking the
complement of the large integer (basically making it a negative v