Hi,
If this is serial (or USB virtual serial), then you do not need to write a
service -- though it could be coded as such). I have examples in my book,
see below. However, if you use a keyboard wedge, or a USB reader that
emulates a keyboard HID device, then you CANNOT use a service. These
devices demand a UI with focus continuously set to a text window for input.
They are unsuitable for unattended operation.
Dick
--
Richard Grier (Microsoft Visual Basic MVP)
See
www.hardandsoftware.net for contact information.
Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.