How to open printer in network share or how to enumerate list of network share printer ?
I have tried OpenPrinter() API, but got error, and these my sample code
MF633C/635C --> It is printer name in network share.
BOOL value = OpenPrinter("MF633C/635C", &h, NULL);
if(value == 0)
cout << "Not a printer" << endl;
else
cout << "It is a printer" << endl;
How to open a network printer and how can I identify it is a printer or not.
I got the error as The printer name is invalid.
Error code is 2351.
How to pass the share network printer ?
Is there any api?