I think I got the answer by myself. In the Sources file of mydisplay project, I
write this:
TARGETLIBS=$(DDK_LIB_PATH)\ntoskrnl.lib
but it should be:
TARGETLIBS=$(DDK_LIB_PATH)\ntstrsafe.lib
The DrvEnableDriver() in mydisplay.dll is successfully called now.
Hope this information could help some
I have my graphic driver installed on windows xp sp3. After reboot, I got a
popup dialog box said "Cann't use current graphic driver, it is designed for
the old version, it is not compatible with current windows version". In windbg,
I can see FindAdapter(), Initialize() and GetChildDescriptor()