Using Native Windows Functions from SP
I have not used SP for a while and am trying to remember how to invoke a number of native WINNT functions from a test script. For example, I would like to have the script invoke a batch file residing on an agent computer, invoke a registry key file at the beginning and end of a test, and interrogate the NT Event Viewer at the completion of the test for performance metrics written by our custom C++ code.
Any pointers in the right direction would be very helpful. Also, any code snippets or examples would be appreciated as well.
Thank you in advance.
Re: Using Native Windows Functions from SP
In the new SP V there are some new ProcessXXX functions where you can execute a process via command line - see documentation.
Another think you can do is, map the CreateProcess function from the kernel32.dll into your bdl script and call this function to execute a command line.
mapping a dll function into bdl works within the external functions section - see documentation or kernel.bdh for examples.