Re: [python-win32] Guaranteed cleanup code execution?

2010-01-11 Thread Mario Alejandro Vilas Jerez
If your process is being terminated forcefully (like from the task manager) then you probably don't want to run any cleanup code. If you really must you could code something in C, put it in a DLL library and have it executed in DllMain when the library is unloaded. (And I think you'll still have pr

Re: [python-win32] Porting code from Python 2.x code to Python 3.x

2010-01-06 Thread Mario Alejandro Vilas Jerez
Try this script, it comes with your Python 3 installation: http://docs.python.org/library/2to3.html You may have to review the source code manually in non trivial cases, though. Regards, -Mario On Thu, Jan 7, 2010 at 2:40 AM, Santosh Mohan wrote: > HI, > > I installed new version of Python 3.

[python-win32] WinAppDbg 1.3 is out!

2009-11-30 Thread Mario Alejandro Vilas Jerez
What is WinAppDbg? == The WinAppDbg python module allows developers to quickly code instrumentation scripts in Python under a Windows environment. It uses ctypes to wrap many Win32 API calls related to debugging, and provides an object-oriented abstraction layer to manipula

Re: [python-win32] Shell extension debugging

2009-06-28 Thread Mario Alejandro Vilas Jerez
Did you try killing all instances of explorer.exe instead of rebooting? That might do the trick and it's faster. On Sun, Jun 28, 2009 at 9:10 AM, Gertjan Klein wrote: > Hi, > > I am trying to write a shell context menu handler, based on the example > I found in Lib\site-packages\win32comext\shel

Re: [python-win32] [Full-disclosure] WinAppDbg version 1.2 is out!

2009-06-16 Thread Mario Alejandro Vilas Jerez
Basically it's got some different features than PyDbg and a more complete documentation. If you have an *existing* project built upon PyDbg it's probably not worth switching (unless you've hit some very bad problem with it) but I believe it's better for newer projects, as this new library is more f

[python-win32] WinAppDbg version 1.2 is out!

2009-06-16 Thread Mario Alejandro Vilas Jerez
What is WinAppDbg? == The WinAppDbg python module allows developers to quickly code instrumentation scripts in Python under a Windows environment. It uses ctypes to wrap many Win32 API calls related to debugging, and provides an object-oriented abstraction layer to manipulate thre

Re: [python-win32] Fwd: Phyton editor

2009-06-03 Thread Mario Alejandro Vilas Jerez
I like Python Scripter, it's free but it's got a small bug or two. The 1.7 version is better than the newer 1.9. http://www.mmm-experts.com/Downloads.aspx?ProductId=4 On Wed, Jun 3, 2009 at 7:57 PM, Steven James wrote: > I like SPE and Wing. Wing isn't free though. > > http://pythonide.blogspot

Re: [python-win32] how to use CreateProcessWithLogonW

2009-06-02 Thread Mario Alejandro Vilas Jerez
How about this? import ctypes NULL = 0 TRUE = 1 FALSE = 0 INVALID_HANDLE_VALUE = -1 WORD = ctypes.c_ushort DWORD = ctypes.c_uint LPSTR = ctypes.c_char_p LPBYTE = LPSTR HANDLE = DWORD # typedef struct _PROCESS_INFORMATION { # HANDLE hProcess; # HANDLE hThread; # DWORD dwProces

Re: [python-win32] como hacer una rutina de auto-copiado en python con PyWin32

2009-05-27 Thread Mario Alejandro Vilas Jerez
Aca explican como averiguar el path a tu propio ejecutable: http://www.py2exe.org/index.cgi/WhereAmI Quedaria algo como esto (solo funcionaria con py2exe): import sys archivo_de_origen = sys.executable No conozco mucho PyWin32. De todas formas se puede usar ctypes, esto seguramente sirva: impo

[python-win32] WinAppDbg module v1.1 is out!

2009-05-15 Thread Mario Alejandro Vilas Jerez
What is WinAppDbg? == The WinAppDbg python module allows developers to quickly code instrumentation scripts in Python under a Windows environment. It uses ctypes to wrap many Win32 API calls related to debugging, and provides an object-oriented abstraction layer to manipulate thre

[python-win32] Python winappdbg module v1.0 is out!

2009-04-21 Thread Mario Alejandro Vilas Jerez
What is winappdbg? == The winappdbg python module allows developers to quickly code instrumentation scripts in Python under a Windows environment. It uses ctypes to wrap many Win32 API calls related to debugging, and provides an object-oriented abstraction layer to manipulate thre