|
You cannot do this in user code. You have to write a .DLL or other device driver that runs in Ring 0 and provides the data to your app. Welcome to the wonderful world of NT Kernel programming!
|
|
|
|
|
I was afraid of this. But I'm not even in with the lingo yet - the Ring 0 idea gets me googling further - thanks. Any good guides out there for DLL writing and getting to Ring 0 / NT Kernel programming?
I may have bumped into this problem before in 2002, trying to get data from the ECP port really fast. I ended up abandoning Windows XP and got a linux system up and running, through which I got everything done, but I had to learn Linux in the process so I'm sure it's the same effort to just figure out NT Kernel programming.
|
|
|
|
|
ChrisBosch wrote: Any good guides out there for DLL writing and getting to Ring 0 / NT Kernel programming?
Not that I know of, but then again, i haven't had the need for about 7 years now. You might want to ask the same question in here[^].
|
|
|
|
|
Thanks Dave!
|
|
|
|
|
Hi Chris,
Actually... I think it is possible to read this physical address from usermode without writing a device driver on Windows XP SP2 and below. You would need to rely on some unsupported and fairly undocumented techniques hacks to achieve this however. You could start by researching Device\PhysicalMemory and NtOpenSection[^].
An even better solution would be using a device driver such as WinIO [^]to map the physical memory into your process. WinIO comes with full source code.
Best Wishes,
-David Delaune
|
|
|
|
|
Hey now there sounds like an idea - I'll look it up and let you know what I get going - unfortunately as pet projects go I can't deliver lightning fast results - work and social life somehow take preference...
But I'll definately come back here with a working piece of code hopefully other people can use this hardware RNG through our findings.
Also will have to look at how fast I can get random samples from the device - I expect it to be slowish, but one could definately incorporate the input into a psuedorandom sequence to yied hopefully superior results.
I'll get back to you guys.
|
|
|
|
|
Can somebody please tell me what to do about administrator password.
This pc was purchased from Costco as open box item and somehow it's
showing that there is an existing administrator code. I'm concern about
the privacy safety if I can't fix this issue.
God bless to you all...
|
|
|
|
|
Assuming the password to the account is non-blank, there're bootable CDs with command line tools that will allow you to write a new password for an existing windows account.
The latest nation. Procrastination.
|
|
|
|
|
Hello.
My program burns CD's/DVD's. Those CD/DVD's are sent out to a lot of receivers, countrywide. Now, I've got error reports from some people who claims that the two CD's they got is identical to eachother. That is not the case.
The CD's in question got the same volume label, the same anount of files, with identical file names.
But the content of the files differ.
When the receiver has read the first CD, ejects it and puts in CD No 2, the information doesn't change (due to the fact that the driver cdrom.sys doesn't notice the changed CD, I guess). And the content of the files (from the first CD) seems cached, so the user sees the files from CD No 1, despite the fact that CD No2 is inserted.
F5 doesn't help, since the file system doesn't become refreshed.
If the user reads a completely different CD between "my" CD's, the file system is refreshed and the information is correct.
My question:
What's the criteria (in cdrom.sys) for detecting a replaced CD in the CD-ROM drive? Different volume label, or what?
This problem drives "my CD readers" go nuts, and then it hits me...
TIA.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
modified on Wednesday, September 23, 2009 6:19 AM
|
|
|
|
|
kakan wrote: The CD's in question got the same volume label, the same anount of files, with identical file names.
Well I guess Windows may not be able to guess that the contents of the files is different.
|
|
|
|
|
I know how it works for diskettes, since I modified Windows diskette driver (a long time ago).
The diskette driver compares the diskettes serial number to the serial number gotten from the previous access to the diskette.
But for a CD/DVD? Maybe I should get a copy of the source code for cdrom.sys and examine it. I'm not sure I got the time for it. I think I'll hang around CP a while before trying that.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
This may be too late for your purposes, but I have only just seen your question.
Take a look at How to receive notification of CD-ROM insertion or removal[^] on MSDN.
Google could have saved you a lot of time!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hello.
I did at lot of Googling about the subject.
The article you are referring, talks about receiveing and handling WM_DEVICECHANCE messages.
In this case, there are no such messsage, and that's the problem.
My guess is that it's a driver issue.
My question was (and still is): What's the mechanism for the driver to detect that the CD/DVD has been replaced (and consequently send a WM_DEVICECHANCE message)?
In other words: What do I have to do with the CD's/DVD's in order to make Windows (and it's cdrom driver) discover that CD/DVD has been replaced?
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
We are looking at our disaster recovery strategy. One of the big concerns is documentation. We are leary of having multiple versions of our documenation and so have it shared folders that are then backed up to key fobs. Right now the documentation is in word files and spreadsheets and screaming for a wiki.
I was wondering does anybody know of a wiki that runs on a shared server but can be downloaded and run off a key fob on a basic windows installation?
Ken
|
|
|
|
|
hi everybody..
i am searching "intel 284B HD driver".i have install my laptop but my driver CD is not working.i got the internet driver but i did not find the sound driver.please help me..
|
|
|
|
|
kabirbdboy wrote: i am searching "intel 284B HD driver"
Did you search the Intel website?
|
|
|
|
|
i got the intel webside but there i could not find "intel 284B HD audio driver".if anybody have or get this driver,please inform me.
|
|
|
|
|
Hi,
How to make internet explorer as a default browser? Actully i have now Mozilla Firefox as my default browser.
|
|
|
|
|
I currently have FireFox as my default, whenever I open IE it prompts me to make it the default. Does this not happen for you?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
No. It is not happening for me.
|
|
|
|
|
Ok.
1) start IE manually (double-click the icon)
2) Tools menu
3) Internet Options
4) Programs tab in the dialog
near the bottom of that page you will see a checkbox to make IE the default. Then OK your way out.
Cheers!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I have a nice hp pavillion laptop. I installed Windows 7 RC (64) on it a few months back. Now having obtained Windows 7 RTM from TechNet, I started the install of Windows 7 RTM (64). During setup it told me "Windows cannot be installed to this disk" and something about not being able to boot off the disk, but installed windows anyway. The next boot, I get "Operating System Not Found". I booted off GPartEd and set the hard disk to "boot" label. The next boot I get "BOOTMGR is missing. Press Ctrl-Alt-Del to reboot". I tried system repair, but it does not detect any problems. Also, there is no 'boot' folder in C:, and bootrec /scanos lists 0 windows installations. What should I do?
~ Soumya92
|
|
|
|
|
I think that you have a 160GB coaster.
If I were you I would go back to the Tech-Net site and search for installation instructions for the RTM version. I vaguely remember reading somewhere that you cannot upgrade from RC to RTM.
Alternatively take a look at this[^]. I found that and several other promising hits by Googling windows 7 upgrade rc to rtm. Give it a go.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I did not upgrade. I should have mentioned that. I completely formatted the drive containing Windows 7 RC, then installed Windows 7 RTM. However, the problem is now solved. The solution was to, believe it or not, use the VISTA DVD to repair the startup. On booting to repair, it immediately prompted me to "FIx and Restart" a startup problem, and hey presto, problem solved.
It is sad to see that Windows 7's startup repair fails to detect the issue, while Vista's startup repair fixes it in seconds.
~ Soumya92
|
|
|
|
|
Glad you have resolved your problem.
Soumya92 wrote: It is sad to see that Windows 7's startup repair fails to detect the issue, while Vista's startup repair fixes it in seconds.
Very odd. I'll try to remember that, in case anyone else has a similar problem.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|