|
Cute. You posted the exact same question in an article that shows you how to do it. Read the article and loko at the code same provided at the top and you'll have your answer.
BTW - spamming the entire site with the same question numerous times is considered very rude.
|
|
|
|
|
Hi All,
Iam faced with this problem.
1. I have an application that should be capable of handling two usb mice. Let me elaborate.Two usb mice (or mice
like devices) will be connected to my system (windows xp) obviously through USB ports. I should be able to assign
or say that the mouse connected to this (one fixed) physical USB port is my left mouse and the mouse connected to
another (fixed one) USB port is my right mouse. Next, I should be able to distinguish between the events generated
by both the mice.
2. I have tried Raw Input Api whereby Iam able to distinguish between mice inputs. But Iam not able to fix my mice as
left and right. I tried to distinguish the mice using usb port ids. But whenever I plug out and reinsert my mouse,
the port id keeps changing (is this observation correct?). Also, for this requirement, I should be able to say
before hand what is the port number of my left mouse and my right mouse.
Any help on this would be highly appreciated.
Kamalesh Narayan Nair
|
|
|
|
|
You're going to have to write your own driver.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
You posted this same question in visual c++/mfc. Where else have you been posting this same question, unaltered? >_>
|
|
|
|
|
I am having a problem with mapping the USB Port of a USB Device to it's coresponding DirectSound Device. I am doing this in order to associate a specific USB Port with a specific DirectSound Device in order to get the FriendlyName for the DirectSound Device to associate with an audio control. I need to have specific knowledge of the USB Port in order to make sure the endpoint audio device is going to the correct user. I'm working in VS 2005.NET C# and hope this is possible. I've taken a look at the C# version of USBView, which gets you down to the USB Device, and I have also looked at DirectSoundEnumerator, which I can use to search the Interface string for the "USB" substring in order to select the DirectSound USB Audio Devices. From what I can see so far, there is no matching information coming from either side in order to map these two together. Does anyone have any way of doing this? Thanks in advance for any help, which is greatly appreciated.
GrizMan
|
|
|
|
|
Here is a further update on what I have done:
I have a question about ParentIdPrefix. I am down at the device level for USB devices and I found the DriverKeyName by first setting up a SP_DEVINFO_DATA da = new SP_DEVINFO_DATA() structure and then calling SetupDiEnumDeviceInfo(h,i,ref da) and then using SetupDiGetDeviceRegistryProperty with SPDRP_DRIVER. Now I want to access the ParentIdPrefix at that level and compare it to the ParentIdPrefix I extract from the Interfaces ID string provided by DirectSound. In my code in which I have used the example from USBView to get to the USB Device level. I tried to get the ParentIdPrefix by using CM_Get_Parent with the da.DevInst value I have. The value I received (3042) does not represent the ParentIdPrefix value (string) (7&f4e88d5&0) I can see in the registry. I would like to get the value I see in the registry. Do you know how I would go about this?
Thanks in advance for your help.
GrizMan
|
|
|
|
|
m using a bridge for encrypting my ethernet link. now i want to send traffic from one system to the other with 2 bridges between them one for encrypting, other for decrypting and want to check how much over head they are creating as in decrease in transfer speed (if any). how can i check that?
please refer to any 'free' software.
also
my LAN cards are 1Gbs in both PC's and both Bridges, would that be ok or should i use a better card in my PC's. and any other thing (e.g. LAN cable) that can create a bottle neck in my case that i need to know?
i appreciate ur help
|
|
|
|
|
What kind of bridge encrypts data? A bridge is normally used to pass data from one physical media to another, or from one LAN topology to another, but I've never heard of one that encrypts data as it works.
In any case, the 1Gbps cards should be quite adequate - any overhead is going to be in the bridges and PCs themselves, unless the cable isn't up to par. Cabling can be a major bottleneck if its components and construction aren't matched to the data rate used. Cable terminations are particularly important, as if they aren't done right they will introduce reflections on the line (noise) and cause excessive NACK responses. When a NACK is received, the sender has to retransmit the data, reducing the effective data rate. At this data rate it probably doesn't pay to try to do the terminations in the field; 100BaseT is hard enough to do properly. Investing in top quality cables is money well spent, generally.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
I turned on my computer this morning, and just got a blank screen. (The monitor says "no input signal", and then goes into standby).
There are no warning beeps or anything. I can't remember if it used to beep or not after the POST was completed. Now it's just silent.
The hard drive spins up, and seems to be accessed.
I've tried resetting the BIOS by swapping the jumper over, waiting 10 seconds, and then back again.
I've tested it with a different monitor to check it's not a monitor fault.
The motherboard has on-board graphics (Geforce 6100)
It's a Biostar - IDEQ 250N[^], with an AMD Athlon 64 X2 4200.
Does anyone have any idea what the problem could be, or suggestions for what I can do to diagnose it.
Simon
|
|
|
|
|
Well, this is obviously going to be a hardware failure of some kind. Swap out the power supply, and if that doesn't do it, swap the CPU, and if that doesn't do it either, swap the RAM, then the entire motherboard.
|
|
|
|
|
Dave Kreskowiak wrote: Swap out the power supply, and if that doesn't do it, swap the CPU, and if that doesn't do it either, swap the RAM, then the entire motherboard.
Cheers. That's in order of how much I hope it fixes the problem. I really don't want to go through the process of buying and swapping the motherboard.
Thanks though.
Simon
|
|
|
|
|
Something wrong with the motherboard's onboard graphics perhaps?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Paul Conrad wrote: Something wrong with the motherboard's onboard graphics perhaps?
Potentially. It was my first thought. But any idea how I can tell? With no output I don't even know if it's booting up or not. I've reset the bios, so it's not an incorrect setting issue. I have tried a spare graphics card, and it doesn't work, but IIRC you had to change the bios settings to use a graphics card, which I can't do.
Cheers
Simon
|
|
|
|
|
Or, try to make a safe problem, which BIOS would normally beep about, like remove all the RAM. If the computer starts beeping then you know that BIOS, CPU, PSU are probably OK. If not the Motherboard/CPU/BIOS/PSU is damaged. If you have a loose PSU lying around then test that first, since you can just unplug the wires from the old one, and let the new one site outside. If that's not the problem look at the Motherboard/CPU. Note that in my experience these parts very rarely break (it's never happened to me at least...)
Hope you solve your problem.
//Johannes
|
|
|
|
|
Johpoke wrote: Or, try to make a safe problem, which BIOS would normally beep about, like remove all the RAM.
Nice idea, thanks. Tried it, still no beeping.
I do have a spare PSU (well, when I say spare, I mean the one in my wife's computer. I'll have to wait till she's not looking to try that out ).
Lights do come on, and the drives all spin up, so the PSU is at least partly working.
Thanks.
Simon
|
|
|
|
|
Simon Stevens wrote: Lights do come on, and the drives all spin up, so the PSU is at least partly working.
You might get good power from the power supply, but that doesn't mean it's raising the PowerGood signal to the motherboard, so you may still have a bad power supply.
|
|
|
|
|
Hmm, still hard to to tell whats wrong. As dave says the PSU might be faulty, as HDDs only need +5 and +12v while the motherboard will need some other voltages too. Does your computer have a high-end or good quality PSU? Or some no-name (like POWER MAN)? I always try testing the easist first, too bad you dont have any PSU thats not in a computer... If PSU is not the problem then it's probably the motherboard or the CPU. CPU Overheated maybe? Fan full of dust? Or fan out of oil? (= it stops) Sometimes (yet very rarely) removing all components and putting them back in can help. (But if it has been going fine for ages and is not home built this will probably not help)
Some newer computers don't have BIOS speakers installed (and some have them installed on the motherboard), So if yours doesnt have any, install one.
//Johannes
|
|
|
|
|
Whats your time worth? If its upwards of 40 dollars an hour just buy a new box with new motherboard, RAM, CPU and PSU. Put you old HDD in and away you go.
Morality is indistinguishable from social proscription
|
|
|
|
|
Dear,
I need help in vb/vb.net to check wheather installed drivers (i.e) lan drivers, sound cards, etc are properly installed.
For eg., mycomputer->properties->devicemanager will give all the details of the driver installed in the machine, but this is manual involves user interaction.
But through either vb/vb.net i need to give status of the installed drivers to check wheather it is properly installed or not.
|
|
|
|
|
Member 4567325 wrote: For eg., mycomputer->properties->devicemanager will give all the details of the driver installed in the machine, but this is manual involves user interaction.
It only shows devices attatched to the system/the system itself. It wont show you all the drivers (inf files and respective sys files) that are available on the system.
However, what do you mean by properly installed? How do YOU intend to judge what is, and isnt, a propper installation? (Given that if an inf file exists in the inf directory with a respective pnf file then it HAS gone through SetUpCopyOEMInf() successfully.
If there is any error in the inf, or files specified, then SetupCopyOEMInf() would fail and the inf would not be compiled into a pnf.
If you want to know wether a driver is on the system then you can check all the inf files for the HW id of the device in question. If it exists in the inf directory, it will be installed correctly.
Of course the driver could be faulty, in which case it might not load, but in this case, you are in a different situation where the SetupDIxxx funcitons can be used to examine the state of devices on a system.
Define the problem, and the solution defines itself!
Morality is indistinguishable from social proscription
|
|
|
|
|
Dear Thank u for your reply.
Let me be clear in my question.
In need to check whether all the hardware devices are installed in my machine without yellow mark. as we see in device manager.
I want to list all the status of the hardware drivers installed in the PC
Eg.
LAn driver- Status - Ok
Audio - Status- Not properly installed
Based on the yellow bang
|
|
|
|
|
OK, thats more like it.
You need to look at the setupdixxx functions. Start with SetupDiGetClassDevs(). Then read, and read, and read MSDN. (By the way, the device classes are in the registry: HKLM\sys\ccs\control\deviceclasses. Find the one that relates to the device class you are interested in and away you go.)
Morality is indistinguishable from social proscription
|
|
|
|
|
Hello.
I'm trying to find a way to extract the raw hid report descriptor of a HID device.
I will have a filter driver attached to the device so I don't mind the mode (kernel/user) where I get it.
I don't want anything pre-parsed, I need the raw binary data.
Example of report descriptor: http://euc.jp/periphs/xbox-pad-report-desc.txt[^]
Does anyone know how to achieve this?
ZeWaren / Erwan Martin, French student.
|
|
|
|
|
The question was posted nearly twelve years ago. They either solved it then or gave up.
|
|
|
|
|
Hi all,
we're developing a filter driver for the ip stack. Everything on XP works fine. On Vista we have to switch off UAC, otherwise the dll accessing the driver gets an access denied error. Running the app as admin works, too.
I do not understand why the app does not work in normal user mode. All applications accessing hardware do not have to run elevated. So, why do we have to elevate our app in order to get the access to our driver?
We've tried to use signed driver and application without success.
Any thoughts?
jung-kreidler
|
|
|
|