Search code examples
c#windows-servicesusbbarcodepointofservice

Read Bar-code scanner value through window service (C#)


I have a bar-code scanner attached to my windows machine USB port.

Is it possible to create windows service which runs in background and checks if any bar-code is scanned, whenever a bar-code is scanned I want the windows service to handle it and write the input in the text file.


Solution

  • @Mhadonis,

    Currently, the PointOfService namespace require foreground processing to prevent background processes from getting unauthorized access to data. We have received a few requests to allow background, please submit your feature request via Developer Feedback UserVoice.

    Terry Warwick, Microsoft