Article View: borland.public.cppbuilder.nativeapi
Article #8064Retrieving Windows Messages without window
From: Mike King
Date: Wed, 01 Dec 2004 16:18
Date: Wed, 01 Dec 2004 16:18
5 lines
1233 bytes
1233 bytes
Is there a way to receive Windows Messages without a window? I'm trying to practice good programming practices by decoupling my UI from the core pieces of my application. I need to receive WM_DEVICECHANGE messages. To do that, I need to register a windows handle with the RegisterDeviceNotification API function.
Technical Details
Message-ID:
<41adeee2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5ff06343caccb767,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike King" <emailMK@excite.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Retrieving Windows Messages without window Date: Wed, 1 Dec 2004 11:18:42 -0500 Lines: 7 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 64.45.143.248 Message-ID: <41adeee2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1101917922 64.45.143.248 (1 Dec 2004 08:18:42 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail