Thanks Jijo but it still doesn't work,even after removing PRINTER_ENUM_CONNECTIONS I just want to signal for you that PRINTER_ENUM_CONNECTIONS concerns printers to which the user has made previous connections and doesn't concern "network printers", the one concerning "network printers" is PRINTER_ENUM_NETWORK. I used the EnumPrinters function with level=2 and a PRINTER_INFO_2 structure, /*****************************************************/ PRINTER_INFO_2* list DWORD cnt = 0 DWORD sz = 0 DWORD Level=2 int i int sl EnumPrinters( PRINTER_ENUM_LOCAL|PRINTER_ENUM_CONNECTIONS, NULL, Level, NULL, 0, &sz, &cnt ) if ( (list = (PRINTER_INFO_2*) malloc( sz )) = 0 ) return 0 if (!EnumPrinters(PRINTER_ENUM_LOCAL|PRINTER_ENUM_CONNECTIONS, NULL, Level, (LPBYTE)list, sz, &sz, &cnt)) shared printer. ![]() Hello, I want to display a classification of the installed printers on my pc, for example this way: Local Printer: PrinterName_N☁ Local Printer: PrinterName_N☂ Network Printer: PrinterName_N☃.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |