Hi Tom,
Thanks for your sample and the detail information.
I followed the instructions in the readme.txt to test your sample program
on my machine and another test machine, one machine is XP sp1 another is
windows 2003 both system have VS.NET 2003 installed. However the test
sample works fine on both systems. Is this issue only happened on certain
systems?
If so, you may check if there are some global windows hooks installed on
your system. We don't have a good way to check if there is a global hook ,
but you may check the loaded modules of this program,
You may use the utility ListDLLs from SysInternal to get a list of the
loaded modules and check if there is any strange modules loaded.
You may download ListDLLs from :
http://www.sysinternals.com/ntw2k/freeware/listdlls.shtml
Here is a list of loaded modules when running the test program on my system:
Alt-Tab and Graphics, POC.exe pid: 3040
Command line: "Alt-Tab and Graphics, POC.exe"
Version Path
1.00.1663.19566 E:\Customers_code\Alt-Tab and Graphics\bin\Debug\Alt-Tab
and Graphics, POC.exe
5.01.2600.1217 D:\WINDOWS\System32\ntdll.dll
2.00.40607.0016 D:\WINDOWS\system32\mscoree.dll
5.01.2600.1106 D:\WINDOWS\system32\KERNEL32.dll
5.01.2600.1106 D:\WINDOWS\system32\ADVAPI32.dll
5.01.2600.1361 D:\WINDOWS\system32\RPCRT4.dll
6.00.2800.1400 D:\WINDOWS\system32\SHLWAPI.dll
7.00.2600.1106 D:\WINDOWS\system32\msvcrt.dll
5.01.2600.1346 D:\WINDOWS\system32\GDI32.dll
5.01.2600.1255 D:\WINDOWS\system32\USER32.dll
5.01.2600.1106 D:\WINDOWS\System32\IMM32.DLL
5.01.2600.0000 D:\WINDOWS\System32\LPK.DLL
1.409.2600.1106 D:\WINDOWS\System32\USP10.dll
1.01.4322.2030 D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll
7.10.3052.0004 D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\MSVCR71.dll
1.01.4322.2030 D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll
5.01.2600.1362 D:\WINDOWS\system32\ole32.dll
6.00.2800.1233 D:\WINDOWS\system32\SHELL32.dll
6.00.2800.1106
D:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0
10.0_x-ww_f7fb5805\comctl32.dll
5.82.2800.1106 D:\WINDOWS\system32\comctl32.dll
1.01.4322.2030 d:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll
6.00.2800.1405 D:\WINDOWS\system32\WININET.dll
5.131.2600.1123 D:\WINDOWS\system32\CRYPT32.dll
5.01.2600.1362 D:\WINDOWS\system32\MSASN1.dll
3.50.5016.0000 D:\WINDOWS\system32\OLEAUT32.dll
5.01.2600.1106 D:\WINDOWS\System32\Secur32.dll
d:\windows\assembly\nativeimages1_v1.1.4322\mscorlib\1.0.5000.0__b77a5c56193
4e089_eb123773\mscorlib.dll
1.01.4322.0573 D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorsn.dll
6.00.2800.1106 D:\WINDOWS\System32\uxtheme.dll
5.01.2600.1106 D:\WINDOWS\System32\MSCTF.dll
1.01.4322.2030
d:\windows\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\sy
d:\windows\assembly\nativeimages1_v1.1.4322\system.windows.forms\1.0.5000.0_
_b77a5c561934e089_21710e7e\system.windows.forms.dll
1.01.4322.2030
d:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll
d:\windows\assembly\nativeimages1_v1.1.4322\system\1.0.5000.0__b77a5c561934e
089_7259b343\system.dll
1.01.4322.2030
D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\MSCORJIT.DLL
7.10.3052.0004
D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\diasymreader.dll
1.01.4322.2030
d:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.d
d:\windows\assembly\nativeimages1_v1.1.4322\system.drawing\1.0.5000.0__b03f5
f7f11d50a3a_e65358c8\system.drawing.dll
1.01.4322.2030
d:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.d
d:\windows\assembly\nativeimages1_v1.1.4322\system.xml\1.0.5000.0__b77a5c561
934e089_a5c4548e\system.xml.dll
5.01.2600.1106 D:\WINDOWS\System32\msctfime.ime
5.01.3101.0000
D:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.10.0_x-
ww_712befd8\gdiplus.dll
5.01.2600.1106 D:\WINDOWS\System32\Msimtf.dll
If your list is different to the list above, you may try temporary remove
the different dll ,then reboot the system and try again to see if the
problem still persists.
Please feel free to let me know if you have any questions when analyzing
the module list.
Thanks!
Best regards,
Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.