moisesventura
Programmer
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!!!!!!)
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!!!!!!)