• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 411
  • Last Modified:

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
0
Ricardo_M
Asked:
Ricardo_M
1 Solution
 
geobulCommented:
Hi,

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

Regards, Geo
0
 
Ricardo_MAuthor Commented:
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
0
 
geobulCommented:
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
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
CleanupPingCommented:
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.
0
 
snehanshuCommented:
Hi!
No comment has been added lately and this question is therefore classified abandoned.

If asker wishes to close the question, then refer to
http://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
0
 
moduloCommented:
PAQed, with points refunded (50)

modulo
Community Support Moderator
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now