🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #17224

Re: Intercepting/Hooking all print messages for the printers

#17224
From: Remy Lebeau (TeamB)
Date: Sun, 30 Mar 2003 01:34
25 lines
1739 bytes
"Zack Wickes" <zwicks@home.com> wrote in message
news:3e863ee4$1@newsgroups.borland.com...

> I need to have my program hook into Windows such that I
> know when any print job (from any and all process spaces)
> is sent to a printer and how many pages the job is.

What you're probably looking for is FindFirstPrinterChangeNotification() and
FindNextPrinterChangeNotification().

> WM_PRINT seems to be called whenever a GDI object needs
> to print itself onto an HDC....

Correct.  WM_PAINT only applies to visual displays, not hardware printers at
all.


Gambit


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.463 / Virus Database: 262 - Release Date: 3/17/03
Technical Details
Message-ID: <3e864761@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-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e863ee4$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2d32dd90788cc57f
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-29 17:27:28 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e863ee4$1@newsgroups.borland.com>
Subject: Re: Intercepting/Hooking all print messages for the printers
Date: Sat, 29 Mar 2003 17:34:48 -0800
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3e864761@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048987489 207.175.226.26 (29 Mar 2003 17:24:49 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail