Hi experts,
I've 2 questions with respect to the attached example:
1) I like to get info about the current network status of a Win-NT/2000 workstation. For this I call some
windows-own console applications like net.exe, netstat.exe, or ipconfig.exe from inside my CVI program. An example of such a call is e.g.
LaunchExecutableEx("cmd.exe /C ipconfig > temp.txt",
LE_HIDE, &handle);
This invisibly opens a console window and the screen output of ipconfig.exe is redirected to a temp file. The file is then evaluated. Question: Is there a way to direct the screen output directly to a buffer inside the CVI program ?
2) I succeeded in using PSAPI.DLL to list all currently active processes (operating
system and user applications). The PSAPI.DLL is for Win-NT/2000 only. - Can someone present a snippet of code to show, how the same procedure can de done with Win 98 ?
My background:
Since 4 years I'm using LW CVI to build ATE systems using PC's under Win-NT/2000. Parts of the hardware (e.g. I2C bus devices) must be handshaked within less than 10 millisecs. With diagnostic tests I could verify that using a 400 MHz clocked Pentium, Win-NT/2000 makes possible such 'close to realtime' performance under the following conditions:
a) Usage of a standalone workstation installation without network services started
b) Customers are not allowed to run other applications in parallel to the CVI program
My ATE systems are sold under these warranty conditions - do you think customers are obeying this ?
Many do not! Nevertheless, they're coming to claim in-warranty support for timeout errors.
My intended solution is to track in detail the status of the ATE PC in the moment, the custo
mer starts
the CVI application: If a network service is found active or 'forbidden applications' (like e.g. findfast.exe or iexplore.exe) are found running, the customer is kindly asked to close these applications.
Heinz Hoeffken