Author Archive

This is a post from Frances, which makes a nice change!

I’ve seen other postings from people with the same problem, and still haven’t been able to find an answer through any searches (the list I got the answer on doesn’t seem to show up on google searches, and the other places I’ve seen it posted to won’t allow any replies now since it’s been too long), so I thought it might be nice to post the answer for any poor developers coming along behind with the same problem. Let’s face it, if they’re doing driver development for Windows, they could use a few breaks ;-)

The Problem:

I’d been trying to develop a mirror driver for Windows XP, but unfortunately the sample mirror driver that Microsoft provides in the DDK (Windows Server 2003 SP1 DDK, and previous XP DDK) stops Excel from working – once the driver is installed and has been used, any attempt to start Excel (even an empty worksheet) causes an error dialog with “Not enough system resources to display completely”.

The solution (provided by Avinash Jha on osronline ntdev mailing list):

The excel problem is due to the DDI calls returning FALSE in the sample mirror driver. To solve the problem, please change following functions to return TRUE in enable.c file :

DrvCopyBits

DrvBitBlt

DrvTextOut

DrvStrokePath

Now rebuild the driver, replace the .dll in system32 directory and reboot your PC. That’s it, you can start playing with Excel again!

Comments 1 Comment »