<commit_before>#include "stdafx.h"
#include "process.h"

TEST( Hook_console_window )
{
    Process process( TEXT("Host.Console.exe") );
    HWND handle = process.FindMainWindow( TEXT("ConsoleWindowClass"), TEXT("Console Target x86") );

    //throw ProgramException("test", 9);

    char buffer[128];
    InjectDll_HookMessageQueue( handle, buffer );
}<commit_msg>Added links that clarify that console window is really hosted in ConHost.exe or CSRSS.exe<commit_after>#include "stdafx.h"
#include "process.h"

TEST( Hook_console_window )
{
    Process process( TEXT("Host.Console.exe") );
    HWND handle = process.FindMainWindow( TEXT("ConsoleWindowClass"), TEXT("Console Target x86") );

    //throw ProgramException("test", 9);

    // http://stackoverflow.com/questions/4706590/changing-window-procedure-for-console-window
    // http://blogs.msdn.com/b/oldnewthing/archive/2007/12/31/6909007.aspx
    // http://blogs.technet.com/b/askperf/archive/2009/10/05/windows-7-windows-server-2008-r2-console-host.aspx
    // 

    char buffer[128];
    InjectDll_HookMessageQueue( handle, buffer );
}
{'fraction_non_alphanumeric': 0.14703196347031963, 'fraction_numerical': 0.043835616438356165, 'mean_word_length': 4.194312796208531, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6711596', 'n_tokens_mistral': 397, 'n_tokens_neox': 347, 'n_words': 64}