Re: [python-win32] writing DWORD values > 0x7ffffff

2012-03-26 Thread Tim Golden
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

Re: [python-win32] writing DWORD values > 0x7ffffff

2012-03-26 Thread Scott Leerssen
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

Re: [python-win32] writing DWORD values > 0x7ffffff

2012-03-26 Thread Scott Leerssen
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

Re: [python-win32] writing DWORD values > 0x7ffffff

2012-03-26 Thread Tim Roberts
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

[python-win32] writing DWORD values > 0x7ffffff

2012-03-26 Thread Scott Leerssen
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