|
heh.
Give a man a hammer, and every problem is a nail.
Give a man experience in writing drivers, and every problem is solved by writing a driver.
It looks like Bernard got the right answer.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Bernards solution only works when you have your app already running. If you want to disable it completely for a USB device then my solution is the one to use.
"It is a remarkable fact that despite the worldwide expenditure of perhaps US$50 billion since 1990, and the efforts of tens of thousands of scientists worldwide, no human climate signal has yet been detected that is distinct from natural variation."
Bob Carter, Research Professor of Geology, James Cook University, Townsville
|
|
|
|
|
Since VuNic wrote: I want to disable this automatically for the applcation I'm writing for the camera.
I assumed that my solution would solve his problem.
But yes, there are some more caveats: it is only the foreground window to receive the QueryCancelAutoplay message. When a common message box pops up from your application, the message will be sent to that window, and the message box doesn't handle it... Of course, there's a solution available here: register for the device arrival message (sent to any window), check vendor id and device id, then pop up your interception window (when I remember correctly, it need not be visible for that purpose).
If you want to disable AutoPlay for a specific device also when the application is not running, your version would be required. But here, I'd prefer to have AutoPlay opening the application.
|
|
|
|
|
Yeah but Windows is popping a dialog before he can run any app.
Of course what he COULD do is to put the app, and an autorun.inf on his camera and have it present itself as a USB stick to the system when inserted. The app can then instruct the camera to do whatever it needs to do.
"It is a remarkable fact that despite the worldwide expenditure of perhaps US$50 billion since 1990, and the efforts of tens of thousands of scientists worldwide, no human climate signal has yet been detected that is distinct from natural variation."
Bob Carter, Research Professor of Geology, James Cook University, Townsville
|
|
|
|
|
|
I need to talk to someone who is absolutely familiar with dual boot windows setup.
I mean no offense, but I just cannot go with " try this and see" approach. Been there , done that.
I have two basic disks ( no dynamic) on my secondary IDE. I have Windows 2000 pro( disk manager identifies this as (system)), Windows 2000 server (disk manager identifies this as (Boot) and XP on the third partition of the first (master) drive and Windows 2000 pro ( disk manager identifies this as (Page file))on the second drive ( slave).
I ended up with this setup after win 2000 server basic drive was about to fail ( per bios error) and my Win 2000 server CD would not load. ( Long story) .
I need / want only the server to work.
If I remove the second basic disk from the IDE ( both physically and in bios) - the server will start but I cannot log on (CTRL ALT DEL) and get an error message that there no page file.
All partitions have pagefile.sys on them!
Essentially I need to keep the second drive plugged it to make the server work. I would like to clean this up or use the second drive for real, not as a page drive.
Please be nice and reply only if you can help me get the page file working correctly in my current OS and hardware system! “Upgrading” is not an option!
Thanks for understanding and for your help.
Cheers Vaclav
|
|
|
|
|
The fact that you have files called pagefile.sys on various drives doesn't matter if your OS is looking for it in one location and not finding it. What you need to do in order to remove the 2nd drive is to explicitly tell windows that the page file belongs on the first drive. I believe the control panel pagefile settings page allows you to do this if you switch from let windows manage the page file, to let me manage the page file; but it's been far too long since i used win2k to give detailed instructions.
3x12=36
2x12=24
1x12=12
0x12=18
|
|
|
|
|
Thanks, but I have not found any "tell windows" options.
Could I do this - remove the page file from the "offending drive" and than add one to where OS wants it?
I have not try that. But I susspect it may not work.
Also , why is page file needed in the first place ( I got 1.5 GB of RAM!) , especially on start up / log on??
PS I did a stupid thing - I moved the IDE's around( first IDE XP second Win2000's) and now I need to find how to do dual boot in XP.
I do not see any boot.ini there.
I'll google it.
|
|
|
|
|
This[^] might help.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Luc, thanks, the article explains a lot.
I wish someone would publish all the stuff which is in registry and how it can be modified.
Why is it kept "secret" is beyond me.
For example I have an extra partition on the OS drive I want to keep so I can put a page file on that. I still do not get why the page file on the Win2000 server is invisible to the OS.
Aslo I cannot delete some of them in OS, I'll need to go to DOS to do that.
I also do not get why I cannot log in if there is no page file available.
That should not stop the OS from working, even if slowly. After all , the page file is just an extra RAM.
Also it seems that if the page file is on USB drive the OS cannot use it.( I did try that and it did not work)But that is no surprise , USB and MS OS do not work that great together anyway.
Thanks for your help.
Vaclav
|
|
|
|
|
Vaclav_Sal wrote: I also do not get why I cannot log in if there is no page file available.
That should not stop the OS from working, even if slowly. After all , the page file is just an extra RAM.
Because MS hadn't finished writing graceful error handlers for all the fail cases that would never be seen by anyone configuring the OS in the standard fashion.
I'm 95% sure XP and later will gracefully handle a nuked page file.
Vaclav_Sal wrote: Also it seems that if the page file is on USB drive the OS cannot use it.( I did try that and it did not work)But that is no surprise , USB and MS OS do not work that great together anyway.
This could easily be by design in newer OSes; since win2k can't handle a missing page file I'm virtually certain not allowing one to be created on a removable device is by design. USB's overhead/botttlenecking could be too high for acceptable performance in the bulk data transfers that paging involves.
3x12=36
2x12=24
1x12=12
0x12=18
|
|
|
|
|
IIRC paging to USB memory sticks was added to XP when netbooks with small/slow hard disks emerged.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Was it? Readyboost in Vista/later would do similar, but I don't recall anything similar for XP; and readyboost was IIRC only intended for smaller data transfers (where latency mattered more than throughput) not bulk data shifts.
3x12=36
2x12=24
1x12=12
0x12=18
|
|
|
|
|
I may be wrong about when/where it got introduced, I never used it. AFAIR all that was involved is getting the USB driver up and running early on.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Vaclav_Sal wrote: Thanks, but I have not found any "tell windows" options.
Could I do this - remove the page file from the "offending drive" and than add one to where OS wants it?
I have not try that. But I susspect it may not work.
I think it should. If you found the dialog to remove an old pagefile and add a new one that's what I was referring to. AFAIK there wasn't any fine grained interface between automatic and user defined behavior.
3x12=36
2x12=24
1x12=12
0x12=18
|
|
|
|
|
I have about 12 years Windows Kernel experience and want to get into LInux.
Seeing as its always better to have a real project to work on, does anyone need a Linux driver doing? Might take a bit longer than a seasoned Linux pro, but it will be free and well done!
"It is a remarkable fact that despite the worldwide expenditure of perhaps US$50 billion since 1990, and the efforts of tens of thousands of scientists worldwide, no human climate signal has yet been detected that is distinct from natural variation."
Bob Carter, Research Professor of Geology, James Cook University, Townsville
|
|
|
|
|
If you're still looking for a project, I've always seen recommendations to only buy laptops with intel wifi cards because 3rd party driver support is lousy. If keeping knowledge about how your employer's windows drivers work separate isn't a problem writing a driver for one of the missing chips would be beneficial.
3x12=36
2x12=24
1x12=12
0x12=18
|
|
|
|
|
Dan Neely wrote: 3rd party driver support is lousy
I have seen some bad stuff form the likes of sony and symantec even.
ANyway, whats the card you had in mind (dont forget it will talk to the OS HW via a stock kind of a chip, which will have ports and memory mappings (possibly), so the actuall WLAN chip used isnt going to impact the driver hugely..
"It is a remarkable fact that despite the worldwide expenditure of perhaps US$50 billion since 1990, and the efforts of tens of thousands of scientists worldwide, no human climate signal has yet been detected that is distinct from natural variation."
Bob Carter, Research Professor of Geology, James Cook University, Townsville
modified on Wednesday, February 9, 2011 11:25 AM
|
|
|
|
|
I need to know what is the rate limitation of USB virtual com port.
Is the rate is the limitation of the USB ( ~57 MB/s ) or the limiration is simple com port ( ~115200 baud ) ?
Thanks.
|
|
|
|
|
I've done some 115kbd through USB-to-serial cables, no problem. They do try and make multi-byte data packets on USB, which is fine for the data throughput; I do expect they are somewhat slow in dealing with the control lines, so if you plan on creating high-frequency signals on say DTR or RTS, it might be a lot worse than it is on a regular RS232C port.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Speed is limited by hardware, so in this case you havent got a UART in the link, you have a USB cable probably doing bulk transfers and run at each end by a driver that registers itself as a seriall driver with the system and supports all the usual serial functionality (set get baud, set wait chars, timeouts etc etc etc).
In fact I have written such a driver for a USB 3G product (some years ago and which actually had 30% of the world market and 80% of the european market, so it was widely used! )
Anyway, basically, when the device was run through the serial port (using dial up networking (DUN)) the throughput is entirely limited by the USB speed (when hooked direct to a base station emulator. In ral life it is of course limited by network coverage).
I actually also wrote an NDIS driver for the same device which presented the device as an ethernet device. Its throughput was slightly higher than DUN.
"It is a remarkable fact that despite the worldwide expenditure of perhaps US$50 billion since 1990, and the efforts of tens of thousands of scientists worldwide, no human climate signal has yet been detected that is distinct from natural variation."
Bob Carter, Research Professor of Geology, James Cook University, Townsville
|
|
|
|
|
Hello,
I have some simple card that will be use to transfer video from webCam to the PC.
Now, i need to write a drive to this card and make sure that the video will be seen by some other application that i already wrote.
The card is not sit in the pc - so i using UBS to connect to the card that will be sit in some other 'box'.
I download the DDK - and i was reading about how to do it.
But now i don't know how to start.
Is there any code example and some good reference that i can learn to know how to start and how to do it ?
Thanks.
|
|
|
|
|
The reference materials you are looking for are here[^] (and elsewhere on the web via Google). However, be warned that writing drivers is not a trivial task so unless you have good solid Windows programming experience you may find it something of an uphill struggle.
I must get a clever new signature for 2011.
|
|
|
|
|
Give up.
If this is in anyway anything other than a study project, ie if its of any comercial value tell your boss to get a kernel contractor in. What you are facing is a learnign curve as steep as a black holes gravity well, and will probably take you 2 years to even get running, let alone be stable.
I say this becaus you had to come here and say "where do I start".
You have, I take it, downloaded the WDK/DDK and have read the entire section on video and USB? No, didnt think so. If you had you would know where to start and would have specific quesiotns, like USB bus protocols, bulk transfer sizes, isochronous pipes and the like.
"It is a remarkable fact that despite the worldwide expenditure of perhaps US$50 billion since 1990, and the efforts of tens of thousands of scientists worldwide, no human climate signal has yet been detected that is distinct from natural variation."
Bob Carter, Research Professor of Geology, James Cook University, Townsville
|
|
|
|
|
Hi,
I just got an Intel DP55WG main board. The problem is that when I switch it on, I get an 3b code. The computer doesn't even show the boot screen, hence I cannot access the BIOS. (The error code is not documented in the manual). Then the whole system restarts, and repeats until I switch off the PSU.
I tried different memory modules, Gfx cards with no success.
Any ideas?
Thanks in advance
--------------------------------
Specs :
CPU : i5-650
Ram : Kingston 1333 DDR3 (4gig)
GFX Card : XFX Radeon HD5750
PSU : 650 Watt
|
|
|
|