Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

porting dll from NT to 98 strikes back (FindFirstPrinterChangeNotific)

Status
Not open for further replies.

moisesventura

Programmer
Mar 27, 2001
2
CA
Hi again,

My dll was working perfectly till I run it in 98. I'm trying to detect a document arriving to the printer Q.

First I've used:
hPrinterNotification = FindFirstPrinterChangeNotification(bla,bla,bla)

Works ok (I've checked hPrinterNotification == INVALID_HANDLE_VALUE and it's not)

But in the next step:

DWORD waitingResult = WaitForSingleObject(hPrinterNotification, jWaitingTime);

I receive a waitingResult == WAIT_FAILED with "The handle is invalid. " error.

Some idea? (Note... WAS WORKING IN NT!!!!!!)
 
dummy problems happens when you don't read carefully the documentation:

Requirements
Windows NT/2000: Requires Windows NT 3.5 or later.
Windows 95/98: Unsupported.
Header: Declared in Winspool.h; include Windows.h.
Library: Use Winspool.lib.

Sorry about that.

Moises
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top