|
I am building an x64 kernel mode driver with WDK 6000. Two intrinsics are used: __readmsr and __writemsr .
As mentioned in MSDN Library, it requires to include <intrin.h>. But there is no such file in the inc folder and the subfolders of WDK 6000!
What is the correct include file for these intrinsic functions? Thanks!
Maxwell Chen
|
|
|
|
|
The intrinsic functions are a compiler feature, not a WDK feature. Look in the compiler Include tree. For example, C:\Program Files\Microsoft Visual Studio 8\VC\include.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
I bought a fanless Via-based system with 256 mb RAM from eWayCo and have been trying to get it to boot Win XP, which it claims it should be capable of (not just the embedded version). The machine has no floppy drive or cd drive, just an IDE slot.
Using an IDE-CF adapter on another computer, I was able to install XP to the CF card, disable virtual memory and install all the XP updates.
Plugging the adapter into the fanless system, I can boot and it displays the XP boot menu ("Your computer didn't start correctly last time...") and I choose safe mode. Everything goes fine until it trys and loads gagp30kx.sys, which I understand is a Via video card driver. I modified boot.ini to allow me to boot into VGA mode, which just displays a blank screen.
I know this is a long shot, but any ideas on how I might be able to get this thing to boot?
Thanks!
modified 12-Jul-20 21:01pm.
|
|
|
|
|
We recently went through this with a (VIA) Jetway ITX board.
Try installing the operating syatem from an external USB CD drive.
You may have to make changes to the BIOS settings to get the system to boot from the CD.
|
|
|
|
|
I've tried this with a couple of USB CD drives, and I was unable to get the device to be recognized so that I could off of it. Do you know of any boot environment, like the old windows boot disks with CD support, that I could use to load drivers for the cd driver to start the installation?
edit: this would have to boot off a flash drive
modified 12-Jul-20 21:01pm.
|
|
|
|
|
The motherboard's bios should support booting from a CD. The windows XP installation CD is bootable.
On our machine we did have problems with the factory BIOS settings. The system would not boot from a USB CD. I finally solved this problem by enabling all appropriate USB options.
Another possibility is to attach the required hardware (CD, Floppy, etc.) directly to the motherboard.
|
|
|
|
|
There is a site "bootdisk.com" or "bootdisc.com" that has tons of bootable images.
|
|
|
|
|
I ended up getting this working by making a flash drive a bootable XP install.
Thanks for the suggestions
modified 12-Jul-20 21:01pm.
|
|
|
|
|
You should install on the hardware the box needs. Just install to a normal harddisk on the fanless system, then use another comp to pull an image and write that to the CF-card.
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
|
|
|
|
|
I don't have a CD drive on the fanless system and I am unable to boot my computer with off a usb cd drive I have. I've tried booting over PXE but I can't find any free software that seems to work and I've tried creating an image in a virtual machine with very generic hardware cloning the harddrive contents to a CF card, but that didn't boot either.
Any ideas?
Thanks!
modified 12-Jul-20 21:01pm.
|
|
|
|
|
I don't understand, if the system has an ide slot, (40 pin parallell ATA), why can't you connect both an HD and a CD to the cable and make an installation on the HD?
When you have installed the HD then you move an image to the CF card.
|
|
|
|
|
So I went to look at a printer issue tonight, and there's no real issue, but when I finally got an invoice printing, it takes several minutes to print a single document.
I haven't worked with dot matrix for about fifteen years, so I'm a little rusty, but I'm guessing it's printing 'fancy' instead of draft mode. I may be wrong, but it just looks like if I set it to draft, it won't get through all three sheets. Is this a valid concern? I cant test now as the printer is very elsewhere.
|
|
|
|
|
Does it self test ok?
Has anybody been playing with the dip-switches?
Is handshaking ok?
Is the print-head motor and gearing/belts ok?
modified 1-Aug-19 21:02pm.
|
|
|
|
|
It works, it just takes more than two minutes to print a one page invoice.
|
|
|
|
|
Brady Kelly wrote: it won't get through all three sheets.
Changing to Draft mode won't change how hard the pins strike the paper, so give it a try. The current mode, however, may be double-striking, or using a font that's wider than normal to make a clear third copy. It's worth playing with it, though, and you can't hurt anything (so long as you remember what the original settings were and restore them later). You might also check the settings to see if bi-directional printing is enabled. That can make big speed difference.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Hi
I have a problem. I want to detect USB Disk, but when I use GetDriveType, fuction return 3 drives instead 1 (it also return floppy disk and remote hard drive). I what to know alternative of GetDriveType.
|
|
|
|
|
Hi,
you can use WMI classes to get more details, such as the interface ("USB").
However it is not that easy, and it keeps getting more and more complex to
figure out a general solution as more device types emerge: you have to discern
USB floppies, USB hard disks, USB memory sticks, USB DVD drives, etc.
However an ad hoc solution to a specific problem is most certainly doable,
given time and lots of googling.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
I think that using WMI it's a wright way and maybe connect to ("system evets") & ("USB") interface.
Thanks for help!!
|
|
|
|
|
I'm looking for some kind of toolkit used for building drivers.
I know of two:
Compuware has retired DriverStudio since 2006 and I cannot find any replacement for it from Compuware. So building a driver for e.g. 64-bit Vista would be out of the question with an old version of DriverStudio.
Is really Jungo the only alternative out there?
Of course it's possible to build a driver with only the DDK, but I figure that the benefits of using a toolkit outweighs the drawbacks.
Any tip is appreciated.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Fat_Boy develops drivers for a living, drop him an e-mail via CP and ask him what he uses.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Mmm, that's a thought, but I'm rather reluctant to sending personal mails.
I know I get somewhat upset when people are emailing me directly asking for help, it kind of invades the privacy...
Well, that's how I interpret the forum guidelines and since that's how I would like to be treated, I treat other members the same way.
But it's a good idea otherwise, thanks.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Roger Stoltz wrote: Compuware has retired DriverStudio since 2006 and I cannot find any replacement for it from Compuware. So building a driver for e.g. 64-bit Vista would be out of the question with an old version of DriverStudio.
I only used DriverStudio in the past. To tell the truth, I don't really like it though: When there are more than one DDK version installed in the system, configuring VC6 for DriverStudio is sometimes a nightmare. And SoftICE debugger usually failed with most of newer graphic chips.
The driver team of my company uses simply WDK without any helper toolkit.
Even though DriverStudio is retired, there is DevPartner (LINK[^]) to replace with.
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: Even though DriverStudio is retired, there is DevPartner (LINK[^]) to replace with.
Well, Maxwell....
Perhaps I'd better get my eyes checked, but I cannot find any information saying that DevPartner can be used for developing drivers the same way DriverStudio was used.
I've looked through the page you linked to prior to starting this thread, but to me DevPartner seems more like a tool for analysing the source code when it's already been written rather than using it for development with some class libraries.
DevPartner could probably be used for debugging a device driver, but I expect a toolkit to be bundled with that functionality as well as a class library or similar to be used for creating the driver.
Do you know of a page I haven't found that clearly stating that DevPartner ships with code and/or wizards to facilitate the development of a driver?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
You are right! DevPartner seems to focus on user mode analysis and debugging. There is no kernel mode device driver features. I am so sorry that I made a mistake.
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: I am so sorry that I made a mistake.
No worries, Maxwell.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|