Dahlstrom, Roger wrote:
<snip>
> My questions are:
> 1.  Are there any win32 Python extensions that expose this?  If so, 
> which ones?

I doubt it; it's not available prior to Windows 2000, and MSDN says they 
might decide to change it later.

> 2.  If there are not extensions, does anyone know what the user32 .dll 
> in windows is expecting as a parameter (using ctypes)?

Really?  The very first Google hit is the MSDN page, which shows the 
parameters.  It wants a window handle -- an HWND.  That is a 32-bit 
integer on Win32, and a 64-bit integer on Win64.

> I've tried all the ints to no avail.
>

What do you mean by "to no avail"?  Where did you get the window 
handle?  What happened when you tried it?

-- 
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.


1.  OK, thanks - I will keep going down the IsHungAppWindow path.
2.  Yeah - I see the MSDN page and the HWND parameter.  I tried the following 
data types:
C_short, c_ushort, c_int, c_uint, c_long, c_ulong, c_longlong, c_ulonglong.  

"To no avail" means that I got the same message (which I should've included, 
sorry) when using any of them.  That error is:

Traceback (most recent call last):
  File "enumWindows.py", line 13, in <module>
    for wind in topWindows:
  File "enumWindows.py", line 8, in getText
    resultList.append((hwnd, win32gui.GetWindowText(hwnd), 
win32process.GetWindowThreadProcessId(hwnd)[1]), u32.IsHungAppWindow(chwnd))
ValueError: Procedure called with not enough arguments (4 bytes missing) or 
wrong calling convention

In the above traceback, hwnd is a Python variable, and chwnd is the ctypes 
variable assigned from hwnd, which I get from win32gui.EnumWindows().



DISCLAIMER:
This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and
may contain legally privileged and/or confidential information. If you are not 
the intended recipient
of this e-mail, you are hereby notified that any dissemination, distribution or 
copying of this e-mail, and 
any attachments thereto, is strictly prohibited. If you have received this in 
error, please immediately notify 
me and permanently delete the original and any copy of any e-mail and any 
printout thereof. 
E-mail transmission cannot be guaranteed to be secure or error-free. The sender 
therefore does not accept 
liability for any errors or omissions in the contents of this message which 
arise as a result of e-mail transmission.

NOTICE REGARDING PRIVACY AND CONFIDENTIALITY
Direct Edge ECN LLC may, at its discretion, monitor and review the content of 
all e-mail communications.

www.directedge.com
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to