Search code examples
vbscriptdirectinput

Call and Execute a Function on a DLL using VBScript


My target DLL file is Microsoft DirectInput dll file which is located here: C:\Windows\System32\Dinput.dll

I have monitored an application which uses it for API. I just see that it has call for "DirectInputCreateEx" on Dinput.dll and I did not found any other useful information.

Now I want to call and execute "DirectInputCreateEx" on Dinput.dll using VBScript.

Is this possible? How?


Solution

  • You could only do this (possibly) if it was a COM object. VBScript does not support calling normal API functions.

    You can get around this by creating a COM wrapper for it in C++ or similar language.