How does Windows dump the file name from the Explorer to the console window?
Vasily Titsky: “…Briefly, when inserting text into the console application (through the system menu or through the link drag-and-drop) the kind OS does the following: if the next symbol code is not within the current application Keyboard Layout (current language is English, but we need to insert a Russian symbol; or vice versa), system “emulates” the input of this symbol through the Alt+digits. For example, when inserting Russian ‘A’ , the following will be generated: press Alt, press ‘1’, release ‘1’, press ‘2’, release ‘2’, press ‘8’, release ‘8’, release Alt. When inserting symbols with codes below 99 (? – I didn’t check this) the pressing of two digits is generated. We only have to detect it correctly and then handle it…