Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.12.30;
Скачать: CL | DM;

Вниз

Принтера   Найти похожие ветки 

 
Alex_x ©   (2003-12-17 12:20) [0]

Как получить список только локальных принтеров подключённых к компютеру


 
Семен Сорокин ©   (2003-12-17 12:24) [1]

Printer.Printers
модуль Printers.pas


 
Семен Сорокин ©   (2003-12-17 12:28) [2]

EnumPrinters(PRINTER_ENUM_LOCAL, ...


 
Alex_x ©   (2003-12-17 12:41) [3]

PRINTER_ENUM_LOCAL The function will also enumerate network printers because they are handled by the local print provider. :(


 
Семен Сорокин ©   (2003-12-17 12:49) [4]

BOOL EnumPrinters(
DWORD Flags, // printer object types
LPTSTR Name, // name of printer object
DWORD Level, // information level
LPBYTE pPrinterEnum, // printer information buffer
DWORD cbBuf, // size of printer information buffer
LPDWORD pcbNeeded, // bytes received or required
LPDWORD pcReturned // number of printers enumerated
);

Level = 2

out: pcReturned (PRINTER_INFO_2 structure)

typedef struct _PRINTER_INFO_2 {
LPTSTR pServerName;
LPTSTR pPrinterName;
LPTSTR pShareName;
LPTSTR pPortName;
LPTSTR pDriverName;
LPTSTR pComment;
LPTSTR pLocation;
LPDEVMODE pDevMode;
LPTSTR pSepFile;
LPTSTR pPrintProcessor;
LPTSTR pDatatype;
LPTSTR pParameters;
PSECURITY_DESCRIPTOR pSecurityDescriptor;
DWORD Attributes;
DWORD Priority;
DWORD DefaultPriority;
DWORD StartTime;
DWORD UntilTime;
DWORD Status;
DWORD cJobs;
DWORD AveragePPM;
} PRINTER_INFO_2, *PPRINTER_INFO_2;

pServerName

Pointer to a null-terminated string identifying the server that controls the printer. If this string is NULL, the printer is controlled locally.



Страницы: 1 вся ветка

Текущий архив: 2003.12.30;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.021 c
1-99600
BlackTiger
2003-12-17 12:38
2003.12.30
Можно ли на Canvas-е рисовать в миллиметрах?


3-99472
AndDem
2003-12-01 17:34
2003.12.30
Компонент EventAlert для ADO-соединения с MSSQL


1-99584
Chery
2003-12-17 14:55
2003.12.30
Как строковой переменной присвоить значение ковычки ?


3-99474
Chlavik
2003-12-02 20:59
2003.12.30
База данных на Delphi.. Можно ли обойтись без BDE ?


1-99562
Zmei
2003-12-17 23:31
2003.12.30
Свернуть