I want my application to process only keyboard input but not any other device's input, like barcode. I have a window with an edit box there. Focus is on edit box which is a child window of the main window. I want that my edit box should not take barcode scanner's input. But if i press any key on keyboard , it should take it. I have heard about Windows Hooks. but i m unable to distinguish between the messages coming from keyboard and barcode reader. As my application will get WM_CHAR msg in both cases. Can hooks help me...? if yes then how..? Please help me as soon as possible.. it's very important.