AddPrinterConnection() returns error 997 (Overlapped I/O operation is in progress)

Visual Studio160
Hi,



Has anyone ever experienced this error occuring when trying to call

AddPrinterConnection() from VC6. This is a microsoft defined method

call. I have been able to reproduce it on a windows200 professional

machine will latest service packs downloading the printer drivers from

a windows2003 server.



It seems to work on other configurations as I have been unable to

reproduce the problem occuring there.



According to the documentation for Overlapped I/O it basically means

that the operation has not completed yet but will complete later. If

this is the case how do you check that the request has completed and

shouldn't microsoft handle this and finish it's call once the driver

has completly downloaded.



Cheers.


-