Hello, I'm going to make a program that first reads from program.ini and then writes what stands inside (when a key is pressed), like, you press f12 and it writes your password directly, but I've got stuck here:
Code:
switch (message)
{
case WM_DESTROY:
PostQuitMessage (0);
break;
case WM_CLOSE:
DestroyWindow(hwnd);
break;
case WM_KEYDOWN:
switch (wParam)
{
case VK_F12:
// The code to write whats inside program.ini
}
default:
return DefWindowProc (hwnd, message, wParam, lParam);
}
grateful for answer