|
|
| version 1.4, 2005/02/09 20:11:35 | version 1.5, 2005/03/20 13:12:49 |
|---|---|
| Line 49 static void pararelease(COMMNG self) { | Line 49 static void pararelease(COMMNG self) { |
| COMMNG cmpara_create(UINT port) { | COMMNG cmpara_create(UINT port) { |
| OEMCHAR commstr[16]; | TCHAR commstr[16]; |
| HANDLE hdl; | HANDLE hdl; |
| COMMNG ret; | COMMNG ret; |
| CMPARA para; | CMPARA para; |
| OEMSPRINTF(commstr, OEMTEXT("LPT%u"), port); | wsprintf(commstr, _T("LPT%u"), port); |
| hdl = CreateFile(commstr, GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, NULL); | hdl = CreateFile(commstr, GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, NULL); |
| if (hdl == INVALID_HANDLE_VALUE) { | if (hdl == INVALID_HANDLE_VALUE) { |
| goto cpcre_err1; | goto cpcre_err1; |