Hi all,

I am working on audio driver [unified audio model].

I have a middle layer between my application and my driver and it is hidden.
My application uses standard API provided by the middle layer, like
waveOutOpen.

The middle layer I am refering to, is the waveapi.dll & audevman.dll.
now this middle layer is making WAV_Init, WAV_IOControl ... calls by
decoding its standard APIs, like waveOutOpen.

now, the point is, my application wavplay.exe is not specifically using any
of the entry points of my audio driver directly.

when I load my audio driver at boot time, everything happens normally.
and when i try loading my audio driver at runtime, it is not
loaded, and my application fails.

so, now I would like to know whether I need to change any thing in my
registry
or something else so that my audio driver gets loaded at runtime.
I have changed my registry from:

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\audio]
"Prefix"="WAV"
"Dll"="audio.dll"
"Order"=dword:0

to:

[HKEY_LOCAL_MACHINE\Drivers\audio]
"Prefix"="WAV"
"Dll"="audio.dll"
"Order"=dword:0

regards
sajid

Re: Dynamic Loading of DLL by Bruce

Bruce
Thu Aug 26 23:16:14 CDT 2004

You will need to manually load it, there is nothing that will do it for you
once you disable the boot time loading.

ActivateDeviceEx() is what you need.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups