Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sysinfo.ocx
Message
From
27/01/2003 10:00:01
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00745698
Message ID:
00745757
Views:
19
>>>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.

Why would I wait when I intentionally use ShellExecute in order not to wait :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform