The function you were looking for was SetupComm. You should use it with something like this:
...
HANDLE handle = CreateFile("COM1", GENERIC_READ|GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
SetupComm(handle, 2048, 2048);
if (!SetCommState(handle, &DCB)){
//Handle error here
}...