[issue12026] Support more of MSI api by exposing handles

2011-05-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'd rather expose the missing functions, than supporting a mix of this module with a ctypes one; this patch sounds hackish. -- ___ Python tracker ___

[issue12026] Support more of MSI api by exposing handles

2011-05-08 Thread Mark Mc Mahon
Mark Mc Mahon added the comment: You can pass it to any function in the MSI SDK through ctypes. e.g. def ReadStream(record, field): buf = (ctypes.c_char * 2048)() orig_size = ctypes.sizeof(buf) status = 0 res = [] while status == 0: size

[issue12026] Support more of MSI api by exposing handles

2011-05-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: What's the purpose of the patch? I.e. what can you do when you have the handle exposed? -- ___ Python tracker ___ ___

[issue12026] Support more of MSI api by exposing handles

2011-05-06 Thread Mark Mc Mahon
New submission from Mark Mc Mahon : Background: My main use case for msilib is for working with/editing existing MSI files and not creating MSI files. As such I find much of the MSI API that I need missing. While not difficult to re-create _msi.c with ctypes, I thought it might be good to use