ReadFile - Not reading values in windows

I am trying to run the SerialAccel.cpp in Windows and the readFile doesnt read values from the serial port.

Please find the code below.

// Check for the ready prompt to ensure data is available.
		if (ReadFile(hCOM,prompt,samples,&bytes_read,&overlap)==TRUE){
			if (GetOverlappedResult(hCOM,&overlap,&bytes_read,TRUE) == 0){
				cout<<"\nERROR reading COM Port!";
				cout<< "\nERROR: " << GetLastError();
			}
			else cout<<"\nChecking for SERIAL DONGLE in BINARY MODE: ";
		}
		
		cout << "Prompt = " << prompt << endl;

Prompt = ╠╠╠╠╠╠╠╠╠╠╠╠─╝,`d■‼

But the value from the device is not being read and it gives junk values.

Looks like a BAUD or Parity mismatch to me. Double and triple check those values on both sides. It won’t work correctly if it’s not right.

I am using the following properties for reading values.

dcb.BaudRate = CBR_9600;

dcb.fParity = 0;

//dcb.fOutX = FALSE;

//dcb.fInX = FALSE;

dcb.ByteSize = 8;

dcb.StopBits = ONESTOPBIT;

dcb.fBinary = 1;

BAUD rate of 9600 and I set the binary mode to 1.

But still not sure why its not working.