Language & API/WIN API
Language & API/WIN API
2017. 4. 10.
WaitCommEvent 함수
Waits for an event to occur for a specified communications device. The set of events that are monitored by this function is contained in the event mask associated with the device handle. 지정된 통신 장치에서 발생하는 이벤트를 기다린다. 지정된 이벤트는 디바이스 핸들과 연관된 이벤트 마스크를 포함하며 이 함수에 의해 모니터된다. Syntax C++ 12345BOOL WINAPI WaitCommEvent( _In_ HANDLE hFile, // CreateFile HANDLE _Out_ LPDWORD lpEvtMask, // 수신 Mask 이벤트 _In_ LPO..
Language & API/WIN API
2017. 4. 10.
SetCommMask 함수
Specifies a set of events to be monitored for a communications device. 통신 장치에 대해 모니터 될 이벤트 세트를 지정합니다. Syntax C++ 1234BOOL WINAPI SetCommMask( _In_ HANDLE hFile, // CreateFile HANDLE _In_ DWORD dwEvtMask // EV_BREAK, EV_CTS, EV_DSR, EV_ERR, EV_RING, EV_RLSD, EV_RXCHAR, EV_RXFLAG, EV_TXEMPTY);Colored by Color Scriptercs hFile [in] A handle to the communications device. The CreateFile function retu..