|
From: Danny S. <dan...@cl...> - 2007-09-05 01:11:45
|
> I do get a warning about linking _DriverEntry@8 to > _DriverEntry (and using > --enable-stdcall-fixup or --disable-stdcall-fixup). Not sure > if there is > anything valuable in that warning. Always. I belive that you should declare your DriverEntry routines as DRIVER_INITIALIZE DriverEntry; Do a google for typedef DRIVER_INITIALIZE. It has DDKAPI (=stdcall) calling convention. typedef NTSTATUS (DDKAPI DRIVER_INITIALIZE)( IN struct _DRIVER_OBJECT *DriverObject, IN PUNICODE_STRING RegistryPath); typedef DRIVER_INITIALIZE *PDRIVER_INITIALIZE; Danny |