Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <iostream>
- int main() {
- HWND hwnd = FindWindow(NULL, L"*Untitled - Notepad"); // search for "*Untitled - Notepad"
- if (hwnd != NULL) {
- SetWindowText(hwnd, L"Wormhole Vortex"); // change the title of the window
- std::cout << "Code Injected Successfully into Notepad Process!" << std::endl; // print the message to the console
- }
- else {
- hwnd = FindWindow(NULL, L"Untitled - Notepad"); // search for "Untitled - Notepad"
- if (hwnd != NULL) {
- SetWindowText(hwnd, L"Wormhole Vortex"); // change the title of the window
- std::cout << "Code Injected Successfully into Notepad Process!" << std::endl; // print the message to the console
- }
- else {
- std::cout << "No window with the specified title was found." << std::endl;
- }
- }
- // Keep the console window open
- std::cout << "Press any key to exit..." << std::endl;
- std::cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement