My problem happens in my c# Windows ce 5.0 project. I am trying to open a serial port on a Symbol HHT by using CECreateFileW function of platform invoke from the coredll.dll as follows:
CECreateFileW(F ileName, GENERIC_WRITE | GENERIC_READ, 0, IntPtr.Zero, OPEN_EXISTING, 0, IntPtr.Zero);
where Filename is "COM1".
This call always returns "-1", i.e. a invalid file handle.
Anyone could help? Please.
CECreateFileW(F ileName, GENERIC_WRITE | GENERIC_READ, 0, IntPtr.Zero, OPEN_EXISTING, 0, IntPtr.Zero);
where Filename is "COM1".
This call always returns "-1", i.e. a invalid file handle.
Anyone could help? Please.
Comment