CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    12

    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




  2. #2
    Join Date
    May 1999
    Posts
    30

    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
  •  





Click Here to Expand Forum to Full Width

Featured