?
Solved

API Printing Functions for Win95, 98 and ME from delphi

Posted on 2003-03-05
6
Medium Priority
?
410 Views
Last Modified: 2010-04-04
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
Comment
Question by:Ricardo_M
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 17

Expert Comment

by:geobul
ID: 8072509
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
 

Author Comment

by:Ricardo_M
ID: 8073328
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
 
LVL 17

Expert Comment

by:geobul
ID: 8073637
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!

 

Expert Comment

by:CleanupPing
ID: 9316931
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
 
LVL 5

Expert Comment

by:snehanshu
ID: 10037266
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
 

Accepted Solution

by:
modulo earned 0 total points
ID: 10113798
PAQed, with points refunded (50)

modulo
Community Support Moderator
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question