> Write a C function called OpenFileName(char const *pszFileName), that when > called with the special file name "com1", it calls the function > OpenSpecialDevice(char const *pszFileName). Otherwise calls the function > GenericFileOpen(char const *pszFileName).
Easy... to the filename add the following: newFilename = "\\\\??\\" + oldFilename; This will open the COMx port if oldFilename="COMx" and open any other file if a path was added. Reference: WinObj.exe [http://www.sysinternals.com/ntw2k/freeware/winobj.shtml] Loris - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
