+void start_notepad() {\r
+ ZeroMemory(&si, sizeof(si));\r
+ si.cb = sizeof(si);\r
+ ZeroMemory(&pi, sizeof(pi));\r
+\r
+ if (!CreateProcessA(NULL, // No module name (use command line)\r
+ "notepad.exe", // Command line\r
+ NULL, // Process handle not inheritable\r
+ NULL, // Thread handle not inheritable\r
+ FALSE, // Set handle inheritance to FALSE\r
+ 0, // No creation flags\r
+ NULL, // Use parent's environment block\r
+ NULL, // Use parent's starting directory\r
+ &si, // Pointer to STARTUPINFO structure\r
+ &pi) // Pointer to PROCESS_INFORMATION structure\r
+ ) {\r
+ printf("CreateProcess failed (%d).\n", GetLastError());\r
+ }\r
+ Sleep(100);\r
+ EnumWindows(ew_cb, 0);\r
+ EnumChildWindows(hwnd_notepad, ecw_cb, 0);\r
+ SendMessage(hwnd_edit, EM_SETREADONLY, TRUE, NULL);\r