[code:1]
#include <windows.h>
#include <stdio.h>
//#define PORT "COM2"
#define BUFSIZE 3
OVERLAPPED ov;
char buf[BUFSIZE];
HANDLE hCom;
int main(void)
{
DCB dcb;
//HANDLE hCom;
BOOL fSuccess;
char *pcCommPort = "COM1";
//int buf[BUFSIZE];
DWORD dwWritten;
int writefile_return;
/********************************************************************************
비동기 입출력은 WINDOWS 2000/NT 만 지원이 된다.
즉,98SE ,ME 이하의 버전에서는 동작하지 않는다.
CREATEfILE() 에서 플래그는 6번째 인수에 FILE_FLAG_OVERLAPPED 로 사용하면 된다.