Hello, experts!
Can you please clarify few things about driver image ops:
1. Is there a kernel API to obtain a path from which NT driver binary was
loaded (similar to GetModuleNameEx in user mode)?
2. Is there are a kernel API to load NT kernel mode DLL dynamically (i.e.
load DLL built with TARGET=EXPORT_DRIVER, as opposed to statically linking
it, i.e. something similar to user-mode API LoadLibrary)?
3. Registry has a value, ImagePath, for every installed kernel-mode service
(HKLM\System\CurrentControlSet\Serivices\<DriverName>\ImagePath).
However, this value can be empty if CreateService specified NULL as image
path parameter (this seems to be a valid value, though doc does not describes
it).
Does this mean that either ImagePath _must_ be specified, or driver _must_
be in systemroot\system32\drivers?
4. Is default kernel load path is as simple as \systemroot\system32\drivers,
or there is more to it? And what about Win64, what is default path there?
5. I was not able to find any notes on this either in DDK or IFS kits help.
Can you point a good information source on subject?
6. Any changes in this area for various NT versions? Is information on
if/how this is to change in Longhorn is already available?
Many thanks in advance for answer(s),
ygs.