На главную

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 | Скачать Вниз

GetCommProperties



The GetCommProperties function fills a buffer with information about the communications properties for a specified communications device.

BOOL GetCommProperties(

HANDLE hFile, // handle of communications device
LPCOMMPROP lpCommProp // address of communications properties structure
);


Parameters

hFile

Identifies the communications device. The CreateFile function returns this handle.

lpCommProp

Points to a COMMPROP structure in which the communications properties information is returned. This information can be used in subsequent calls to the SetCommState, SetCommTimeouts, or SetupComm function to configure the communications device.



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

The GetCommProperties function returns information from a device driver about the configuration settings that are supported by the driver.

See Also

COMMPROP, CreateFile, SetCommState, SetCommTimeouts, SetupComm


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

GetCommProperties



Функция GetCommProperties заполняет буфер информацией о свойствах связи для определенного устройства связи.

BOOL GetCommProperties(

РУЧКА hFile, // ручка устройства связи LPCOMMPROP lpCommProp // адрес структуры свойств связи
);


Параметры

hFile

Идентифицирует устройство связи. Функция CreateFile возвращает эту ручку.

lpCommProp

Точки на структуру COMMPROP в которых информация свойств связи возвращана. Эта информация может быть использована на последующих вызовах в SetCommState, SetCommTimeouts, или функцию SetupComm, чтобы конфигурировать связи устройство.



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

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

Замечания

Функция GetCommProperties возвращает информацию с драйвера устройства об установочных параметрах конфигурации, которая поддерживана драйвером.

Смотри Также

COMMPROP, CreateFile, SetCommState, SetCommTimeouts, SetupComm


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