// SPDX-License-Identifier: LGPL-2.1-or-later #pragma once #include #define EDIT_STATE_PROPERTY L"CthulhuWineEditState" #define EDIT_FOCUS_MESSAGE L"CthulhuWineEditFocus" #define EDIT_REVIEW_MESSAGE L"CthulhuWineEditReviewTextV1" #define EDIT_REVIEW_PROPERTY L"CthulhuWineEditReviewV1" // Fixed-width layout shared with 32-bit applications. The allocation lives // in the application's address space until the message has really completed. typedef struct WineAccessEditText { DWORD capacity, copied, status; // status: 0 unavailable, 1 complete, 2 limited WCHAR text[1]; } WineAccessEditText; BOOL wine_access_watch_edit(HWND window); BOOL wine_access_watch_scintilla(HWND window); void wine_access_scintilla_input(HWND window, const MSG *message); void wine_access_notify_text(HWND window, UINT kind, const WCHAR *text, ULONGLONG start, ULONGLONG end, UINT flags);