We are adopting SilkTest and I am learning the intricacies of the product and am trying to figure code some basic functionality. My problem is declaring/calling dll's and after an exhaustive search to try and find a solution, I have not had much success figuring out how to call the FindFirstFile API from Kernel32.dll. The problem is that the API uses a struct data type as one of the parameters and after completing all the decalarions, compiling the script returns a "'Type WIN32_FIND_DATA' may not be used in a DLL function" compile error.
Looking at other posts concerning api calls to DLLs with similar parameters, I note that in several cases the DLL is declared with an array - CreateProcess - for example:
[ ] BOOL CreateProcess(STRING appName,STRING fullPath,in LONG procAttribs,in LONG secAttribs,in LONG inheritHandles,LONG creationFlags,LONG lpEnviron,STRING currentDir,inout Array of LONG starupInfo,inout Array of LONG processinfo)[+] dll "shell32"
The API uses the following declaration 'inout Array of LONG starupInfo' for the STARTUPINFO structure referenced for the API on MSDN(http://msdn.microsoft.com/en-us/library/ms682425(VS.85).aspx) but the sample code posted does not actually use that API (http://www.sqaforums.com/showflat.ph...true#Post26236). I realize that for this specific example there are alternative means available but as this is a learning process, I am trying to get the following code to work without having to compile custom DLL's (if possible):