To create a DLL in C++ that finds all windows with the title "TelegramDesktop" using raw Windows API, you should follow these steps:
-
Set up your development environment: Ensure you have a C++ development environment, such as Visual Studio, set up for creating Windows-based DLLs.
-
Write the DLL code:
- Use Windows API functions like
EnumWindows
,GetWindowText
, andGetWindowTextLength
. - Implement a function that will store or print window information if its title matches "TelegramDesktop".
- Use Windows API functions like
Here's an example implementation: