|
Do I need to call WinUsb_FlushPipe after every write, if I need to be sure all the data is sent immediately?
Or is it only needed under certain conditions?
Thanks.
“If I had asked people what they wanted, they would have said faster horses.”
― Henry Ford
|
|
|
|
|
Flushing will discard cached data in the receive buffer. This is probably not what you want during normal operation. It is usually done upon errors.
As far as I know data is always send immediately. But the USB device may not read it immediately. You may use the SHORT_PACKET_TERMINATE PolicyType to send a zero-length packet after each write request. This may trigger the USB device to read in all data. But before doing this I would check it it is really necessary.
|
|
|
|
|
Thanks Jochen,
The USB device in question is implemented by me, so I know that ZLP's are not required and under normal operation all packets will be read imediatly (pretty quick anyway).
So I should not need to call WinUsb_FlushPipe.
Thanks again.
“If I had asked people what they wanted, they would have said faster horses.”
― Henry Ford
|
|
|
|
|
I've been looking for new hardware to build a mini-ITX server. USB 3.0 support is a must as are SATA 6.0Gb/s, ECC DDR3 RAM, and gigabit Ethernet. Disappointingly, no such motherboard exists with all the features described.
Instead, after so much browsing and searching, I've noticed how so much hardware out there are USB 3.0-enabled and curiously, despite USB 3.0 being backwards-compatible with its predecessors I find that computer cases and motherboards will almost always have USB 2.0 ports coexisting with the newer USB 3.0 ports.
If USB 3.0 is the new standard and is backwards-compatible, why half-ass the hardware by providing "crippled" ports adjacent to the super speed ones? I'm just curious since I have been coming across computer cases with both USB 3.0 and 2.0 ports.
modified 28-Nov-12 22:06pm.
|
|
|
|
|
I have the weirdest problem and am hoping someone with a greater mind than mine can help me figure it out.
I am running Windows 7 Home Edition Service Pack 1, Internet Explorer 9.0.8112, and Windows Media player 12.0.7601
Windows Media player will not play .wav files. It will play all other types of audio and video files that I throw at it.
I downloaded the VLC media player[^] and it plays .wav files just fine.
The reason it has become a problem for me is that I am writting a little app the makes use of the PlaySound[^] API to play short .wav files. This API will also not play the .wav files.
Anybody have any ideas where to start looking to solve this problem?
[EDIT]
I ended up going into the device manager and unistalling all the audio drivers and then rebooting. Upon reboot the system reinstalled the audio drivers and all is now good.
Dang that was simple, should have done that long ago
[/EDIT]
Independent ACN Business OwnerNeed a new cell phone? We supply most of the major carriers. Telus in Canada. Flash, Verizon, T-Mobile and Sprint in the USA. O 2, talkmobile, tmobile, orange, three, and vodafone in Europe. See my website for details.
Within you lies the power for good - Use it!
modified 15-Sep-12 12:33pm.
|
|
|
|
|
XP keeps checking one of my hard drives. Runs check disk every time on start up. There are no errors found.
It is annoying, but I can live with it.
How can I get rid of it?
Any help is as always appreciated.
Cheers Vaclav
|
|
|
|
|
|
Thanks, I briefly scanned the link.
I goes from obvious - bad drive to sometimes silly - " have you checked your cables", " did you power down properly" etc.
The best "guess", and they all are guesses - with one exception, is still a bad disk. My "problem" is that it is a part of what used to be main OS partition and I do not have problems with the other partitions. That still does not mean that the problematic one is not messed up.
I think I'll check what is on the partition / drive, it is part of my backup, and than reformat it.
Unless someone comes up with a real answer.
|
|
|
|
|
I dont have XP, but it looks like (the second link) you can just can set some values in the registery and it wont run the disk check...
|
|
|
|
|
I feel that my problem is related to the fact that this used to be active OS drive and the current one has some leftovers in registry about it. It will take some guts to really get into the registry to find it. But I need to finsh some software first - just in case!
|
|
|
|
|
|
|
Hello everyone,
I want to read data from HID token in a PC(Personal Computer) bootloader.(For example in TrueCrypt bootloader).
I search very very long in Google but couldn't find any solution about it.
I am tired.
If you can, please help me.
Thanks very much.
modified 4-Sep-12 6:18am.
|
|
|
|
|
First question...
WHY are you trying to get a HID toekn from a bootloader?? To what end?
|
|
|
|
|
Hello everyone,
I posted this question in the C# forum, but felt that those on this forum might be able to help as well.
I have a project that requires me to gather inventory data for my computer. I am having problems trying to get the properties of the monitors attached to my computer.
I have one computer that can potentially use a max of 4 monitors, wherein I have a primary monitor and 3 other potential monitors which act as extension screens when I move my mouse to them ( depending on whether they are connected or not ).
I need to grab the following information from each monitor :
DeviceId,
Name,
Horizontal and Vertical resolution,
Whether or not the monitor is the primary one ( a true or false value will suffice ).
I tried using the WMI, Win32_DesktopMonitor class but it is only giving me ONE monitor's results ( the primary monitor ).
I then tried using the Win32_PnPEntity class.
This works, and gives me the number of monitors attached to my computer, but it only gives me Name and DeviceId ( no horizontal and vertical resolution information in this class ).
I then tried the Screen class (using the System.Windows.Forms.Screen), however the result is erratic. In one environment, it gives me the right number of monitors attached to my computer, in others, it does not.
Does anyone know of a Class provided by .NET 4 that will help me gather the information I need?
I am using .NET Framework 4 and building my application as a Console Application.
Any suggestions and advise will be highly appreciated.
|
|
|
|
|
Don't post your question more than once. Pick a single forum and stick with it.
It makes collaboration on an answer nearly impossible when you cross post.
|
|
|
|
|
I've been looking into getting a GPU.
In the spec sheet for the GPU it says this:
Quote: PCI Express® 2.1 x16 bus interface
Double slot form factor
Looking at a picture of the GPU it only has one PCI connector on it. Does "double form factor" mean that it has two PCI connectors on it, or that it simply takes up the available physical space of the other PCI slot?
Also, the motherboard I have been looking into says that All PCI Express slots conform to the PCI Express 2.0 Standard[^]
So will the GPU I have found work with a motherboard that only supports the 2.0 standard, instead of the 2.1 standard?
Thanks
=====
\ | /
\|/
|
|-----|
| |
|_ |
_) | /
_) __/_
_) ____
| /|
| / |
| |
|-----|
|
=====
===
=
|
|
|
|
|
Lloyd Atkinson wrote: Looking at a picture of the GPU it only has one PCI connector on it. Does "double form factor" mean that it has two PCI connectors on it, or that it simply takes up the available physical space of the other PCI slot?
It only has one PCI connector, but the overall thickness of the graphics card covers two PCI widths, so if the motherboard doesn't allow for this with a gap you will have a PCI connector that can't be used.
Lloyd Atkinson wrote: So will the GPU I have found work with a motherboard that only supports the 2.0 standard, instead of the 2.1 standard?
I'm leaning towards yes, but wait until someone with more current knowledge ways in.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
You need to give more information about the :
* motherboard model
* graphic card model
then we can decide
|
|
|
|
|
Hi,
I just bought a laptop which has an I7 2670QM processor the intel specs for this processor state is 4 cores and 8 threrads
I assume that 4 cores means that 4 threads/tasks can run simoustanly
would anyone what 8 threads mean
|
|
|
|
|
Intel processors use something called Hyperthreading. This technology allows each core to behave as two separate cores, doubling its processing power.
So with 4 physical cores, you can have 8 separate threads running at once.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Does anyone know of a resource that I could use that shows which files and folders that are required or important for the Windows 7 operating system to work, since I wiped out my HDD and absolutely nothing is on it. The reason why I want to do this is that I was wondering if I could copy the operating system files and folders of anther computer (that is working, or has that operating system) and copy-and-paste those files and folders on an externel device and then copy-and-paste those files and folders on another computer (which is mine of course), that it's HDD has been wiped out, and see if it works (if it does), and feedback on if it will work or not, is very welcome.
Simple Thanks and Regards,
Brandon T. H.
Programming in C and C++ now, now developing applications, services and drivers (and maybe some kernel modules...psst kernel-mode drivers...psst).
Many of life's failures are people who did not realize how close they were to success when they gave up. - Thomas Edison
|
|
|
|
|
There's no such thing. You need just about everything under the Windows folder. Nobody maintains such a list as the number of files requires is quite large and differs depending on the configuration of Windows and the features and options installed.
Just copying the files over is not going to do you any good as the hardware installation is different (even the HAL can be different and not work on your machine) and the licensing will no longer work and you will be required to activate Windows again with a valid CD key.
|
|
|
|
|
Sorry. I am afraid I cannot bring you good news. You have to reinstall Windows all over again.
Hardware differences, installed options/programs and a ton of other issues makes it impossible to do that. This reminds me that I need to do a backup of my drive.
You posted a message here a few days ago about your nuclearBoot program - I guess it works, so that part must feel good
Again, I feel your pain.
Soren Madsen
|
|
|
|
|
Hi all,
So this deep dive I am taking into the world of Windows driver development has got to the stage where I want to automate the installation of my driver.
Ultimately I am trying to quietly install and uninstall a system filter driver (so there is no 'attached device', it gets installed under System devices).
The driver I am trying to install at the moment is the cool example posted by Prikarna (Simple Serial Port Monitor).
I have been playing around with dpinst, which seems to pick up the .inf file, but shows the status as not needed, because there is 'no device for update'. So if dpinst is capable of installing Prikarna's driver, I suspect the issue is something in the .inf file.
#1. Is running dpinst in quiet mode with a VS2008 setup application a good approach for what I am trying to achieve?
If dpinst is a good approach..
#2. What are the key tags/sections that need to be added to an .INF file (or some other file?) to have dpinst install a filter driver under System Devices?
Thank you,
Mark.
Mark Brock
"We're definitely not going to make a G or a PG version of this. It's not PillowfightCraft." -- Chris Metzen
|
|
|
|