I am trying to find a way to access the functions that are available if you right click a console window such as "Select All" and "Copy". I have the HWND handle to the console window and I have used GetWindowThreadProcessId() to get the thread identifier and process identifier. Do you know of a way to use the "Select All" and "Copy" commands when given this information?