본문 바로가기

API / MFC/Serial Communications

SetCommTimeouts & GetCommTimeouts Function

SetCommTimeouts Function
    지정된 통신 장치에서 모든 읽기, 쓰기 작업에 대해 타임아웃 매개변수를 설정
BOOL SetCommTimeouts(
HANDLE hFile, 
LPCOMMTIMEOUTS lpCommTimeouts
); 


hFile
    통신 장치의 핸들, CreateFile 함수의 리턴된 핸들

lpCommTimeouts
    새로운 타임 아웃 값이 들어 있는 COMMTIMEOUTS 구조체의 포인터


참조 :
http://msdn.microsoft.com/en-us/library/aa363437(VS.85).aspx



GetCommTimeouts Function
    지정된 통신 장치에 모든 읽기 쓰기 작업의 타임 아웃 매개변수를 받음
BOOL GetCommTimeouts(
HANDLE hFile, 
LPCOMMTIMEOUTS lpCommTimeouts
); 


hFile
    통신 장치의 핸들, CreateFile 함수의 리턴된 핸들

lpCommTimeouts
    리턴 된 타임 아웃 데이터를 받을 COMMTIMEOUTS 구조체의 포인터


참조 :
http://msdn.microsoft.com/en-us/library/aa363261(VS.85).aspx

'API / MFC > Serial Communications' 카테고리의 다른 글

ClearCommError Function  (0) 2010.04.01
CreateThread Function  (0) 2010.04.01
COMMTIMEOUTS Structure  (0) 2010.03.31
DCB Structure  (0) 2010.03.31
GetCommState & SetCommState Function  (0) 2010.03.31