На главную

On-line справка по Win32 API

Написать письмо
БЕСПЛАТНАЯ ежедневная online лотерея! Выигрывай каждый день БЕСПЛАТНО!
Список всех статей A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W-X-Y-Z | Скачать Вниз

AddPrintProcessor



The AddPrintProcessor function installs a print processor on the specified server and adds the print-processor name to an internal list of supported print processors.

BOOL AddPrintProcessor(

LPTSTR pName, // pointer to server name
LPTSTR pEnvironment, // pointer to environment name
LPTSTR pPathName, // pointer to path
LPTSTR pPrintProcessorName // pointer to print-processor name
);


Parameters

pName

Pointer to a null-terminated string that specifies the name of the server on which the print processor should be installed. If this parameter is NULL, the print processor is installed locally.

pEnvironment

Pointer to a null-terminated string that specifies the environment. For example, "Windows x86" specifies Windows running on an Intel 80386 or 80486 processor. If this parameter is NULL, the current environment of the caller/client (not of the destination/server) is used.

pPathName

Pointer to a null-terminated string that specifies the name of the file that contains the print processor. This file must be in the system print-processor directory.

pPrintProcessorName

Pointer to a null-terminated string that specifies the name of the print processor.



Return Values

If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

Before calling the AddPrintProcessor function, an application should verify that the file containing the print processor is stored in the system print-processor directory. An application can retrieve the name of the system print-processor directory by calling the GetPrintProcessorDirectory function.
An application can determine the name of existing print processors by calling the EnumPrintProcessors function.

See Also

EnumPrintProcessors, GetPrintProcessorDirectory


Пригласи друзей и счет твоего мобильника всегда будет положительным!
Предыдущая статья
 
Сайт Народ.Ру Интернет
Следующая статья
Пригласи друзей и счет твоего мобильника всегда будет положительным!

AddPrintProcessor



Функция AddPrintProcessor устанавливает процессор распечатки в определенном сервере и добавляет распечатку-процессор имени ко внутреннему списку предусмотренных процессоров распечатки.

BOOL AddPrintProcessor(

LPTSTR pName, // УКАЗАТЕЛЬ в имя сервера LPTSTR pEnvironment, // указателя в имя среды LPTSTR pPathName, // указателя на указатель пути LPTSTR pPrintProcessorName // в распечатку-процессор имени
);


Параметры

pName

Указатель в недействительный расторгнутую строку, которая определяет имя сервера на котором процессор распечатки должен быть установлен. Если этот параметр НЕДЕЙСТВИТЕЛЕН, процессор распечатки устанавливается локально.

pEnvironment

Указатель в недействительный расторгнутую строку, которая определяет среду. Например, "Windows x86" определяет Windows, работающее на Intel 80386 или 80486 процессоров. Если этот параметр НЕДЕЙСТВИТЕЛЕН, текущая среда вызывающего оператора/клиента (не расположения/сервера), использован.

pPathName

Указатель в недействительный расторгнутую строку, которая определяет имя файла, который содержит процессор распечатки. Этот файл должен быть в системной распечатке-процессоре директория.

pPrintProcessorName

Указатель в недействительный расторгнутую строку, которая определяет имя процессора распечатки.



Обратные Величины

Если функция добивается успеха, обратная величина ненулевая.
Если функция терпит неудачу, обратная величина нулевая. Для того, чтобы расширять информацию ошибки, назовите GetLastError.

Замечания

Перед вызовом функции AddPrintProcessor, приложение должно проверить, что файл, содержащий процессор распечатки загружен в системную распечатку-процессор директория. Приложение может извлечь имя системной распечатки-процессора директория вызывая функцию GetPrintProcessorDirectory.
Приложение может определить имя существующих процессоров распечатки вызывая функцию EnumPrintProcessors.

Смотри Также

EnumPrintProcessors, GetPrintProcessorDirectory


Вверх Version 1.3, Oct 26 2010 © 2007, 2010, mrhx Вверх
 mrhx software  Русский перевод OpenGL  Русский перевод Win32 API
 
Используются технологии uCoz