|
|
| version 1.3, 2005/02/07 14:46:14 | version 1.4, 2005/02/09 20:11:35 |
|---|---|
| Line 49 static void pararelease(COMMNG self) { | Line 49 static void pararelease(COMMNG self) { |
| COMMNG cmpara_create(UINT port) { | COMMNG cmpara_create(UINT port) { |
| char commstr[16]; | OEMCHAR commstr[16]; |
| HANDLE hdl; | HANDLE hdl; |
| COMMNG ret; | COMMNG ret; |
| CMPARA para; | CMPARA para; |
| wsprintf(commstr, "LPT%u", port); | OEMSPRINTF(commstr, OEMTEXT("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; |