Hello, rumit7, you wrote: R> I think if to know a situation more close also variants Will eat much more at me widely known project in narrow circles TC4Shell. A project essence - operation with different archives in the Explorer, as with simple folders. The project as a matter of fact represents over various indirect dll, such as 7z.dll and unrar.dll. Possibility of connection WCX of plug-ins from TotalCommander is in addition implemented. All it works. I decided to add support of plug-ins from FAR. Also added. And again all works, including emulation FAR dialog api. But there is one moment. As itself FAR and its plug-ins work in the console I need to intercept and emulate layer API working with the console. I made it, but found out that separate plug-ins cause console API in DLLMain. For example, plug-in NetBox, causes CreateFile (' CONIN $ ') and saves received in the granaries which then uses (in particular) by call Peek/ReadConsoleInput. But as in an explorer of the console is not present, CreateFile returns INVALID_HANDLE_VALUE, and to me in intercepted Peek/ReadConsoleInput also comes INVALID_HANDLE_VALUE. I do at present so: if to me came INVALID_HANDLE_VALUE I consider that it is my correct , and accordingly I process it. But as that it is not beautiful. Here also I want to try to intercept API not after LoadLibrary, and to call DLLMain. And I intercept much. CreateFileAW/CloseHandle and practically all from the list. As that so.