Article View: borland.public.cppbuilder.nativeapi
Article #3452Re: Message-Only Invisible Window
From: Mike Collins
Date: Sun, 11 Jun 2006 23:57
Date: Sun, 11 Jun 2006 23:57
35 lines
2443 bytes
2443 bytes
Ok guys, not a virus - would like to think that i've asked enough stupid questions here that people would know i'm not a virus writter. I just didn't want to distract from the problem by going into a long explaination of the exact problem. Basically I'm bug fixing a GinaStub system that we have had in place for the last 9 months. I've just recently started to recieve some errors. On careful examination and scowering MSDN, I have found that the winlogon exported funtions are not thread safe. In my main dll / thread I had a procedure that called a specific winlogon exported function. My polling thread would call this procedure. However, this would seem to be in the context of the polling thread, not the main thread. So this is the reason for the message window. The polling thread would SendMessage to the hidden window which would call the procedure in the context of the main thread. I've got a basic implimentation working now except it causes some strange problems in Windows 2k3 i.e. seems to cause certain services not to start. If i simply wanted to hide a window i would do it with ShowWindow.... Mike "JD" <nospam@nospam.com> wrote in message news:448c53ad$1@newsgroups.borland.com... > > Bob Gonder <notbg@notmindspring.invalid> wrote: >> >> [...] Best way to prevent that is to not do it this way. > > Sounds like a damn virus to me. > > ~ JD >
Technical Details
Message-ID:
<448cadfe$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<448c3299@newsgroups.borland.com> <i7do82h01e88f5hkl6sfbukbi0hbd19m59@4ax.com> <448c53ad$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,80c772113b1e51c1 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Collins" <its@TheBottomOfThePost.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <448c3299@newsgroups.borland.com> <i7do82h01e88f5hkl6sfbukbi0hbd19m59@4ax.com> <448c53ad$1@newsgroups.borland.com> Subject: Re: Message-Only Invisible Window Date: Mon, 12 Jun 2006 00:57:49 +0100 Lines: 37 Organization: SDA Ltd X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.2663 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2663 NNTP-Posting-Host: 81.2.92.14 Message-ID: <448cadfe$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1150070270 81.2.92.14 (11 Jun 2006 16:57:50 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail