Hi all,
I have written a simple device driver that is loaded at boot time. The
driver needs to read MemBase and MemLen from the registry when
initialised.
I use the pointer that I receive in XXX_Init( PVOID Context) to open
the device key ( hnd = OpenDeviceKey( (LPCTSTR)Context ); ) and that
seems to work.
However, when I call DDKReg_GetWindowinfo() with the returned handle
it returns ERROR_INVALID_PARAMETER. According to MSDN this "Indicates
a problem with the populated DDKWINDOWINFO structure." What does this
mean?
My registry entry looks like this:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\GDU]
"MemBase"=dword:40100000
"MemLen"=dword:40
"Prefix"="GDU"
"Dll"="gdudev.dll"
"Order"=dword:22
Any ideas are much appreciated.
Thanks,
Rickard