|
-
March 29th, 1999, 09:39 AM
#1
How to Get System info....
Hello Gurus...I am in dire need of help. Does anyone know how i can get a list of I/O addresses used by the different hardware installed in the PC? Like the System icon inside the control Panel...it knows which hardware is installed and what I/O address it occupies...i need this same method on getting the hardware installed together with the I/O address they occupy. Thank You very much in advance...and God Bless.
Jay
-
March 29th, 1999, 09:55 AM
#2
Re: How to Get System info....
HKEY key;
DWORD type;
BYTE data[256];
DWORD size=256;
if (::RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Shared
Tools\\MSInfo",NULL,KEY_QUERY_VALUE,&key)==ERROR_SUCCESS)
{
if (::RegQueryValueEx(key,"Path",NULL,&type,data,&size)==ERROR_SUCCESS)
{
::RegCloseKey(key);
::ShellExecute(NULL,NULL,(LPTSTR)data,NULL,NULL,SW_SHOWNORMAL);
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|