CS_CLASSDC for starkits' windows?



Hello folks,

I am currently trying to understand why my script works when run from
the normal wish interpreter and why it does not when run from within a
starkit/pack. The script uses the infamous PrintWindow() function of
the Windows (XP+) API to get the content of windows that it opens and
displays them with some rotation on a Zinc canvas. This part is done
using a capture DLL of mine that I still ought to give away the source
for (not ready yet (TM) :-)).

Well, anyhow, before digging further and trying further to understand
why things are not working when running from a starkit/pack, I thought
I would ask for help here, in case anyone has encountered similar
problems in the past or knows what is going on.

Using winspy, I have been able to track down the problem to the class
properties of the windows themselves. At least, I think I have... It
seems that all windows that are opened from the starkit/pack binary
have the CS_CLASSDC flag on, while all windows that are opened from the
stardard (activestate to be precise) wish have not got that flag on.
Does anybody know why? Apparently, CS_CLASSDC is in general not a good
idea. See the following link for more information:
http://blogs.msdn.com/oldnewthing/archive/2006/06/02/614235.aspx. Is
this an optimisation of some sort? Is there anyway to turn off that
behaviour and let all windows have their own device context?

I would appreciate any help, I'm rather stuck!

/Emmanuel

.



Relevant Pages

  • Re: Microsoft Warns of New Windows Flaw (March 19, 2003 )
    ... In WINDOWS SETUP in ADD/REMOVE PROGRAMS of Control Panel ... Uninstall Outlook Express, ... Java, Javascript, ActiveX and all the other script runner toys Billy ... Install WebWasher the spammers are terrified of free from ...
    (comp.security.misc)
  • Re: Microsoft Warns of New Windows Flaw (March 19, 2003 )
    ... In WINDOWS SETUP in ADD/REMOVE PROGRAMS of Control Panel ... Uninstall Outlook Express, ... Java, Javascript, ActiveX and all the other script runner toys Billy ... Install WebWasher the spammers are terrified of free from ...
    (comp.security.firewalls)
  • [NT] Flaw in Windows Script Engine Could Allow Code Execution
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The Windows Script Engine provides Windows operating systems with the ... blocked by Outlook Express 6.0 and Outlook 2002 in their default ...
    (Securiteam)
  • Re: Right click on text vs. right click on hyperlink
    ... I were to do that the built-in Windows way, I have to go down about ... >> me to open in one step the editing page of any archive page in my ... >> contains the below Windows script. ... >> that url and opens the editing page. ...
    (microsoft.public.scripting.vbscript)
  • Re: Turing of SP2 Firewall via registry entry?
    ... Group Policy that disables the firewall (see WF_XPSP2.doc ... Disabling the Use of Windows Firewall Across Your Network ... you create a script file that is read by ...
    (microsoft.public.windowsxp.security_admin)