How can I build a windows multimedia “installable driver”
(http://msdn2.microsoft.com/en-us/library/ms709319.aspx) that doesn’t
crash when I call OpenDriver on it?
Steps I took were:
* downloaded the Windows Server 2003 DDK ISO from
http://www.microsoft.com/whdc/devtools/ddk/default.mspx.
* burnt a CD from it and installed it
* built default DLL project in Visual Studio
* created DriverProc entry point as the docs described
* called OpenDriver on the new module from a test app
Unfortunately the app crashes inside windows on return. I suspect it has
to do with calling conventions but poking around in the dark.
So, questions:
* did I get the right DDK for building drivers for regular folks who are
using win xp?
* do I need to build my DLL with the Windows DDK build tools?
* can I use something like DDKBUILD and integrate the DDK build in to
Visual Studio .NET?
* if can I use the Visual Studio compiler for this kind of project, any
clues about what settings to use?
I guess I am not sure how much of a “real driver” these installable
drivers actually are…? And I can’t find anything in the MSDN
documentation about how to actually compile and link one of these things.
Any help or tips would be greatly appreciated.
- Michael Ost
PS: if it helps clarify, output from visual studio…
Debug output:
First-chance exception at 0x7c901010 in Boomwhacker.exe: 0xC0000005:
Access violation reading location 0x00000017.
First-chance exception at 0x7c812a5b in Boomwhacker.exe: Microsoft C++
exception: [rethrow] @ 0x00000000.
Unhandled exception at 0x7c901010 in Boomwhacker.exe: 0xC0000005: Access
violation reading location 0x00000017.
Call stack at the crash:
ntdll.dll!7c901010()
winmm.dll!76b42e8e()
winmm.dll!76b42e53()
Boomwhacker.exe!BoomwhackerApp::OnInit() Line 29 + 0x11 C++