#ifndef SERIAL_H #define SERIAL_H // Global Variables static HANDLE hPort; // Serial port handle static HANDLE hReadThread; // Handle to the read thread static LPTSTR lpszDevName; // Communication port name //serialport.cpp BOOL PortInitialize (LPTSTR); BOOL PortClose (HANDLE); void PortWrite (BYTE); DWORD PortRead (); #endif