>>Is there anyone who has used the sysinfo.ocx within VFP. This particular activex component does not have any 'right-click' properties to adjust. I've looked at the help but am not quite sure as to how to invoke the class.
>>
>>What I'm trying to achieve is create a text file that is created in Windows 2000 to capture a snapshot of the system configuration.
>>
>>Thanks,
>>
>>Wayne Frenck
>
>Wayne,
>It's a wrapper to winAPI (SystemParametersInfo I think) with very limited checks. You can put one on form, click to select and then press F1 to see what you could get/set.
>For snapshot msinfo32 sounds to be much better (it's for example called when you select Help\About Visual Foxpro\System Information).
>
>
>declare long ShellExecute in "shell32.dll" ;
> long hwnd, string lpszOp, ;
> string lpszFile, string lpszParams, ;
> string lpszDir, long nShowCmd
>
>ShellExecute(0,'','msinfo32.exe', ;
> '/nfo '+sys(5)+curdir()+'mysysinfo.nfo /categories +systemsummary',0,0)
>
>Though msinfo32 help says +systemsummary would only get summary it gets all (+ to include - to exclude).
>Generated .nfo file is an XML file but still best viewed with msinfo32 (just dblclick).
>PS: ShellExecuting for it takes time to complete. You might check if completed either by file notification hook (winAPI) or trying to open the file readwrite.
>Cetin
You can use
API_APPRUN in .VCX form File #
9477 to run and wait.
--sb--