01-07-2013 08:45 AM
Jordan,
There is not an inherent way to use .NET with the Switch Executive API.
There are ways that this could be done by using P/invoke to call the nise.dll ("C:\Windows\SysWOW64 [on my 64bit machine] ) and use these commands. This article talks a bit more about the ways to use P/invoke.
There are also 3rd party tools that supposedly can generate the P/invoke code as this can become quite complicated. I tried using P/Invoke Interop Assistant but was unsuccessful at getting the code generated properly. I am not a C# developer, and there is a chance that I am doing something wrong to get the code auto generated.
I tried to look for the example code that was sent to the original author but was unsuccessful at finding this code. While this code was originally written for an older version of NISE, I would assume that it should be able to properly call the nise.dll albeit without any of the new functions. Perhaps Trackerman has the copy still available?