在Windows Service中应用SendInput

在Windows Service中使用SendInputRT,我想用SendInput模拟键盘和鼠标事件,在Desktop Application中使用没

在Windows Service中使用SendInput
RT,我想用SendInput模拟键盘和鼠标事件,在Desktop Application中使用没有任何问题,但是在Service中调用SendInput没有任何效果,函数返回结果却是正常的。Service中的code如下:

,没有用过这个东西。。。。