Slot information

  • Thread starter Thread starter Tracid83
  • Start date Start date
T

Tracid83

hi,
I use wmi to get slot information from remote computer.I want to know
the name of the device connected on the specific slot.
Thanks for your help

Tracid
 
Tracid,

Can you show the code you are using to interact with the slot?
Specifically, what is the WMI class you are using?
 
hi,

I use Win32_SystemSlot to enumerate informations. I saw a other class
CIM_CardInSlot but I don't arrive to list informations.
Do you know a solution??
I can't show my code because It's too much long and I have plusior
conditions.

thanks
 
Tracid83 said:
hi,

I use Win32_SystemSlot to enumerate informations. I saw a other class
CIM_CardInSlot but I don't arrive to list informations.
Do you know a solution??
I can't show my code because It's too much long and I have plusior
conditions.

It's not clear what you mean with "I don't arrive to list informations", do
you mean that your code fails or that you don't know how to get at the
information you want. If you can't post the whole code, post a complete but
short program that illustrates the issue.
Note that Win32_SystemSlot returns the properties of a card slot (PCI), NOT
about the card inserted into that slot. If this is what you are after,
you'll have to enumerate Win32_Bus and it's Win32_PnPEntity associates.

Willy.
 
thanks for your help.
I enumerate Win32_Bus and Win32_PnPEntity but I don't find the data
who associates this two classes.
Can you tell me more ?

Code to connect remote computer :

ManagementScope Scope = new ManagementScope(@"\\" + AdressIP + @"\root
\cimv2",Options);
Query = new ObjectQuery(Requette);
searcher = new ManagementObjectSearcher(Scope, Query);
Scope.Connect();
queryCollection = searcher.Get();
foreach (ManagementObject Object in queryCollection)
{
foreach (System.Management.PropertyData pp in Object.Properties)
{
pp.Name.ToString();
pp.Value.ToString();
}
}
 
Back
Top