|
Take a look at setupdi functions. You can enumerate all the audio devices on the system , check their names, their status, and so on.
Morality is indistinguishable from social proscription
|
|
|
|
|
Hi all
I need to create a virtual drive with a fixed drive letter then I want to mount my external hard disk to this location of virtual drive. This drive letter should not change irrespective of reboot or changing the volume name of external hard disk also. I would like to write it in C or C++.
Thanks in advance.
Regards
Rakesh
|
|
|
|
|
Hi all
I am using Celeron 2.0 processor with 512mb ram, when ever i am trying to watch some movie or play some game, my system is getting freez.
i don;t know whats the problem, please help.
|
|
|
|
|
i bet $5 u have a system with on board gfx support that uses shared memory instead of a gfx card.
|
|
|
|
|
Hello all,
I would like to have one PC running a mouse/keyboard simulation program that generates *real* mouse/keyboard input data on the USB port of another PC, effectively controlling the mouse and keyboard on the other PC without having to install any specific driver or application on the destination PC - it should just think it is controlled by a normal mouse / keyboard.
I already searched the web for quite some time on how to write such a simulation program, and either I do not search for the right key words, or it just is not possible (as u might see I do not have any clue of mouse/keyboard signals on the USB port up to now ...).
Does anybody have any clue on how to do this or where to look, or whether it is possible at all?
Many thanks in advance,
Das Ich
|
|
|
|
|
There is one problem: Just like using a VM, you'd have to lock keyboard and mouse usage to one specific computer, which probably isn't what is desired. You are much better off using a "desktop extender" like synergy, which allows you to span your desktop over multiple PCs with multiple operating systems:
http://synergy2.sourceforge.net/[^]
However, you are basically looking for a custom mouse / USB HID driver, which should be possible to implement. Even if it isnt the most sensible way to go.
Cheers,
Sebastian
--
"If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
|
|
|
|
|
Das Ich,
I'm looking into a similar problem right now. A hardware USB injector might help you (ellisys.com offer one, I think, and I've seen some others).
I tried to generate a keystroke inside the machine's driver, to affect a USB device between the machine and a keyboard (that device normally responds to keystrokes). However, it looks like I was stopped by the lower-layer drivers.
Please tell me if you find anything useful.
Regards,
brut.
|
|
|
|
|
So, I've managed to put my UMDF driver together and it actually works like a charm.
Now I'm wondering about the legal issues and the copyright for the source code.
The UMDF Skeleton sample is supposed to be some kind of a boiler plate for writing new UMDF drivers.
I haven't found any advise on how the files are supposed to be treated regarding copyright issues in the documentation/help.
My customer naturally wants to put their copyright notice in all files, but nearly all source files for the driver contains the Microsoft copyright notice.
Someone been there before?
Any ideas?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
re-write the microsft source files so they are sufficiently different.
Morality is indistinguishable from social proscription
|
|
|
|
|
fat_boy wrote: re-write the microsft source files so they are sufficiently different.
No prior post on CodeProject has made me laugh spontaneously such as this one!
Seriously, I was hoping you would answer my post, but I was also hoping somebody had stumbled on some kind of Microsoft statement that explicitly granted the use of those source files and how the copyright issues should be handled. I mean, the documentation clearly says the Skeleton sample should be used as starting point when developing new drivers and that can be interpreted as we are free to use these files. It is also described step by step how the source of the Skeleton sample should be modified in order to created a new driver.
Any other idea, beside writing to "the author"?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
a heck of a lot of code is copied off the Microsfdt samples. Why? Because the documentation is so bad for a lot of stuff you have no choice.
So jut copy it, change the code structure a bit, and no court in the world could say it is the same, and therefore protected.
Morality is indistinguishable from social proscription
|
|
|
|
|
fat_boy wrote: a heck of a lot of code is copied off the Microsfdt samples. Why? Because the documentation is so bad for a lot of stuff you have no choice.
Well, can't argue with that....
Good point, thanks.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
smart card drivers are a classic example. hardly any documentation and one code example in the DDK, which BSODs on 64 bit because of a difference in the 64 bit smart card system.
Morality is indistinguishable from social proscription
|
|
|
|
|
Hi All, Please tell me about the sockets. Is it a hardware or an virtual thing which we can open or close programatically.
A socket must be an hardware?
Akash Agarwal
|
|
|
|
|
google is your friend - try using the terms windows sockets
|
|
|
|
|
or berkley sockets...
Morality is indistinguishable from social proscription
|
|
|
|
|
BSD was the third item in my search results
|
|
|
|
|
Hi
Iam working in OPOS PosPrinter with VB.NET(using VB code). I am generating a print i.e. a Sale Receipt issued to a customer. The bill is generated OK but the alignment is wrong. The first line is printed OK but from the second line onwards the variables are printed in wrong alignment, which makes the bill look ugly. I used "vbTab" for correction but with no result. Iam sending the code :
Dim srl As Integer = 0
Dim strProduct As String
Dim Product, Qty, Rate, Amount As String
While (sDataReader.Read)
Product = sDataReader("Product")
Qty = Format(sDataReader("Qty"), "#")
Rate = sDataReader("Rate")
Amount = sDataReader("Amount")
srl = srl + 1
iprn.PrintNormal(CurrentStation, "" & srl & "" + vbTab + ESC + "|rA" + " " & Product & "" + " " & Qty & " " + " " & Rate & " " + " " & Amount & "" + vbCrLf)
End While
**DEFINED IN A SEPARATE MODULE****
Public CurrentStation As PrinterStation = PrinterStation.Receipt
It will be of immense help if somebody points out the changes to be made in the code.
Best Wishes ....... ARIJIT
|
|
|
|
|
My guess is that you are using a proportional font in the printer when you print the data.
Try a monospaced font instead, such as Courier New.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
How do I switch to a monospaced font? Where do I change, in the program or in the printer? Please give a step by step guideline.
Best Wishes ....... ARIJIT
|
|
|
|
|
|
Can we use DeviceIOControl method in case of RAID controllers?
|
|
|
|
|
i have a problem with the HP1902 Monitor, when i minimize the first screen but it stil appear the first screen on the other project's screen.
so as i mention above can you please find out the solution for me?
|
|
|
|
|
What?
Cheers,
Sebastian
--
"If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
|
|
|
|
|
My computer is festooned with USB ports and I thought they must all be 2.0 devices, but every time I plug in a new (for example) external hard drive I get a message to the effect of, "Errr, Dave, you know you could get a whole lot more performance if you plugged this device into a USB 2.0 port". It then displays a list of potential ports I could use.
The problem I have six ports coming off the MB, which I assumed were USB 2.0, two on front and four on the back, plus a four-port PCI USB card that I could have sworn was a USB 2.0 (the packaging was disposed of immediately after installation), but I can't tell which device in the list is running on which hardware port, much less if any of them are actually USB 2.0.
Is there any way to determine the capabilities of these ports? I can't seem to find anything useful from Device Manager.
Thanks for any advice.
QRZ? de WAØTTN
|
|
|
|