I would add that it is often unlikely for you to find lower level functions like these in the .NET framework . If you were confused as to why the sentences pointed to non-C # functions, you could probably use some details in P / Invoke .
Basically, there are ways to define C # functions that "bind" them to Windows API functions that are not in .NET assemblies (instead, they are usually implemented in C ++ and are available as a standard DLL). This process is considered the "(Windows) Invocation" (thus P / Invoke).
At first, it might be a little shaky that all data types match between C ++ and C # style calls, but, fortunately, there are others that paved the way.
The proposed SendInput function has a PInvoke over at PInvoke.net wrapper . This wrapper class, if available in your assembly, will allow you to call SendInput as if it were a C # function.
PInvoke.net is basically the PInvoke wiki for well-known API calls on Windows and usually has a C # / VB.NET API wrapper.
source share