Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to support writing to new Notepad on Windows 11 #60

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Commits on May 11, 2023

  1. Implementing an alternate way of finding editor handle for new Notepad

    * Adding needed interop definitions to enumerate child windows
    * If first attempt using FindWindowEx with notepad process MainWindowHandle does not find editor handle, the search is done by enumerating child window handles for the notepad process MainWindowHandle.
    bstordrup committed May 11, 2023
    Configuration menu
    Copy the full SHA
    1728be2 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2023

  1. Configuration menu
    Copy the full SHA
    65f5399 View commit details
    Browse the repository at this point in the history
  2. In some situations, a notepad window opened after logging start would…

    … not receive log messages.
    bstordrup committed May 12, 2023
    Configuration menu
    Copy the full SHA
    0084257 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2023

  1. Sometimes, the editor handle seems not correct. So if the text length…

    … does not change by sending text to it, it is cleared in order to reget it.
    bstordrup committed May 15, 2023
    Configuration menu
    Copy the full SHA
    ab9ac54 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2023

  1. Implementing an alternate way of finding editor handle for new Notepad

    * Adding needed interop definitions to enumerate child windows
    * If first attempt using FindWindowEx with notepad process MainWindowHandle does not find editor handle, the search is done by enumerating child window handles for the notepad process MainWindowHandle.
    bstordrup committed May 30, 2023
    Configuration menu
    Copy the full SHA
    1b5bec4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7647b4b View commit details
    Browse the repository at this point in the history
  3. In some situations, a notepad window opened after logging start would…

    … not receive log messages.
    bstordrup committed May 30, 2023
    Configuration menu
    Copy the full SHA
    756b269 View commit details
    Browse the repository at this point in the history
  4. Sometimes, the editor handle seems not correct. So if the text length…

    … does not change by sending text to it, it is cleared in order to reget it.
    bstordrup committed May 30, 2023
    Configuration menu
    Copy the full SHA
    7802dec View commit details
    Browse the repository at this point in the history
  5. Merge branch 'Issue59_FindEditorHandleThroughChildWindowEnumeration' of

    https://github.com/bstordrup/serilog-sinks-notepad into Issue59_FindEditorHandleThroughChildWindowEnumeration
    bstordrup committed May 30, 2023
    Configuration menu
    Copy the full SHA
    7fdcf57 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2023

  1. Implementing an alternate way of finding editor handle for new Notepad

    * Adding needed interop definitions to enumerate child windows
    * If first attempt using FindWindowEx with notepad process MainWindowHandle does not find editor handle, the search is done by enumerating child window handles for the notepad process MainWindowHandle.
    bstordrup authored and augustoproiete committed Jun 4, 2023
    Configuration menu
    Copy the full SHA
    6db95e1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7ab2698 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c28d1f3 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2023

  1. Resynced

    bstordrup committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    3b920cc View commit details
    Browse the repository at this point in the history
  2. Rewriting logic to avoid Goto statement. The buffer is retrieved usin…

    …g base.GetStringBuilder - which just returns the StringBuilder _sb from the base TextWriter class. And this one may or may not have created the StringBuilder instance - depending on which constructor has been called. But it does not destroy it.
    bstordrup committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    e86d7d3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c733e95 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2023

  1. Change as per suggestion

    bstordrup committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    25a4a03 View commit details
    Browse the repository at this point in the history