There are two invisible windows under my process with titles "MSCTFIME UI" and "Default IME"

Shyam Butani 160 Reputation points
2024-06-04T12:51:04.28+00:00

Hi,

I am working on win32 app and WinUI3 app in CPP. I want to find out all the available windows of my application.

I am using EnumWindows to enumerate over all the windows and then filter it using process-ID in EnumWindowsProc. But I found that there are two extra windows under my process with titles "MSCTFIME UI" and "Default IME". What are these windows? Can you give some idea about it?

Here is how I'm doing:

BOOL CALLBACK EnumWindowsProc(_In_ HWND hwnd, _In_ LPARAM lParam)
{
    DWORD processId;

    GetWindowThreadProcessId(hwnd, &processId);

    if (processId == GetCurrentProcessId()) {

        char wnd_title[256];

        GetWindowTextA(hwnd, wnd_title, sizeof(wnd_title));

        // Do something
    }

    return TRUE;
}

EnumWindows(EnumWindowsProc, NULL);

Thanks.

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,993 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
{count} votes

Accepted answer
  1. RLWA32 42,366 Reputation points
    2024-06-04T13:06:18.59+00:00

    They are created by the system and you need not be concerned about them. IME stands for input method editor.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful