|
Then you have to physically secure the network and the server. That's something you cannot code.
What good is it going to be to know that something the was connected? You can't determine who did it or why, so I fail to see how it would do you any good...
This stuff cannot be coded as it's all handled by properly configured policies and network controls. If you don't want someone attaching devices to the network, you'll have to limit access to the network in the router.
Again, this is all stuff that cannot be coded in an application.
|
|
|
|
|
If the server is using DHCP and you want to limit the clients that can connect (and dont use the word 'client' for the 'customer' its confusing) you can limit it only to the MAC address of your particular client.
If you are talking aboute devices conected to the server then lok at setupoem.inf (in various places depending on windows version). It records the history of devices connected to a machine.
"If climate has not "tipped" in over 4 billion years it's not going to tip now due to mankind."
Richard S. Lindzen, Atmospheric Physicist, IPCC
"It does not matter who you are, or how smart you are, or what title you have, or how many of you here are, and certainly not how many papers your
side has published, if your prediction is wrong then your hypothesis is wrong. Period."
Professor Richard Feynman
|
|
|
|
|
I connect a digital camera.
In windows 7 , Autplay Pops up to ask if it wants to open the media to play the files.
I want to disable this automatically for the applcation I'm writing for the camera. I know it's stored in the Registry.
I need to disable autoplay specific to this device. A system wide Autoplay-stop is working fine, I found where it is configured in registry.
BUT a device-specific autoplay stopper, I'm not able to find I've tried entering the CLIS id for the device in AutoPlayCancel handlers..Nothing seem to work.
Any help please?
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
Why not just autoplay a tiny app, whose only function is to immediately close itself?
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Its a USB device?
"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
|
|
|
|
|
yes.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
OK, you add a kernel filter driver that modifies the device characteristics structure when the device returns it to the system. I seem to recall you set the device removable flag to false, buts its been a while since I last did this.
"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
|
|
|
|
|
fat_boy wrote: I seem to recall you set the device removable flag to false
That would work, but it means modifying stuff in the System Volume Information directory on the drive, which you won't have access to if you're only writing software to run on the hardware (and possibly on different cameras) -- to do it for all instances of a device, you'll have to get it done during manufacture.
If it's OK to do it for just one device, the System Volume Information directory is made accessible by disabling simple file sharing on the computer, then editing the security of the directory to give yourself rights.
I'll be buggered if I can remember which file to edit (or even if the flag is called "removable"), but Google will tell you what they all do, when you've got in to look at them.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
No you dont.
You create a filter driver, intercept the IRP_MJ_DEVICE_CHARACTERISTCS on the way back up for the device and change the value. You then specify the service entry for this new driver in the HKLM\SYS\CCS\ENUM\USB\<your device=""> by adding an UPPERFILTERS REGSZ. The new filter driver then gets loaded above the ordinary USB driver for the device.
All other IRPs are passed down with the IoSkipCurrentIrpStackLocaiton() call. But look at the DDK for an example of a filter driver, and since it is probably buggy, use Oneys book to put it right.
"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
|
|
|
|
|
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
|
|
|
|