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 4 2118
Tracid,
Can you show the code you are using to interact with the slot?
Specifically, what is the WMI class you are using?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Tracid83" <tr******@hotma il.comwrote in message
news:11******** **************@ b75g2000hsg.goo glegroups.com.. .
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
hi,
I use Win32_SystemSlo t 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" <tr******@hotma il.comwrote in message
news:11******** **************@ n59g2000hsh.goo glegroups.com.. .
hi,
I use Win32_SystemSlo t 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_SystemSlo t 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(Req uette);
searcher = new ManagementObjec tSearcher(Scope , Query);
Scope.Connect() ;
queryCollection = searcher.Get();
foreach (ManagementObje ct Object in queryCollection )
{
foreach (System.Managem ent.PropertyDat a pp in Object.Properti es)
{
pp.Name.ToStrin g();
pp.Value.ToStri ng();
}
} This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Targa |
last post by:
I built a simple scheduling application using an access db.
The relevent fields are eventRoom, startDate, startTime and endTime.
When I go to add a new event, what method can I use to make sure the
eventRoom is available for the selected date and time slot? Id like to just
display an alert with the conflicting times and suggest the next available
startTime.
Thanks for any suggestions!
|
by: Fred B |
last post by:
I am launching a new thread from my application's main process (using VB.net
2003), and I can't get the child to receive the parameter I'm attempting to
send it in a named data slot.
The code for launching the thread:
Dim NewThread As New Thread(AddressOf LaunchCommThread)
NewThread.AllocateNamedDataSlot("Offset")
NewThread.IsBackground = True
NewThread.Name = SIMclass.SIM(1).strCtrlDesignator
|
by: peterggmss |
last post by:
This is a slot machine game, 2 forms. One is the actual game (frmMachine) and the other is in the background and randomizes the images shown on frmMachine. I need to make frmMachine wait for frmRandom, i tried it with the Sleep API and a Do/Until Loop and neither worked, could you please help me, I have my code below.
frmMachine
'Slot Machine, (c) 2006 Peter Browne, GPL Licensed
'
'Peter Browne
'Sheridan Corporate Centre
'2155 Leanne...
|
by: raishi |
last post by:
I am trying to figure out how to make a simple slot machine program in VBScript that starts by prompting and collecting the desired number of slot machine spins to simulate
simulates the spins:
each spin requires a randomly generated three picture enum values
each of those values is printed to the screen as Lion, Cherry, Bar, Lemon or Lime
The result of the spin is then printed, jackpot, winner, or loser
Jackpot = all values are the same...
|
by: Alexander Eisenhuth |
last post by:
Hello pyqt users,
i tried to use signal / slot across threads. With the following example I want
to emit a signal when the thread loop is entered. The connected slot is never
called. Why?
Any help is very welcome ...
Alexander
| |
by: Carnell, James E |
last post by:
I am thinking about purchasing a book, but wanted to make sure I could
get through the code that implements what the book is about (Artificial
Intelligence a Modern Approach). Anyway, I'm not a very good programmer
and OOP is still sinking in, so please don't answer my questions like I
really know anything.
MY QUESTION:
What is a slot? In class Object below the __init__ has a slot. Note:
The slot makes use of a data object called...
|
by: dirtysouth6975 |
last post by:
I need some help. I am getting an error of: local function definitions are illegal. What does this mean? Can anybody help me out a little? Thank you.
//Specification: This program simulates a three
//wheeled slot machine. Each wheel will randomly
//display three numbers. When the numbers on the
//wheels match the user is award points. The Slot
//machine requires the user to enter tokens to play.
#include <iostream>
#include <ctime> ...
|
by: Davy |
last post by:
Hi all,
When reading Python source code of Peter Norvig's AI book, I found it
hard for me to understand the idea of slot (function nested in
function). Please see "program()" nested in "make_agent_program()",
why not use program() directly?
## http://aima-python.googlecode.com/svn/trunk/agents.py
class Agent (Object):
"""An Agent is a subclass of Object with one required slot,
|
by: kunalgalav |
last post by:
Hi ,
I am a newbie to python and I am trying to send a signal to my application using a thread.
Here's my code:
import sys
from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import *
class MyThread(QtCore.QThread,QtCore.QObject):
def __init__(self, parent):
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |