よく分かりませんが、こんな感じで使えるようです。 import System; import System.Reflection; import System.Reflection.Emit; import System.Runtime; import System.Text; // Invoke a Win32 P/Invoke call. function InvokeWin32(dllName:String, returnType:Type, methodName:String, parameterTypes:Type[], parameters:Object[]) { // Begin to build the dynamic assembly var domain=AppDomain.CurrentDomain; var name=new System.Reflection.As
![JScript.NETでWin32APIを使う。 - Windows Script Programming](https://cdn-ak-scissors.b.st-hatena.com/image/square/03b096f6c04dfa322532982e16dc3d5978abb730/height=288;version=1;width=512/http%3A%2F%2Fscripting.cocolog-nifty.com%2F.shared-cocolog%2Fnifty_managed%2Fimages%2Fweb%2Fogp%2Fdefault.png)