I got this sample code from MSDN, But I got no idea how to convert the read byte as below:

PHP Code:
DWORD PortReadThread (LPVOID lpvoid)
{
    
BYTE Byte;
    
wchar_t InBuff[1];
    
DWORD dwCommModemStatusdwBytesTransferred;

    
// Specify a set of events to be monitored for the port.
    
SetCommMask (hPortEV_RXCHAR EV_CTS EV_DSR EV_RLSD EV_RING);

    while (
hPort != INVALID_HANDLE_VALUE
    {
        
// Wait for an event to occur for the port.
        
WaitCommEvent (hPort, &dwCommModemStatus0);

        
// Re-specify the set of events to be monitored for the port.
        
SetCommMask (hPortEV_RXCHAR EV_CTS EV_DSR EV_RING);

        if (
dwCommModemStatus EV_RXCHAR
        {
            
// Loop for waiting for the data.
            
do 
            {
                
// Read the data from the serial port.
                
ReadFile (hPort, &Byte1, &dwBytesTransferred0);

                
// Display the data read.
                
if (dwBytesTransferred == 1)
                {
                    
// How to convert the Byte to wchar_t buffer -> InBuff ??
                    // Help                
                
}
            } while (
dwBytesTransferred == 1);

        }
    }

    return 
0;