Article View: borland.public.cppbuilder.nativeapi
Article #2329Re: My app closes, but cancels Windows shutdown?
From: A Nonymous
Date: Tue, 13 Mar 2007 17:05
Date: Tue, 13 Mar 2007 17:05
23 lines
2336 bytes
2336 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote in news:45f3285b$1
@newsgroups.borland.com:
> WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
> {
> hHook = SetWindowsHookEx(WH_CALLWNDPROCRET,
> (HOOKPROC)&CallWndRetProc, NULL, GetCurrentThreadId());
> // ...
> return 0;
> }
>
Thanks for all the help. This works. The hook is installed and the
routine works. The bad news is that it doesn't show anything wrong. There
are no false returns, at least none I can see. If any child thread can be
the culprit then it could be a child thread created by a 3rd party control.
I was tied up all day yesterday and did not work on my app at all. I am
going to get back on it today and see what else I can do to track this
down.
Can you think of anything else that would cause the Wndows shutdown to be
canceled?
Technical Details
Message-ID:
<Xns98F270DA48944anonymoushotmailcom@207.105.83.66>Path:
arc1-ca.pugleaf.net!g2news1.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:
<Xns98ED90968E734anonymoushotmailcom@207.105.83.66> <45f07307@newsgroups.borland.com> <Xns98ED988E421A8anonymoushotmailcom@207.105.83.66> <45f08f8f$1@newsgroups.borland.com> <Xns98EDAC20DAA4Eanonymoushotmailcom@207.105.83.66> <45f095bf$1@newsgroups.borland.com> <45f0a594@newsgroups.borland.com> <45f0a77f$1@newsgroups.borland.com> <45f0d6c1@newsgroups.borland.com> <Xns98EE722D896C6anonymoushotmailcom@207.105.83.66> <45f1a96b$1@newsgroups.borland.com> <Xns98EE9F12960D1anonymoushotmailcom@207.105.83.66> <45f1d8a5$1@newsgroups.borland.com> <Xns98EEAB7C7DA52anonymoushotmailcom@207.105.83.66> <45f1ffc0$1@newsgroups.borland.com> <Xns98EF8B2886544anonymoushotmailcom@207.105.83.66> <45f3285b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,346f60f70c29a156 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: My app closes, but cancels Windows shutdown? From: A Nonymous <anonymous@hotmail.com> References: <Xns98ED90968E734anonymoushotmailcom@207.105.83.66> <45f07307@newsgroups.borland.com> <Xns98ED988E421A8anonymoushotmailcom@207.105.83.66> <45f08f8f$1@newsgroups.borland.com> <Xns98EDAC20DAA4Eanonymoushotmailcom@207.105.83.66> <45f095bf$1@newsgroups.borland.com> <45f0a594@newsgroups.borland.com> <45f0a77f$1@newsgroups.borland.com> <45f0d6c1@newsgroups.borland.com> <Xns98EE722D896C6anonymoushotmailcom@207.105.83.66> <45f1a96b$1@newsgroups.borland.com> <Xns98EE9F12960D1anonymoushotmailcom@207.105.83.66> <45f1d8a5$1@newsgroups.borland.com> <Xns98EEAB7C7DA52anonymoushotmailcom@207.105.83.66> <45f1ffc0$1@newsgroups.borland.com> <Xns98EF8B2886544anonymoushotmailcom@207.105.83.66> <45f3285b$1@newsgroups.borland.com> Message-ID: <Xns98F270DA48944anonymoushotmailcom@207.105.83.66> User-Agent: Xnews/5.04.25 NNTP-Posting-Host: 74.254.162.162 Date: 13 Mar 2007 09:05:36 -0800 X-Trace: newsgroups.borland.com 1173801936 74.254.162.162 (13 Mar 2007 09:05:36 -0800) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.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