Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

freewindows (Announce)

posted by kerravon E-mail, Sydney, Free World South, 03.05.2025, 06:55

So the current thing that interests me is whether Freewindows (ie HX, really), is good enough to drive COM1.

I have some comms routines for multiple environments, and the Windows version has this:

/* This is a hack to create a DCB the easy way */
rc = BuildCommDCB(dcbstring, &dcb);
if(rc != TRUE)
{
printf("rc from BuildCommDCB is %lu\n", GetLastError());
errorSet(COMERROR);
return;
}

/* Get the current parameters */
rc = GetCommState(pdcomm->hfile, &dcb);


This is to set the N,8,1 of the modem.


And the modem would have been previously opened with this:

else
{
speed = 0;
if (isdigit((unsigned char)*fileName))
{
sprintf(fileName, "COM%c", *fileName);
}
}
pdcomm->hfile = CreateFile(fileName,
GENERIC_READ | GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL);


I don't have a real COM port, but using Virtualbox I hope I can prove that these routines work under Windows 2000 and then I will see if HX has implemented this.

I don't actually need to change the N,8,1 - they should all be set correctly already, and the real link is via Virtualbox TCP/IP, so all I really need is for CreateFile to work.

I already know CreateFile works for disk files under HX.

What I don't know is whether Japheth has implemented the ability for me to reach the outside world.

I have a mainframe OS and emulator that runs under Windows. If Freewindows supports opening a COM port, my mainframe will have access to the outside world. Including zmodem file transfers. Even on an EBCDIC system.

 

Complete thread:

Back to the forum
Board view  Mix view
22552 Postings in 2097 Threads, 401 registered users, 49 users online (0 registered, 49 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum