I write program to send key press in notepad. It's fine work in windows 8 x64, but don't work on windows 10 x64. I get error message #87 - ERROR_INVALID_PARAMETER.

help me please