A forum for reverse engineering, OS internals and malware analysis 

 #32976  by ekt0
 Mon Jun 03, 2019 5:49 pm
Up, Igor Skochinsky from Hex-Rays answered me - quickly after my message to the support - and here are his thoughts about the issue :
At a guess it happens because you try to pass parameters intended for an x86 process to an x64 API
(remember that IDA is x64 now so you're calling an x64 API). Possibly without an explicit prototype ctypes
passes arguments in wrong locations. I don't know why it succeeds on win7, however.
Perhaps it's missing some of the checks present in later versions. In any case, it's not an issue in IDA itself.

He also recommended me to use Appcall [1] in order to achieve my original task.

[1]: https://hex-rays.com/products/ida/suppo ... ppcall.pdf