Article View: borland.public.cppbuilder.nativeapi
Article #13759Re: Casting LPARAM to correct type
From: Remy Lebeau (TeamB)
Date: Thu, 11 Sep 2003 23:44
Date: Thu, 11 Sep 2003 23:44
28 lines
1686 bytes
1686 bytes
"Brent" <nospam@nospam.com> wrote in message
news:3f610680@newsgroups.borland.com...
> The lParam points to the address of a DEBUGHOOKINFO structure. How do I
get
> the 'data' from this structure and pass it onto the CallNextHookEx
function?
Simply cast the LPARAM to a DEBUGHOOKINFO* pointer like you would any other
kind of casting.
DEBUGHOOKINFO *lpdhi = (DEBUGHOOKINFO *)lParam;
// use lpdhi as needed...
Or:
DEBUGHOOKINFO *lpdhi = reinterpret_cast<DEBUGHOOKINFO *>(lParam);
// use lpdhi as needed...
Gambit
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/03
Technical Details
Message-ID:
<3f6108b9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!pln-w!extra.newsguy.com!lotsanews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f610680@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,bee5ed984338f8ea X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-11 16:46:22 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f610680@newsgroups.borland.com> Subject: Re: Casting LPARAM to correct type Date: Thu, 11 Sep 2003 16:44:34 -0700 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f6108b9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1063323833 207.175.226.26 (11 Sep 2003 16:43:53 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!pln-w!extra.newsguy.com!lotsanews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail