Is there any other way SendInput without using User32.dll? Is there other DLL file same usage as user32.dll which provided by .NET framework?
There is a SendInput function inside Microsoft.VisualBasic.DLL but it still call back User32.dll.
As i know GetPixel can be done using GDI32.DLL from windows and SYSTEM.DRAWING.DLL from .NET Framework.
Please help me on this.
How to SendInput without using User32.dll
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

AlanRank #669 · 3.6K reputationPosted Nov 30, 2007, 5:34 AM EST
The .NET framework equivalent is the SendKeys class (in System.Windows.Forms) which has Send() and SendWait() methods:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.sendkeys(VS.80).aspx
However, these methods still call the SendInput() API function 'under the hood'.
Also, if you're trying to send keystrokes to another window, you still have to use API functions such as FindWindow() and SetForegroundWindow() to force the focus onto that window first and these functions reside in user32.dll as well.
savan gandhi45 reputationPosted Dec 12, 2007, 10:43 PM EST
Use Findwindow and SendMessage combination instead, where you can direct your keys to the particular window, you are interested in.
I don't know how to send keys by using SendMessage function. But it is for sure, that you can achive desirable results with this combination.