07-05-2013 09:47 AM
Thanks for reply.
Already tried that function.
It causes GPF/fatal runtime error.
08-14-2013 02:28 PM
EnumPrinters worked for over a month now.
Don't know why it stops working.
needed returns 0.
GetLastError() returns 1780: A null reference pointer was passed to the stub.
The problem is pcReturned. Instead of using NULL, use a variable solved the problem.
Don't know why it worked in the first place.