Link to home
Start Free TrialLog in
Avatar of Ricardo_M
Ricardo_M

asked on

API Printing Functions for Win95, 98 and ME from delphi

Hi!

  I'm trying to intercept the printing jobs sent to printerspool, for operating systems like Win NT, Win2000 and XP I know that I havet to use FindFirstPrinterChangeNotification and FindNextPrinterChangeNotification. In SDK documentation said that these functions are only available for Win NT, 2000 and XP and these functions are not implemented for Win95, 98 and ME.

My question is, which are the API functions that I must use for Win95, 98 and ME and which it is the way to implement it from delphi.

Thanks

Ricardo
Avatar of geobul
geobul

Hi,

Just an idea: perhaps you could use a system-wide hook (WH_GETMESSAGE type) which will listen for WM_SPOOLERSTATUS messages.

Regards, Geo
Avatar of Ricardo_M

ASKER

Thanks for your reply Geo. I was checking on SDK documentation and this message tell me if a new job was added to the queue, that's ok but the documentation say that you must use FindFirstPrinterChangeNotification and FindNextPrinterChangeNotification, to get the properties for this job (page qty, size, etc.) and this only works in Windows NT and later not for Win95, 98 and ME.

WM_SPOOLERSTATUS works from Win95 and that's Ok, but I don't know how to change a job status (pause, delete, resume, etc.) in Win95 and later.

If any one of you know how to do please let me know how can I implement this task.

Regards,

Ricardo
Oh, sorry. I thought you just wanted to be notified that a print job had arrived. I'm afraid that you can't modify the print job itself this way.

Regards, Geo
Ricardo_M:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
Hi!
No comment has been added lately and this question is therefore classified abandoned.

If asker wishes to close the question, then refer to
https://www.experts-exchange.com/help/closing.jsp

Otherwise, I will leave a recommendation in the Cleanup topic area that this question is:

PAQ'd and pts refunded

Please leave any comments here within the next seven days. It is assumed that any participant not responding to this request is no longer interested in its final disposition.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

...Snehanshu
EE Cleanup Volunteer
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial