Re: [python-win32] passing c structure into python function

2010-02-15 Thread a h
Hi thnks. i have used struct.unpack function for small c structure as the way Tim has suggested. i have an complex C structure, and passing this structure as a string and then using struct.unpack() is very tough job.and also i have pointers in my struct now. i want that i have structure say like

[python-win32] pywin32 documentation wiki

2010-02-15 Thread le dahut
Hello, I've made some development around Windows services and logon events detection (using SCM and using SENS). I've spend a lot of time discovering how things work and trying to write them (with great help from people on this list !) I think that people may be interested by some examples

Re: [python-win32] pywin32 documentation wiki

2010-02-15 Thread Tim Golden
On 15/02/2010 13:30, le dahut wrote: Hello, I've made some development around Windows services and logon events detection (using SCM and using SENS). I've spend a lot of time discovering how things work and trying to write them (with great help from people on this list !) I think that people

Re: [python-win32] pywin32 documentation wiki

2010-02-15 Thread Ron Arts
Op 15-02-10 14:59, Tim Golden schreef: On 15/02/2010 13:30, le dahut wrote: Hello, I've made some development around Windows services and logon events detection (using SCM and using SENS). I've spend a lot of time discovering how things work and trying to write them (with great help from

Re: [python-win32] USB Insertion Extrinsic Event exists?

2010-02-15 Thread Tim Golden
On 14/02/2010 09:41, Tim Golden wrote: Just realised that pywin32 ships with an example of this. From my site-packages directory: win32\Demos\service\serviceEvents.py I haven't had the chance to try it out, but let is know if it does meet your case. Well I've given it a go and, naturally,

Re: [python-win32] USB Insertion Extrinsic Event exists?

2010-02-15 Thread Tim Golden
OK; now added the service-based example to: http://timgolden.me.uk/python/win32_how_do_i/detect-device-insertion.html TJG ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Calling random Windows function?

2010-02-15 Thread Randy Syring
Roger Upole wrote: If you decide to use Volume Shadow Copy, I've wrapped some of the IVss* interfaces for Python, enough to be able to backup selected files from a volume. Bear in mind that if an application has a file open for writing and is not VSS-aware, you may get the file in an

Re: [python-win32] passing c structure into python function

2010-02-15 Thread Tim Roberts
a h wrote: thnks. i have used struct.unpack function for small c structure as the way Tim has suggested. i have an complex C structure, and passing this structure as a string and then using struct.unpack() is very tough job.and also i have pointers in my struct now. i want that i have

Re: [python-win32] passing c structure into python function [SEC=PERSONAL]

2010-02-15 Thread Andrew MacIntyre
On Behalf Of Tim Roberts a h wrote: thnks. i have used struct.unpack function for small c structure as the way Tim has suggested. i have an complex C structure, and passing this structure as a string and then using struct.unpack() is very tough job.and also i have pointers in my