Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2003.12.30;
Скачать: [xml.tar.bz2];

Вниз

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

 
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;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.009 c
3-99484
Goida
2003-12-04 15:01
2003.12.30
Частично прокручивающийся грид


1-99527
Dikoy
2003-12-16 14:24
2003.12.30
Автоматическое создание файла history.txt


1-99594
Брат
2003-12-17 10:41
2003.12.30
Сложный алгоритм


8-99655
Ilya_
2003-08-27 04:53
2003.12.30
Не могу открыть сохранённый в Delphi 3 bmp файл


1-99545
smu
2003-12-16 11:23
2003.12.30
Как обрабатывать события невизуальных компонентов?





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский