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 newbies. Regards, LazySid At 2013-01-08 11:56:49,LazySid <lazy...@126.com> wrote: >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() in >miniport.sys are called, and only these three functions are called. > >When I change InstalledDisplayDrivers to cirrus in inf file, the popup dialog >box doesn't show, and StartIO() in miniport.sys also called. > >There seems to be some differences between cirrus.dll and mydisplay.dll. > >How does the OS recognise mydisplay.dll version? > >Thanks > >Regards > >LazySid >_______________________________________________ >Spice-devel mailing list >Spice-devel@lists.freedesktop.org >http://lists.freedesktop.org/mailman/listinfo/spice-devel _______________________________________________ Spice-devel mailing list Spice-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/spice-devel